Class Swim
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse(ServerLevel p_24391_, Mob p_24392_, long p_24393_)
protected boolean
checkExtraStartConditions(ServerLevel p_24388_, Mob p_24389_)
protected void
tick(ServerLevel p_24399_, Mob p_24400_, long p_24401_)
-
Field Details
-
chance
private final float chance
-
-
Constructor Details
-
Swim
public Swim(float p_24383_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Mob>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Mob>
-
tick
-