Class AnimalPanic
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.AnimalPanic
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static int
private static int
private static int
private float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse(ServerLevel p_147391_, PathfinderMob p_147392_, long p_147393_)
protected void
start(ServerLevel p_147399_, PathfinderMob p_147400_, long p_147401_)
protected void
tick(ServerLevel p_147403_, PathfinderMob p_147404_, long p_147405_)
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
checkExtraStartConditions, doStop, getStatus, stop, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
PANIC_MIN_DURATION
private static final int PANIC_MIN_DURATION- See Also:
- Constant Field Values
-
PANIC_MAX_DURATION
private static final int PANIC_MAX_DURATION- See Also:
- Constant Field Values
-
PANIC_DISTANCE_HORIZANTAL
private static final int PANIC_DISTANCE_HORIZANTAL- See Also:
- Constant Field Values
-
PANIC_DISTANCE_VERTICAL
private static final int PANIC_DISTANCE_VERTICAL- See Also:
- Constant Field Values
-
speedMultiplier
private final float speedMultiplier
-
-
Constructor Details
-
AnimalPanic
public AnimalPanic(float p_147385_)
-
-
Method Details
-
canStillUse
- Overrides:
canStillUse
in classBehavior<PathfinderMob>
-
start
- Overrides:
start
in classBehavior<PathfinderMob>
-
tick
- Overrides:
tick
in classBehavior<PathfinderMob>
-