Package net.minecraft.entity.monster
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 Summary
Fields Modifier and Type Field Description private long
cooldownUntil
private double
leaderSpeedModifier
private T
mob
private double
speedModifier
-
Constructor Summary
Constructors Constructor Description PatrolGoal(T p_i50070_1_, double p_i50070_2_, double p_i50070_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
private java.util.List<PatrollerEntity>
findPatrolCompanions()
private boolean
moveRandomly()
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canContinueToUse, getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
mob
private final T extends PatrollerEntity mob
-
speedModifier
private final double speedModifier
-
leaderSpeedModifier
private final double leaderSpeedModifier
-
cooldownUntil
private long cooldownUntil
-
-
Constructor Detail
-
PatrolGoal
public PatrolGoal(T p_i50070_1_, double p_i50070_2_, double p_i50070_4_)
-
-
Method Detail
-
findPatrolCompanions
private java.util.List<PatrollerEntity> findPatrolCompanions()
-
moveRandomly
private boolean moveRandomly()
-
-