Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getDisableForward(MemorySegment)
- getDisableForward(MemorySegment, int)
- getDisableBackward(MemorySegment)
- getDisableBackward(MemorySegment, int)
- getDisableLeft(MemorySegment)
- getDisableLeft(MemorySegment, int)
- getDisableRight(MemorySegment)
- getDisableRight(MemorySegment, int)
- getDisableSprint(MemorySegment)
- getDisableSprint(MemorySegment, int)
- getDisableJump(MemorySegment)
- getDisableJump(MemorySegment, int)
- getDisableCrouch(MemorySegment)
- getDisableCrouch(MemorySegment, int)
- getSpeedMultiplier(MemorySegment)
- getSpeedMultiplier(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class MovementEffects
java.lang.Object
com.hypixel.hytale.protocol.MovementEffects
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanstatic final intstatic final intstatic final intfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionMovementEffects(boolean disableForward, boolean disableBackward, boolean disableLeft, boolean disableRight, boolean disableSprint, boolean disableJump, boolean disableCrouch, float speedMultiplier) MovementEffects(MovementEffects other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleanstatic booleangetDisableBackward(MemorySegment mem, int offset) static booleanstatic booleangetDisableCrouch(MemorySegment mem, int offset) static booleanstatic booleangetDisableForward(MemorySegment mem, int offset) static booleanstatic booleangetDisableJump(MemorySegment mem, int offset) static booleanstatic booleangetDisableLeft(MemorySegment mem, int offset) static booleanstatic booleangetDisableRight(MemorySegment mem, int offset) static booleanstatic booleangetDisableSprint(MemorySegment mem, int offset) static floatstatic floatgetSpeedMultiplier(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static MovementEffectstoObject(MemorySegment mem) static MovementEffectstoObject(MemorySegment mem, int offset) static MovementEffectstoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one MovementEffects 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:
-
disableForward
public boolean disableForward -
disableBackward
public boolean disableBackward -
disableLeft
public boolean disableLeft -
disableRight
public boolean disableRight -
disableSprint
public boolean disableSprint -
disableJump
public boolean disableJump -
disableCrouch
public boolean disableCrouch -
speedMultiplier
public float speedMultiplier
-
-
Constructor Details
-
MovementEffects
public MovementEffects() -
MovementEffects
public MovementEffects(boolean disableForward, boolean disableBackward, boolean disableLeft, boolean disableRight, boolean disableSprint, boolean disableJump, boolean disableCrouch, float speedMultiplier) -
MovementEffects
-
-
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. -
getDisableForward
-
getDisableForward
-
getDisableBackward
-
getDisableBackward
-
getDisableLeft
-
getDisableLeft
-
getDisableRight
-
getDisableRight
-
getDisableSprint
-
getDisableSprint
-
getDisableJump
-
getDisableJump
-
getDisableCrouch
-
getDisableCrouch
-
getSpeedMultiplier
-
getSpeedMultiplier
-
toObject
-
toObject
-
toObject
Decodes one MovementEffects 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
-