Class SmoothSwimmingMoveControl
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.world.entity.ai.control.SmoothSwimmingMoveControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
Axolotl.AxolotlMoveControl
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.control.MoveControl
MoveControl.Operation
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final float
private final float
private final int
private final int
private final float
private static final float
Fields inherited from class net.minecraft.world.entity.ai.control.MoveControl
MAX_TURN, MIN_SPEED, MIN_SPEED_SQR, mob, operation, speedModifier, strafeForwards, strafeRight, wantedX, wantedY, wantedZ
-
Constructor Summary
ConstructorDescriptionSmoothSwimmingMoveControl
(Mob p_148070_, int p_148071_, int p_148072_, float p_148073_, float p_148074_, boolean p_148075_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static float
getTurningSpeedFactor
(float p_249853_) void
tick()
Methods inherited from class net.minecraft.world.entity.ai.control.MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, setWantedPosition, strafe
-
Field Details
-
FULL_SPEED_TURN_THRESHOLD
private static final float FULL_SPEED_TURN_THRESHOLD- See Also:
-
STOP_TURN_THRESHOLD
private static final float STOP_TURN_THRESHOLD- See Also:
-
maxTurnX
private final int maxTurnX -
maxTurnY
private final int maxTurnY -
inWaterSpeedModifier
private final float inWaterSpeedModifier -
outsideWaterSpeedModifier
private final float outsideWaterSpeedModifier -
applyGravity
private final boolean applyGravity
-
-
Constructor Details
-
SmoothSwimmingMoveControl
public SmoothSwimmingMoveControl(Mob p_148070_, int p_148071_, int p_148072_, float p_148073_, float p_148074_, boolean p_148075_)
-
-
Method Details
-
tick
public void tick()- Overrides:
tick
in classMoveControl
-
getTurningSpeedFactor
private static float getTurningSpeedFactor(float p_249853_)
-