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
FieldsModifier and TypeFieldDescriptionprivate static intprivate floatFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckExtraStartConditions(ServerLevel p_23538_, E p_23539_)private EntitygetRidableEntity(E p_23547_)private booleanisCloseEnoughToStartRiding(E p_23545_)protected voidstart(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:
- Constant Field Values
-
speedModifier
private final float speedModifier
-
-
Constructor Details
-
Mount
public Mount(float p_23536_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<E extends LivingEntity>
-
start
- Overrides:
startin classBehavior<E extends LivingEntity>
-
isCloseEnoughToStartRiding
-
getRidableEntity
-