Class Mount<E extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.Mount<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_23538_, E p_23539_) private Entity
getRidableEntity
(E p_23547_) private boolean
isCloseEnoughToStartRiding
(E p_23545_) protected void
start
(ServerLevel p_23541_, E p_23542_, long p_23543_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
CLOSE_ENOUGH_TO_START_RIDING_DIST
private static final int CLOSE_ENOUGH_TO_START_RIDING_DIST- See Also:
-
speedModifier
private final float speedModifier
-
-
Constructor Details
-
Mount
public Mount(float p_23536_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<E extends LivingEntity>
-
start
- Overrides:
start
in classBehavior<E extends LivingEntity>
-
isCloseEnoughToStartRiding
-
getRidableEntity
-