Class WanderingTraderEntity.MoveToGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.merchant.villager.WanderingTraderEntity.MoveToGoal
Enclosing class:
WanderingTraderEntity

class WanderingTraderEntity.MoveToGoal extends Goal
  • Field Details

    • trader

      final WanderingTraderEntity trader
    • stopDistance

      final double stopDistance
    • speedModifier

      final double speedModifier
  • Constructor Details

  • 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_220846_1_, double p_220846_2_)