Class SpearRetreat
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.SpearRetreat
- All Implemented Interfaces:
BehaviorControl<PathfinderMob>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int(package private) doubleFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanableToAttack(PathfinderMob pMob) protected booleancanStillUse(ServerLevel p_478402_, PathfinderMob p_480228_, long p_479597_) protected booleancheckExtraStartConditions(ServerLevel p_480383_, PathfinderMob p_480274_) private @Nullable LivingEntitygetTarget(PathfinderMob pMob) protected voidstart(ServerLevel p_479412_, PathfinderMob p_480901_, long p_478082_) protected voidstop(ServerLevel p_477955_, PathfinderMob p_479446_, long p_478023_) protected voidtick(ServerLevel p_480204_, PathfinderMob p_478642_, long p_478332_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
Field Details
-
MIN_COOLDOWN_DISTANCE
public static final int MIN_COOLDOWN_DISTANCE- See Also:
-
MAX_COOLDOWN_DISTANCE
public static final int MAX_COOLDOWN_DISTANCE- See Also:
-
MAX_FLEEING_TIME
public static final int MAX_FLEEING_TIME- See Also:
-
speedModifierWhenRepositioning
double speedModifierWhenRepositioning
-
-
Constructor Details
-
SpearRetreat
public SpearRetreat(double pSpeedModifierWhenRepositioning)
-
-
Method Details
-
getTarget
-
ableToAttack
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<PathfinderMob>
-
start
- Overrides:
startin classBehavior<PathfinderMob>
-
canStillUse
- Overrides:
canStillUsein classBehavior<PathfinderMob>
-
tick
- Overrides:
tickin classBehavior<PathfinderMob>
-
stop
- Overrides:
stopin classBehavior<PathfinderMob>
-