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

public class SmoothSwimmingMoveControl extends MoveControl
  • 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 class MoveControl
    • getTurningSpeedFactor

      private static float getTurningSpeedFactor(float p_249853_)