Class PatrolEntity.PatrolGoal<T extends PatrolEntity>

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

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

    • entity

      private final T extends PatrolEntity entity
    • leaderSpeed

      private final double leaderSpeed
    • followSpeed

      private final double followSpeed
    • nextPatrolSearchTime

      private long nextPatrolSearchTime
  • Constructor Details

    • PatrolGoal

      public PatrolGoal​(T entity, double leaderSpeed, double followSpeed)
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart 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
    • findPatrolTargets

      private List<PatrolEntity> findPatrolTargets()
    • wander

      private boolean wander()