Class MoveTowardsRestrictionGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveTowardsRestrictionGoal

public class MoveTowardsRestrictionGoal extends Goal
  • Field Details

    • mob

      private final PathfinderMob mob
    • wantedX

      private double wantedX
    • wantedY

      private double wantedY
    • wantedZ

      private double wantedZ
    • speedModifier

      private final double speedModifier
  • Constructor Details

    • MoveTowardsRestrictionGoal

      public MoveTowardsRestrictionGoal(PathfinderMob p_25633_, double p_25634_)
  • Method Details

    • canUse

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

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal