Class MovementSettings

java.lang.Object
com.hypixel.hytale.protocol.MovementSettings

public class MovementSettings extends Object
  • Field Details

    • NULLABLE_BIT_FIELD_SIZE

      public static final int NULLABLE_BIT_FIELD_SIZE
      See Also:
    • FIXED_BLOCK_SIZE

      public static final int FIXED_BLOCK_SIZE
      See Also:
    • VARIABLE_FIELD_COUNT

      public static final int VARIABLE_FIELD_COUNT
      See Also:
    • VARIABLE_BLOCK_START

      public static final int VARIABLE_BLOCK_START
      See Also:
    • MAX_SIZE

      public static final int MAX_SIZE
      See Also:
    • mass

      public float mass
    • dragCoefficient

      public float dragCoefficient
    • invertedGravity

      public boolean invertedGravity
    • velocityResistance

      public float velocityResistance
    • jumpForce

      public float jumpForce
    • swimJumpForce

      public float swimJumpForce
    • jumpBufferDuration

      public float jumpBufferDuration
    • jumpBufferMaxYVelocity

      public float jumpBufferMaxYVelocity
    • acceleration

      public float acceleration
    • airDragMin

      public float airDragMin
    • airDragMax

      public float airDragMax
    • airDragMinSpeed

      public float airDragMinSpeed
    • airDragMaxSpeed

      public float airDragMaxSpeed
    • airFrictionMin

      public float airFrictionMin
    • airFrictionMax

      public float airFrictionMax
    • airFrictionMinSpeed

      public float airFrictionMinSpeed
    • airFrictionMaxSpeed

      public float airFrictionMaxSpeed
    • airSpeedMultiplier

      public float airSpeedMultiplier
    • airControlMinSpeed

      public float airControlMinSpeed
    • airControlMaxSpeed

      public float airControlMaxSpeed
    • airControlMinMultiplier

      public float airControlMinMultiplier
    • airControlMaxMultiplier

      public float airControlMaxMultiplier
    • comboAirSpeedMultiplier

      public float comboAirSpeedMultiplier
    • baseSpeed

      public float baseSpeed
    • climbSpeed

      public float climbSpeed
    • climbSpeedLateral

      public float climbSpeedLateral
    • climbUpSprintSpeed

      public float climbUpSprintSpeed
    • climbDownSprintSpeed

      public float climbDownSprintSpeed
    • horizontalFlySpeed

      public float horizontalFlySpeed
    • verticalFlySpeed

      public float verticalFlySpeed
    • maxSpeedMultiplier

      public float maxSpeedMultiplier
    • minSpeedMultiplier

      public float minSpeedMultiplier
    • wishDirectionGravityX

      public float wishDirectionGravityX
    • wishDirectionGravityY

      public float wishDirectionGravityY
    • wishDirectionWeightX

      public float wishDirectionWeightX
    • wishDirectionWeightY

      public float wishDirectionWeightY
    • fly

      @Nonnull public FlyMode fly
    • collisionExpulsionForce

      public float collisionExpulsionForce
    • forwardWalkSpeedMultiplier

      public float forwardWalkSpeedMultiplier
    • backwardWalkSpeedMultiplier

      public float backwardWalkSpeedMultiplier
    • strafeWalkSpeedMultiplier

      public float strafeWalkSpeedMultiplier
    • forwardRunSpeedMultiplier

      public float forwardRunSpeedMultiplier
    • backwardRunSpeedMultiplier

      public float backwardRunSpeedMultiplier
    • strafeRunSpeedMultiplier

      public float strafeRunSpeedMultiplier
    • forwardCrouchSpeedMultiplier

      public float forwardCrouchSpeedMultiplier
    • backwardCrouchSpeedMultiplier

      public float backwardCrouchSpeedMultiplier
    • strafeCrouchSpeedMultiplier

      public float strafeCrouchSpeedMultiplier
    • forwardSprintSpeedMultiplier

      public float forwardSprintSpeedMultiplier
    • variableJumpFallForce

      public float variableJumpFallForce
    • fallEffectDuration

      public float fallEffectDuration
    • fallJumpForce

      public float fallJumpForce
    • fallMomentumLoss

      public float fallMomentumLoss
    • autoJumpObstacleSpeedLoss

      public float autoJumpObstacleSpeedLoss
    • autoJumpObstacleSprintSpeedLoss

      public float autoJumpObstacleSprintSpeedLoss
    • autoJumpObstacleEffectDuration

      public float autoJumpObstacleEffectDuration
    • autoJumpObstacleSprintEffectDuration

      public float autoJumpObstacleSprintEffectDuration
    • autoJumpObstacleMaxAngle

      public float autoJumpObstacleMaxAngle
    • autoJumpDisableJumping

      public boolean autoJumpDisableJumping
    • minSlideEntrySpeed

      public float minSlideEntrySpeed
    • slideExitSpeed

      public float slideExitSpeed
    • minFallSpeedToEngageRoll

      public float minFallSpeedToEngageRoll
    • maxFallSpeedToEngageRoll

      public float maxFallSpeedToEngageRoll
    • rollStartSpeedModifier

      public float rollStartSpeedModifier
    • rollExitSpeedModifier

      public float rollExitSpeedModifier
    • rollTimeToComplete

      public float rollTimeToComplete
    • maxSlopeAngleDegrees

      public float maxSlopeAngleDegrees
    • maxWallAngleDegrees

      public float maxWallAngleDegrees
  • Constructor Details

    • MovementSettings

      public MovementSettings()
    • MovementSettings

      public MovementSettings(float mass, float dragCoefficient, boolean invertedGravity, float velocityResistance, float jumpForce, float swimJumpForce, float jumpBufferDuration, float jumpBufferMaxYVelocity, float acceleration, float airDragMin, float airDragMax, float airDragMinSpeed, float airDragMaxSpeed, float airFrictionMin, float airFrictionMax, float airFrictionMinSpeed, float airFrictionMaxSpeed, float airSpeedMultiplier, float airControlMinSpeed, float airControlMaxSpeed, float airControlMinMultiplier, float airControlMaxMultiplier, float comboAirSpeedMultiplier, float baseSpeed, float climbSpeed, float climbSpeedLateral, float climbUpSprintSpeed, float climbDownSprintSpeed, float horizontalFlySpeed, float verticalFlySpeed, float maxSpeedMultiplier, float minSpeedMultiplier, float wishDirectionGravityX, float wishDirectionGravityY, float wishDirectionWeightX, float wishDirectionWeightY, @Nonnull FlyMode fly, float collisionExpulsionForce, float forwardWalkSpeedMultiplier, float backwardWalkSpeedMultiplier, float strafeWalkSpeedMultiplier, float forwardRunSpeedMultiplier, float backwardRunSpeedMultiplier, float strafeRunSpeedMultiplier, float forwardCrouchSpeedMultiplier, float backwardCrouchSpeedMultiplier, float strafeCrouchSpeedMultiplier, float forwardSprintSpeedMultiplier, float variableJumpFallForce, float fallEffectDuration, float fallJumpForce, float fallMomentumLoss, float autoJumpObstacleSpeedLoss, float autoJumpObstacleSprintSpeedLoss, float autoJumpObstacleEffectDuration, float autoJumpObstacleSprintEffectDuration, float autoJumpObstacleMaxAngle, boolean autoJumpDisableJumping, float minSlideEntrySpeed, float slideExitSpeed, float minFallSpeedToEngageRoll, float maxFallSpeedToEngageRoll, float rollStartSpeedModifier, float rollExitSpeedModifier, float rollTimeToComplete, float maxSlopeAngleDegrees, float maxWallAngleDegrees)
    • MovementSettings

      public MovementSettings(@Nonnull MovementSettings other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment.
    • getMass

      public static float getMass(MemorySegment mem)
    • getMass

      public static float getMass(MemorySegment mem, int offset)
    • getDragCoefficient

      public static float getDragCoefficient(MemorySegment mem)
    • getDragCoefficient

      public static float getDragCoefficient(MemorySegment mem, int offset)
    • getInvertedGravity

      public static boolean getInvertedGravity(MemorySegment mem)
    • getInvertedGravity

      public static boolean getInvertedGravity(MemorySegment mem, int offset)
    • getVelocityResistance

      public static float getVelocityResistance(MemorySegment mem)
    • getVelocityResistance

      public static float getVelocityResistance(MemorySegment mem, int offset)
    • getJumpForce

      public static float getJumpForce(MemorySegment mem)
    • getJumpForce

      public static float getJumpForce(MemorySegment mem, int offset)
    • getSwimJumpForce

      public static float getSwimJumpForce(MemorySegment mem)
    • getSwimJumpForce

      public static float getSwimJumpForce(MemorySegment mem, int offset)
    • getJumpBufferDuration

      public static float getJumpBufferDuration(MemorySegment mem)
    • getJumpBufferDuration

      public static float getJumpBufferDuration(MemorySegment mem, int offset)
    • getJumpBufferMaxYVelocity

      public static float getJumpBufferMaxYVelocity(MemorySegment mem)
    • getJumpBufferMaxYVelocity

      public static float getJumpBufferMaxYVelocity(MemorySegment mem, int offset)
    • getAcceleration

      public static float getAcceleration(MemorySegment mem)
    • getAcceleration

      public static float getAcceleration(MemorySegment mem, int offset)
    • getAirDragMin

      public static float getAirDragMin(MemorySegment mem)
    • getAirDragMin

      public static float getAirDragMin(MemorySegment mem, int offset)
    • getAirDragMax

      public static float getAirDragMax(MemorySegment mem)
    • getAirDragMax

      public static float getAirDragMax(MemorySegment mem, int offset)
    • getAirDragMinSpeed

      public static float getAirDragMinSpeed(MemorySegment mem)
    • getAirDragMinSpeed

      public static float getAirDragMinSpeed(MemorySegment mem, int offset)
    • getAirDragMaxSpeed

      public static float getAirDragMaxSpeed(MemorySegment mem)
    • getAirDragMaxSpeed

      public static float getAirDragMaxSpeed(MemorySegment mem, int offset)
    • getAirFrictionMin

      public static float getAirFrictionMin(MemorySegment mem)
    • getAirFrictionMin

      public static float getAirFrictionMin(MemorySegment mem, int offset)
    • getAirFrictionMax

      public static float getAirFrictionMax(MemorySegment mem)
    • getAirFrictionMax

      public static float getAirFrictionMax(MemorySegment mem, int offset)
    • getAirFrictionMinSpeed

      public static float getAirFrictionMinSpeed(MemorySegment mem)
    • getAirFrictionMinSpeed

      public static float getAirFrictionMinSpeed(MemorySegment mem, int offset)
    • getAirFrictionMaxSpeed

      public static float getAirFrictionMaxSpeed(MemorySegment mem)
    • getAirFrictionMaxSpeed

      public static float getAirFrictionMaxSpeed(MemorySegment mem, int offset)
    • getAirSpeedMultiplier

      public static float getAirSpeedMultiplier(MemorySegment mem)
    • getAirSpeedMultiplier

      public static float getAirSpeedMultiplier(MemorySegment mem, int offset)
    • getAirControlMinSpeed

      public static float getAirControlMinSpeed(MemorySegment mem)
    • getAirControlMinSpeed

      public static float getAirControlMinSpeed(MemorySegment mem, int offset)
    • getAirControlMaxSpeed

      public static float getAirControlMaxSpeed(MemorySegment mem)
    • getAirControlMaxSpeed

      public static float getAirControlMaxSpeed(MemorySegment mem, int offset)
    • getAirControlMinMultiplier

      public static float getAirControlMinMultiplier(MemorySegment mem)
    • getAirControlMinMultiplier

      public static float getAirControlMinMultiplier(MemorySegment mem, int offset)
    • getAirControlMaxMultiplier

      public static float getAirControlMaxMultiplier(MemorySegment mem)
    • getAirControlMaxMultiplier

      public static float getAirControlMaxMultiplier(MemorySegment mem, int offset)
    • getComboAirSpeedMultiplier

      public static float getComboAirSpeedMultiplier(MemorySegment mem)
    • getComboAirSpeedMultiplier

      public static float getComboAirSpeedMultiplier(MemorySegment mem, int offset)
    • getBaseSpeed

      public static float getBaseSpeed(MemorySegment mem)
    • getBaseSpeed

      public static float getBaseSpeed(MemorySegment mem, int offset)
    • getClimbSpeed

      public static float getClimbSpeed(MemorySegment mem)
    • getClimbSpeed

      public static float getClimbSpeed(MemorySegment mem, int offset)
    • getClimbSpeedLateral

      public static float getClimbSpeedLateral(MemorySegment mem)
    • getClimbSpeedLateral

      public static float getClimbSpeedLateral(MemorySegment mem, int offset)
    • getClimbUpSprintSpeed

      public static float getClimbUpSprintSpeed(MemorySegment mem)
    • getClimbUpSprintSpeed

      public static float getClimbUpSprintSpeed(MemorySegment mem, int offset)
    • getClimbDownSprintSpeed

      public static float getClimbDownSprintSpeed(MemorySegment mem)
    • getClimbDownSprintSpeed

      public static float getClimbDownSprintSpeed(MemorySegment mem, int offset)
    • getHorizontalFlySpeed

      public static float getHorizontalFlySpeed(MemorySegment mem)
    • getHorizontalFlySpeed

      public static float getHorizontalFlySpeed(MemorySegment mem, int offset)
    • getVerticalFlySpeed

      public static float getVerticalFlySpeed(MemorySegment mem)
    • getVerticalFlySpeed

      public static float getVerticalFlySpeed(MemorySegment mem, int offset)
    • getMaxSpeedMultiplier

      public static float getMaxSpeedMultiplier(MemorySegment mem)
    • getMaxSpeedMultiplier

      public static float getMaxSpeedMultiplier(MemorySegment mem, int offset)
    • getMinSpeedMultiplier

      public static float getMinSpeedMultiplier(MemorySegment mem)
    • getMinSpeedMultiplier

      public static float getMinSpeedMultiplier(MemorySegment mem, int offset)
    • getWishDirectionGravityX

      public static float getWishDirectionGravityX(MemorySegment mem)
    • getWishDirectionGravityX

      public static float getWishDirectionGravityX(MemorySegment mem, int offset)
    • getWishDirectionGravityY

      public static float getWishDirectionGravityY(MemorySegment mem)
    • getWishDirectionGravityY

      public static float getWishDirectionGravityY(MemorySegment mem, int offset)
    • getWishDirectionWeightX

      public static float getWishDirectionWeightX(MemorySegment mem)
    • getWishDirectionWeightX

      public static float getWishDirectionWeightX(MemorySegment mem, int offset)
    • getWishDirectionWeightY

      public static float getWishDirectionWeightY(MemorySegment mem)
    • getWishDirectionWeightY

      public static float getWishDirectionWeightY(MemorySegment mem, int offset)
    • getFly

      public static FlyMode getFly(MemorySegment mem)
    • getFly

      public static FlyMode getFly(MemorySegment mem, int offset)
    • getCollisionExpulsionForce

      public static float getCollisionExpulsionForce(MemorySegment mem)
    • getCollisionExpulsionForce

      public static float getCollisionExpulsionForce(MemorySegment mem, int offset)
    • getForwardWalkSpeedMultiplier

      public static float getForwardWalkSpeedMultiplier(MemorySegment mem)
    • getForwardWalkSpeedMultiplier

      public static float getForwardWalkSpeedMultiplier(MemorySegment mem, int offset)
    • getBackwardWalkSpeedMultiplier

      public static float getBackwardWalkSpeedMultiplier(MemorySegment mem)
    • getBackwardWalkSpeedMultiplier

      public static float getBackwardWalkSpeedMultiplier(MemorySegment mem, int offset)
    • getStrafeWalkSpeedMultiplier

      public static float getStrafeWalkSpeedMultiplier(MemorySegment mem)
    • getStrafeWalkSpeedMultiplier

      public static float getStrafeWalkSpeedMultiplier(MemorySegment mem, int offset)
    • getForwardRunSpeedMultiplier

      public static float getForwardRunSpeedMultiplier(MemorySegment mem)
    • getForwardRunSpeedMultiplier

      public static float getForwardRunSpeedMultiplier(MemorySegment mem, int offset)
    • getBackwardRunSpeedMultiplier

      public static float getBackwardRunSpeedMultiplier(MemorySegment mem)
    • getBackwardRunSpeedMultiplier

      public static float getBackwardRunSpeedMultiplier(MemorySegment mem, int offset)
    • getStrafeRunSpeedMultiplier

      public static float getStrafeRunSpeedMultiplier(MemorySegment mem)
    • getStrafeRunSpeedMultiplier

      public static float getStrafeRunSpeedMultiplier(MemorySegment mem, int offset)
    • getForwardCrouchSpeedMultiplier

      public static float getForwardCrouchSpeedMultiplier(MemorySegment mem)
    • getForwardCrouchSpeedMultiplier

      public static float getForwardCrouchSpeedMultiplier(MemorySegment mem, int offset)
    • getBackwardCrouchSpeedMultiplier

      public static float getBackwardCrouchSpeedMultiplier(MemorySegment mem)
    • getBackwardCrouchSpeedMultiplier

      public static float getBackwardCrouchSpeedMultiplier(MemorySegment mem, int offset)
    • getStrafeCrouchSpeedMultiplier

      public static float getStrafeCrouchSpeedMultiplier(MemorySegment mem)
    • getStrafeCrouchSpeedMultiplier

      public static float getStrafeCrouchSpeedMultiplier(MemorySegment mem, int offset)
    • getForwardSprintSpeedMultiplier

      public static float getForwardSprintSpeedMultiplier(MemorySegment mem)
    • getForwardSprintSpeedMultiplier

      public static float getForwardSprintSpeedMultiplier(MemorySegment mem, int offset)
    • getVariableJumpFallForce

      public static float getVariableJumpFallForce(MemorySegment mem)
    • getVariableJumpFallForce

      public static float getVariableJumpFallForce(MemorySegment mem, int offset)
    • getFallEffectDuration

      public static float getFallEffectDuration(MemorySegment mem)
    • getFallEffectDuration

      public static float getFallEffectDuration(MemorySegment mem, int offset)
    • getFallJumpForce

      public static float getFallJumpForce(MemorySegment mem)
    • getFallJumpForce

      public static float getFallJumpForce(MemorySegment mem, int offset)
    • getFallMomentumLoss

      public static float getFallMomentumLoss(MemorySegment mem)
    • getFallMomentumLoss

      public static float getFallMomentumLoss(MemorySegment mem, int offset)
    • getAutoJumpObstacleSpeedLoss

      public static float getAutoJumpObstacleSpeedLoss(MemorySegment mem)
    • getAutoJumpObstacleSpeedLoss

      public static float getAutoJumpObstacleSpeedLoss(MemorySegment mem, int offset)
    • getAutoJumpObstacleSprintSpeedLoss

      public static float getAutoJumpObstacleSprintSpeedLoss(MemorySegment mem)
    • getAutoJumpObstacleSprintSpeedLoss

      public static float getAutoJumpObstacleSprintSpeedLoss(MemorySegment mem, int offset)
    • getAutoJumpObstacleEffectDuration

      public static float getAutoJumpObstacleEffectDuration(MemorySegment mem)
    • getAutoJumpObstacleEffectDuration

      public static float getAutoJumpObstacleEffectDuration(MemorySegment mem, int offset)
    • getAutoJumpObstacleSprintEffectDuration

      public static float getAutoJumpObstacleSprintEffectDuration(MemorySegment mem)
    • getAutoJumpObstacleSprintEffectDuration

      public static float getAutoJumpObstacleSprintEffectDuration(MemorySegment mem, int offset)
    • getAutoJumpObstacleMaxAngle

      public static float getAutoJumpObstacleMaxAngle(MemorySegment mem)
    • getAutoJumpObstacleMaxAngle

      public static float getAutoJumpObstacleMaxAngle(MemorySegment mem, int offset)
    • getAutoJumpDisableJumping

      public static boolean getAutoJumpDisableJumping(MemorySegment mem)
    • getAutoJumpDisableJumping

      public static boolean getAutoJumpDisableJumping(MemorySegment mem, int offset)
    • getMinSlideEntrySpeed

      public static float getMinSlideEntrySpeed(MemorySegment mem)
    • getMinSlideEntrySpeed

      public static float getMinSlideEntrySpeed(MemorySegment mem, int offset)
    • getSlideExitSpeed

      public static float getSlideExitSpeed(MemorySegment mem)
    • getSlideExitSpeed

      public static float getSlideExitSpeed(MemorySegment mem, int offset)
    • getMinFallSpeedToEngageRoll

      public static float getMinFallSpeedToEngageRoll(MemorySegment mem)
    • getMinFallSpeedToEngageRoll

      public static float getMinFallSpeedToEngageRoll(MemorySegment mem, int offset)
    • getMaxFallSpeedToEngageRoll

      public static float getMaxFallSpeedToEngageRoll(MemorySegment mem)
    • getMaxFallSpeedToEngageRoll

      public static float getMaxFallSpeedToEngageRoll(MemorySegment mem, int offset)
    • getRollStartSpeedModifier

      public static float getRollStartSpeedModifier(MemorySegment mem)
    • getRollStartSpeedModifier

      public static float getRollStartSpeedModifier(MemorySegment mem, int offset)
    • getRollExitSpeedModifier

      public static float getRollExitSpeedModifier(MemorySegment mem)
    • getRollExitSpeedModifier

      public static float getRollExitSpeedModifier(MemorySegment mem, int offset)
    • getRollTimeToComplete

      public static float getRollTimeToComplete(MemorySegment mem)
    • getRollTimeToComplete

      public static float getRollTimeToComplete(MemorySegment mem, int offset)
    • getMaxSlopeAngleDegrees

      public static float getMaxSlopeAngleDegrees(MemorySegment mem)
    • getMaxSlopeAngleDegrees

      public static float getMaxSlopeAngleDegrees(MemorySegment mem, int offset)
    • getMaxWallAngleDegrees

      public static float getMaxWallAngleDegrees(MemorySegment mem)
    • getMaxWallAngleDegrees

      public static float getMaxWallAngleDegrees(MemorySegment mem, int offset)
    • toObject

      public static MovementSettings toObject(MemorySegment mem)
    • toObject

      public static MovementSettings toObject(MemorySegment mem, int offset)
    • toObject

      public static MovementSettings toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one MovementSettings and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked.
    • serialize

      public int serialize(@Nonnull MemorySegment mem, int offset)
    • computeSize

      public int computeSize()
    • clone

      public MovementSettings clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object