Class MotionControllerFly

java.lang.Object
com.hypixel.hytale.server.npc.movement.controllers.MotionControllerBase
com.hypixel.hytale.server.npc.movement.controllers.MotionControllerFly
All Implemented Interfaces:
MotionController, DebugSupport.DebugFlagsChangeListener

public class MotionControllerFly extends MotionControllerBase
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      @Nonnull public String getType()
    • getSupportedMovementModes

      @Nonnull public Set<MovementMode> getSupportedMovementModes()
    • getDefaultSpawnMovementModes

      @Nonnull public Set<MovementMode> getDefaultSpawnMovementModes()
    • probeMove

      public double probeMove(@Nonnull Ref<EntityStore> ref, @Nonnull ProbeMoveData probeMoveData, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • isFastMotionKind

      public boolean isFastMotionKind(double speed)
    • getDesiredVerticalRange

      public MotionController.VerticalRange getDesiredVerticalRange(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • getWanderVerticalMovementRatio

      public double getWanderVerticalMovementRatio()
    • constrainRotations

      public void constrainRotations(Role role, TransformComponent transform)
    • getCurrentMaxBodyRotationSpeed

      public double getCurrentMaxBodyRotationSpeed()
    • spawned

      public void spawned()
    • canSteer

      public boolean canSteer(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      Specified by:
      canSteer in interface MotionController
      Overrides:
      canSteer in class MotionControllerBase
    • inAir

      public boolean inAir()
    • onGround

      public boolean onGround()
    • inWater

      public boolean inWater()
    • getCurrentSpeed

      public double getCurrentSpeed()
    • getCurrentTurnRadius

      public double getCurrentTurnRadius()
    • getMaxClimbAngle

      public float getMaxClimbAngle()
    • getMaxSinkAngle

      public float getMaxSinkAngle()
    • getMaximumSpeed

      public double getMaximumSpeed()
    • is2D

      public boolean is2D()
    • canRestAtPlace

      public boolean canRestAtPlace()
    • getDesiredAltitudeWeight

      public double getDesiredAltitudeWeight()
    • getHeightOverGround

      public double getHeightOverGround()
    • isHorizontalIdle

      public boolean isHorizontalIdle(double speed)
      Overrides:
      isHorizontalIdle in class MotionControllerBase
    • estimateVelocity

      public boolean estimateVelocity(Steering steering, @Nonnull org.joml.Vector3d velocityOut)
    • clearOverrides

      public void clearOverrides()
    • setDesiredAltitudeOverride

      public void setDesiredAltitudeOverride(double[] desiredAltitudeOverride)
    • takeOff

      public void takeOff(@Nonnull Ref<EntityStore> ref, double speed, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • getExternalVelocityStopThresholdSquared

      public double getExternalVelocityStopThresholdSquared()
    • getDampingDeceleration

      public double getDampingDeceleration()