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 boolean
private float
private int
private int
private 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
Methods inherited from class net.minecraft.world.entity.ai.control.MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, setWantedPosition, strafe
-
Field Details
-
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
-