Class Swim
- All Implemented Interfaces:
BehaviorControl<Mob>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel p_24391_, Mob p_24392_, long p_24393_) protected booleancheckExtraStartConditions(ServerLevel p_24388_, Mob p_24389_) static booleanshouldSwim(Mob p_316787_) protected voidtick(ServerLevel p_24399_, Mob p_24400_, long p_24401_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, start, stop, tickOrStop, timedOut, tryStart
-
Field Details
-
chance
private final float chance
-
-
Constructor Details
-
Swim
public Swim(float p_24383_)
-
-
Method Details
-
shouldSwim
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<Mob>
-
canStillUse
- Overrides:
canStillUsein classBehavior<Mob>
-
tick
-