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
- idle
- horizontalIdle
- jumping
- flying
- walking
- running
- sprinting
- crouching
- forcedCrouching
- falling
- fallingFar
- climbing
- inFluid
- swimming
- swimJumping
- onGround
- mantling
- sliding
- mounting
- rolling
- sitting
- gliding
- sleeping
- extraJumpsUsed
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getIdle(MemorySegment)
- getIdle(MemorySegment, int)
- getHorizontalIdle(MemorySegment)
- getHorizontalIdle(MemorySegment, int)
- getJumping(MemorySegment)
- getJumping(MemorySegment, int)
- getFlying(MemorySegment)
- getFlying(MemorySegment, int)
- getWalking(MemorySegment)
- getWalking(MemorySegment, int)
- getRunning(MemorySegment)
- getRunning(MemorySegment, int)
- getSprinting(MemorySegment)
- getSprinting(MemorySegment, int)
- getCrouching(MemorySegment)
- getCrouching(MemorySegment, int)
- getForcedCrouching(MemorySegment)
- getForcedCrouching(MemorySegment, int)
- getFalling(MemorySegment)
- getFalling(MemorySegment, int)
- getFallingFar(MemorySegment)
- getFallingFar(MemorySegment, int)
- getClimbing(MemorySegment)
- getClimbing(MemorySegment, int)
- getInFluid(MemorySegment)
- getInFluid(MemorySegment, int)
- getSwimming(MemorySegment)
- getSwimming(MemorySegment, int)
- getSwimJumping(MemorySegment)
- getSwimJumping(MemorySegment, int)
- getOnGround(MemorySegment)
- getOnGround(MemorySegment, int)
- getMantling(MemorySegment)
- getMantling(MemorySegment, int)
- getSliding(MemorySegment)
- getSliding(MemorySegment, int)
- getMounting(MemorySegment)
- getMounting(MemorySegment, int)
- getRolling(MemorySegment)
- getRolling(MemorySegment, int)
- getSitting(MemorySegment)
- getSitting(MemorySegment, int)
- getGliding(MemorySegment)
- getGliding(MemorySegment, int)
- getSleeping(MemorySegment)
- getSleeping(MemorySegment, int)
- getExtraJumpsUsed(MemorySegment)
- getExtraJumpsUsed(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class MovementStates
java.lang.Object
com.hypixel.hytale.protocol.MovementStates
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbytebooleanbooleanstatic final intbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanstatic final intbooleanstatic final intbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanstatic final intstatic final intboolean -
Constructor Summary
ConstructorsConstructorDescriptionMovementStates(boolean idle, boolean horizontalIdle, boolean jumping, boolean flying, boolean walking, boolean running, boolean sprinting, boolean crouching, boolean forcedCrouching, boolean falling, boolean fallingFar, boolean climbing, boolean inFluid, boolean swimming, boolean swimJumping, boolean onGround, boolean mantling, boolean sliding, boolean mounting, boolean rolling, boolean sitting, boolean gliding, boolean sleeping, byte extraJumpsUsed) MovementStates(MovementStates other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleangetClimbing(MemorySegment mem) static booleangetClimbing(MemorySegment mem, int offset) static booleanstatic booleangetCrouching(MemorySegment mem, int offset) static bytestatic bytegetExtraJumpsUsed(MemorySegment mem, int offset) static booleangetFalling(MemorySegment mem) static booleangetFalling(MemorySegment mem, int offset) static booleanstatic booleangetFallingFar(MemorySegment mem, int offset) static booleangetFlying(MemorySegment mem) static booleangetFlying(MemorySegment mem, int offset) static booleanstatic booleangetForcedCrouching(MemorySegment mem, int offset) static booleangetGliding(MemorySegment mem) static booleangetGliding(MemorySegment mem, int offset) static booleanstatic booleangetHorizontalIdle(MemorySegment mem, int offset) static booleangetIdle(MemorySegment mem) static booleangetIdle(MemorySegment mem, int offset) static booleangetInFluid(MemorySegment mem) static booleangetInFluid(MemorySegment mem, int offset) static booleangetJumping(MemorySegment mem) static booleangetJumping(MemorySegment mem, int offset) static booleangetMantling(MemorySegment mem) static booleangetMantling(MemorySegment mem, int offset) static booleangetMounting(MemorySegment mem) static booleangetMounting(MemorySegment mem, int offset) static booleangetOnGround(MemorySegment mem) static booleangetOnGround(MemorySegment mem, int offset) static booleangetRolling(MemorySegment mem) static booleangetRolling(MemorySegment mem, int offset) static booleangetRunning(MemorySegment mem) static booleangetRunning(MemorySegment mem, int offset) static booleangetSitting(MemorySegment mem) static booleangetSitting(MemorySegment mem, int offset) static booleangetSleeping(MemorySegment mem) static booleangetSleeping(MemorySegment mem, int offset) static booleangetSliding(MemorySegment mem) static booleangetSliding(MemorySegment mem, int offset) static booleanstatic booleangetSprinting(MemorySegment mem, int offset) static booleanstatic booleangetSwimJumping(MemorySegment mem, int offset) static booleangetSwimming(MemorySegment mem) static booleangetSwimming(MemorySegment mem, int offset) static booleangetWalking(MemorySegment mem) static booleangetWalking(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static MovementStatestoObject(MemorySegment mem) static MovementStatestoObject(MemorySegment mem, int offset) static MovementStatestoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one MovementStates 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:
-
idle
public boolean idle -
horizontalIdle
public boolean horizontalIdle -
jumping
public boolean jumping -
flying
public boolean flying -
walking
public boolean walking -
running
public boolean running -
sprinting
public boolean sprinting -
crouching
public boolean crouching -
forcedCrouching
public boolean forcedCrouching -
falling
public boolean falling -
fallingFar
public boolean fallingFar -
climbing
public boolean climbing -
inFluid
public boolean inFluid -
swimming
public boolean swimming -
swimJumping
public boolean swimJumping -
onGround
public boolean onGround -
mantling
public boolean mantling -
sliding
public boolean sliding -
mounting
public boolean mounting -
rolling
public boolean rolling -
sitting
public boolean sitting -
gliding
public boolean gliding -
sleeping
public boolean sleeping -
extraJumpsUsed
public byte extraJumpsUsed
-
-
Constructor Details
-
MovementStates
public MovementStates() -
MovementStates
public MovementStates(boolean idle, boolean horizontalIdle, boolean jumping, boolean flying, boolean walking, boolean running, boolean sprinting, boolean crouching, boolean forcedCrouching, boolean falling, boolean fallingFar, boolean climbing, boolean inFluid, boolean swimming, boolean swimJumping, boolean onGround, boolean mantling, boolean sliding, boolean mounting, boolean rolling, boolean sitting, boolean gliding, boolean sleeping, byte extraJumpsUsed) -
MovementStates
-
-
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. -
getIdle
-
getIdle
-
getHorizontalIdle
-
getHorizontalIdle
-
getJumping
-
getJumping
-
getFlying
-
getFlying
-
getWalking
-
getWalking
-
getRunning
-
getRunning
-
getSprinting
-
getSprinting
-
getCrouching
-
getCrouching
-
getForcedCrouching
-
getForcedCrouching
-
getFalling
-
getFalling
-
getFallingFar
-
getFallingFar
-
getClimbing
-
getClimbing
-
getInFluid
-
getInFluid
-
getSwimming
-
getSwimming
-
getSwimJumping
-
getSwimJumping
-
getOnGround
-
getOnGround
-
getMantling
-
getMantling
-
getSliding
-
getSliding
-
getMounting
-
getMounting
-
getRolling
-
getRolling
-
getSitting
-
getSitting
-
getGliding
-
getGliding
-
getSleeping
-
getSleeping
-
getExtraJumpsUsed
-
getExtraJumpsUsed
-
toObject
-
toObject
-
toObject
Decodes one MovementStates 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
-