Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- isClimbable
- climbUpSpeedMultiplier
- climbDownSpeedMultiplier
- climbLateralSpeedMultiplier
- isBouncy
- bounceVelocity
- drag
- friction
- terminalVelocityModifier
- horizontalSpeedMultiplier
- acceleration
- jumpForceMultiplier
- disableAutoStep
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getIsClimbable(MemorySegment)
- getIsClimbable(MemorySegment, int)
- getClimbUpSpeedMultiplier(MemorySegment)
- getClimbUpSpeedMultiplier(MemorySegment, int)
- getClimbDownSpeedMultiplier(MemorySegment)
- getClimbDownSpeedMultiplier(MemorySegment, int)
- getClimbLateralSpeedMultiplier(MemorySegment)
- getClimbLateralSpeedMultiplier(MemorySegment, int)
- getIsBouncy(MemorySegment)
- getIsBouncy(MemorySegment, int)
- getBounceVelocity(MemorySegment)
- getBounceVelocity(MemorySegment, int)
- getDrag(MemorySegment)
- getDrag(MemorySegment, int)
- getFriction(MemorySegment)
- getFriction(MemorySegment, int)
- getTerminalVelocityModifier(MemorySegment)
- getTerminalVelocityModifier(MemorySegment, int)
- getHorizontalSpeedMultiplier(MemorySegment)
- getHorizontalSpeedMultiplier(MemorySegment, int)
- getAcceleration(MemorySegment)
- getAcceleration(MemorySegment, int)
- getJumpForceMultiplier(MemorySegment)
- getJumpForceMultiplier(MemorySegment, int)
- getDisableAutoStep(MemorySegment)
- getDisableAutoStep(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class BlockMovementSettings
java.lang.Object
com.hypixel.hytale.protocol.BlockMovementSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatfloatbooleanfloatstatic final intfloatfloatbooleanbooleanfloatstatic final intstatic final intfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionBlockMovementSettings(boolean isClimbable, float climbUpSpeedMultiplier, float climbDownSpeedMultiplier, float climbLateralSpeedMultiplier, boolean isBouncy, float bounceVelocity, float drag, float friction, float terminalVelocityModifier, float horizontalSpeedMultiplier, float acceleration, float jumpForceMultiplier, boolean disableAutoStep) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic floatstatic floatgetAcceleration(MemorySegment mem, int offset) static floatstatic floatgetBounceVelocity(MemorySegment mem, int offset) static floatstatic floatgetClimbDownSpeedMultiplier(MemorySegment mem, int offset) static floatstatic floatgetClimbLateralSpeedMultiplier(MemorySegment mem, int offset) static floatstatic floatgetClimbUpSpeedMultiplier(MemorySegment mem, int offset) static booleanstatic booleangetDisableAutoStep(MemorySegment mem, int offset) static floatgetDrag(MemorySegment mem) static floatgetDrag(MemorySegment mem, int offset) static floatgetFriction(MemorySegment mem) static floatgetFriction(MemorySegment mem, int offset) static floatstatic floatgetHorizontalSpeedMultiplier(MemorySegment mem, int offset) static booleangetIsBouncy(MemorySegment mem) static booleangetIsBouncy(MemorySegment mem, int offset) static booleanstatic booleangetIsClimbable(MemorySegment mem, int offset) static floatstatic floatgetJumpForceMultiplier(MemorySegment mem, int offset) static floatstatic floatgetTerminalVelocityModifier(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static BlockMovementSettingstoObject(MemorySegment mem) static BlockMovementSettingstoObject(MemorySegment mem, int offset) static BlockMovementSettingstoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one BlockMovementSettings and reports the end of its encoding through the cursor.
-
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:
-
isClimbable
public boolean isClimbable -
climbUpSpeedMultiplier
public float climbUpSpeedMultiplier -
climbDownSpeedMultiplier
public float climbDownSpeedMultiplier -
climbLateralSpeedMultiplier
public float climbLateralSpeedMultiplier -
isBouncy
public boolean isBouncy -
bounceVelocity
public float bounceVelocity -
drag
public float drag -
friction
public float friction -
terminalVelocityModifier
public float terminalVelocityModifier -
horizontalSpeedMultiplier
public float horizontalSpeedMultiplier -
acceleration
public float acceleration -
jumpForceMultiplier
public float jumpForceMultiplier -
disableAutoStep
public boolean disableAutoStep
-
-
Constructor Details
-
BlockMovementSettings
public BlockMovementSettings() -
BlockMovementSettings
public BlockMovementSettings(boolean isClimbable, float climbUpSpeedMultiplier, float climbDownSpeedMultiplier, float climbLateralSpeedMultiplier, boolean isBouncy, float bounceVelocity, float drag, float friction, float terminalVelocityModifier, float horizontalSpeedMultiplier, float acceleration, float jumpForceMultiplier, boolean disableAutoStep) -
BlockMovementSettings
-
-
Method Details
-
requireBounds
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. -
getIsClimbable
-
getIsClimbable
-
getClimbUpSpeedMultiplier
-
getClimbUpSpeedMultiplier
-
getClimbDownSpeedMultiplier
-
getClimbDownSpeedMultiplier
-
getClimbLateralSpeedMultiplier
-
getClimbLateralSpeedMultiplier
-
getIsBouncy
-
getIsBouncy
-
getBounceVelocity
-
getBounceVelocity
-
getDrag
-
getDrag
-
getFriction
-
getFriction
-
getTerminalVelocityModifier
-
getTerminalVelocityModifier
-
getHorizontalSpeedMultiplier
-
getHorizontalSpeedMultiplier
-
getAcceleration
-
getAcceleration
-
getJumpForceMultiplier
-
getJumpForceMultiplier
-
getDisableAutoStep
-
getDisableAutoStep
-
toObject
-
toObject
-
toObject
public static BlockMovementSettings toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one BlockMovementSettings 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
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-