Class WanderingTrader.WanderToPositionGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.npc.WanderingTrader.WanderToPositionGoal
Enclosing class:
WanderingTrader

class WanderingTrader.WanderToPositionGoal extends Goal
  • Field Details

    • trader

      final WanderingTrader trader
    • stopDistance

      final double stopDistance
    • speedModifier

      final double speedModifier
  • Constructor Details

    • WanderToPositionGoal

      WanderToPositionGoal(WanderingTrader p_35899_, double p_35900_, double p_35901_)
  • Method Details

    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • isTooFarAway

      private boolean isTooFarAway(BlockPos p_35904_, double p_35905_)