Package com.hypixel.hytale.protocol
Class MovementStates
java.lang.Object
com.hypixel.hytale.protocol.MovementStates
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanstatic 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 climbing, boolean inFluid, boolean swimming, boolean swimJumping, boolean onGround, boolean mantling, boolean sliding, boolean mounting, boolean rolling, boolean sitting, boolean gliding, boolean sleeping) MovementStates(MovementStates other) -
Method Summary
Modifier and TypeMethodDescriptionclone()static intcomputeBytesConsumed(io.netty.buffer.ByteBuf buf, int offset) intstatic MovementStatesdeserialize(io.netty.buffer.ByteBuf buf, int offset) booleaninthashCode()voidserialize(io.netty.buffer.ByteBuf buf) static ValidationResultvalidateStructure(io.netty.buffer.ByteBuf buffer, int offset)
-
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 -
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
-
-
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 climbing, boolean inFluid, boolean swimming, boolean swimJumping, boolean onGround, boolean mantling, boolean sliding, boolean mounting, boolean rolling, boolean sitting, boolean gliding, boolean sleeping) -
MovementStates
-
-
Method Details
-
deserialize
-
computeBytesConsumed
public static int computeBytesConsumed(@Nonnull io.netty.buffer.ByteBuf buf, int offset) -
serialize
public void serialize(@Nonnull io.netty.buffer.ByteBuf buf) -
computeSize
public int computeSize() -
validateStructure
public static ValidationResult validateStructure(@Nonnull io.netty.buffer.ByteBuf buffer, int offset) -
clone
-
equals
-
hashCode
public int hashCode()
-