Package net.minecraft.entity.mob
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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description private Tentityprivate doublefollowSpeedprivate doubleleaderSpeedprivate longnextPatrolSearchTime -
Constructor Summary
Constructors Constructor Description PatrolGoal(T entity, double leaderSpeed, double followSpeed) -
Method Summary
Modifier and Type Method Description booleancanStart()private List<PatrolEntity>findPatrolTargets()voidstart()voidstop()voidtick()private booleanwander()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, shouldContinue, toString
-
Field Details
-
entity
-
leaderSpeed
private final double leaderSpeed -
followSpeed
private final double followSpeed -
nextPatrolSearchTime
private long nextPatrolSearchTime
-
-
Constructor Details
-
PatrolGoal
-
-
Method Details