Class PatrollerEntity.PatrolGoal<T extends PatrollerEntity>

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.monster.PatrollerEntity.PatrolGoal<T>
Enclosing class:
PatrollerEntity

public static class PatrollerEntity.PatrolGoal<T extends PatrollerEntity> extends Goal
  • Field Details

    • mob

      private final T extends PatrollerEntity mob
    • speedModifier

      private final double speedModifier
    • leaderSpeedModifier

      private final double leaderSpeedModifier
    • cooldownUntil

      private long cooldownUntil
  • Constructor Details

    • PatrolGoal

      public PatrolGoal(T p_i50070_1_, double p_i50070_2_, double p_i50070_4_)
  • 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<PatrollerEntity> findPatrolCompanions()
    • moveRandomly

      private boolean moveRandomly()