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 T
entity
private double
followSpeed
private double
leaderSpeed
private long
nextPatrolSearchTime
-
Constructor Summary
Constructors Constructor Description PatrolGoal(T entity, double leaderSpeed, double followSpeed)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
private List<PatrolEntity>
findPatrolTargets()
void
start()
void
stop()
void
tick()
private boolean
wander()
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