Class PatrollingMonster.LongDistancePatrolGoal<T extends PatrollingMonster>

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.monster.PatrollingMonster.LongDistancePatrolGoal<T>
Enclosing class:
PatrollingMonster

public static class PatrollingMonster.LongDistancePatrolGoal<T extends PatrollingMonster> extends Goal
  • Field Details

    • mob

      private final T extends PatrollingMonster mob
    • speedModifier

      private final double speedModifier
    • leaderSpeedModifier

      private final double leaderSpeedModifier
    • cooldownUntil

      private long cooldownUntil
  • Constructor Details

    • LongDistancePatrolGoal

      public LongDistancePatrolGoal(T p_33084_, double p_33085_, double p_33086_)
  • Method Details

    • canUse

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

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

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

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

      private List<PatrollingMonster> findPatrolCompanions()
    • moveRandomly

      private boolean moveRandomly()