Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- PACKET_ID
- IS_COMPRESSED
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- mode
- x
- y
- z
- gradientStartX
- gradientStartY
- gradientStartZ
- gradientEndX
- gradientEndY
- gradientEndZ
- gradientMaterials
- gradientShape
- playerX
- playerY
- playerZ
- shadingLighten
- isHoldDownInteraction
- undoGroupSize
- Constructor Details
- Method Details
- getId()
- getChannel()
- requireBounds(MemorySegment, int)
- getMode(MemorySegment)
- getMode(MemorySegment, int)
- getX(MemorySegment)
- getX(MemorySegment, int)
- getY(MemorySegment)
- getY(MemorySegment, int)
- getZ(MemorySegment)
- getZ(MemorySegment, int)
- getGradientStartX(MemorySegment)
- getGradientStartX(MemorySegment, int)
- getGradientStartY(MemorySegment)
- getGradientStartY(MemorySegment, int)
- getGradientStartZ(MemorySegment)
- getGradientStartZ(MemorySegment, int)
- getGradientEndX(MemorySegment)
- getGradientEndX(MemorySegment, int)
- getGradientEndY(MemorySegment)
- getGradientEndY(MemorySegment, int)
- getGradientEndZ(MemorySegment)
- getGradientEndZ(MemorySegment, int)
- getGradientMaterials(MemorySegment)
- getGradientMaterials(MemorySegment, int)
- getGradientShape(MemorySegment)
- getGradientShape(MemorySegment, int)
- getPlayerX(MemorySegment)
- getPlayerX(MemorySegment, int)
- getPlayerY(MemorySegment)
- getPlayerY(MemorySegment, int)
- getPlayerZ(MemorySegment)
- getPlayerZ(MemorySegment, int)
- getShadingLighten(MemorySegment)
- getShadingLighten(MemorySegment, int)
- getIsHoldDownInteraction(MemorySegment)
- getIsHoldDownInteraction(MemorySegment, int)
- getUndoGroupSize(MemorySegment)
- getUndoGroupSize(MemorySegment, int)
- hasGradientMaterials(MemorySegment, int)
- hasGradientShape(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class BuilderToolColorAction
java.lang.Object
com.hypixel.hytale.protocol.packets.buildertools.BuilderToolColorAction
- All Implemented Interfaces:
Packet, ToServerPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intintintintintintintstatic final booleanbooleanstatic final intstatic final intstatic final intfloatfloatfloatbooleanintstatic final intstatic final intintintint -
Constructor Summary
ConstructorsConstructorDescriptionBuilderToolColorAction(ColorToolMode mode, int x, int y, int z, int gradientStartX, int gradientStartY, int gradientStartZ, int gradientEndX, int gradientEndY, int gradientEndZ, String gradientMaterials, String gradientShape, float playerX, float playerY, float playerZ, boolean shadingLighten, boolean isHoldDownInteraction, int undoGroupSize) -
Method Summary
Modifier and TypeMethodDescriptionclone()intCompute the exact number of bytes needed to serialize this packet.booleanReturns the channel this packet should be sent on.static intstatic intgetGradientEndX(MemorySegment mem, int offset) static intstatic intgetGradientEndY(MemorySegment mem, int offset) static intstatic intgetGradientEndZ(MemorySegment mem, int offset) static Stringstatic StringgetGradientMaterials(MemorySegment mem, int offset) static Stringstatic StringgetGradientShape(MemorySegment mem, int offset) static intstatic intgetGradientStartX(MemorySegment mem, int offset) static intstatic intgetGradientStartY(MemorySegment mem, int offset) static intstatic intgetGradientStartZ(MemorySegment mem, int offset) intgetId()Returns the unique packet ID.static booleanstatic booleangetIsHoldDownInteraction(MemorySegment mem, int offset) static ColorToolModegetMode(MemorySegment mem) static ColorToolModegetMode(MemorySegment mem, int offset) static floatgetPlayerX(MemorySegment mem) static floatgetPlayerX(MemorySegment mem, int offset) static floatgetPlayerY(MemorySegment mem) static floatgetPlayerY(MemorySegment mem, int offset) static floatgetPlayerZ(MemorySegment mem) static floatgetPlayerZ(MemorySegment mem, int offset) static booleanstatic booleangetShadingLighten(MemorySegment mem, int offset) static intstatic intgetUndoGroupSize(MemorySegment mem, int offset) static intgetX(MemorySegment mem) static intgetX(MemorySegment mem, int offset) static intgetY(MemorySegment mem) static intgetY(MemorySegment mem, int offset) static intgetZ(MemorySegment mem) static intgetZ(MemorySegment mem, int offset) static booleanhasGradientMaterials(MemorySegment mem, int offset) static booleanhasGradientShape(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) Writes this packet atoffsetand returns the number of bytes written, which callers rely on being exactlyPacket.computeSize().static BuilderToolColorActiontoObject(MemorySegment mem) static BuilderToolColorActiontoObject(MemorySegment mem, int offset) static BuilderToolColorActiontoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one BuilderToolColorAction and reports the end of its encoding through the cursor.
-
Field Details
-
PACKET_ID
public static final int PACKET_ID- See Also:
-
IS_COMPRESSED
public static final boolean IS_COMPRESSED- See Also:
-
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:
-
mode
-
x
public int x -
y
public int y -
z
public int z -
gradientStartX
public int gradientStartX -
gradientStartY
public int gradientStartY -
gradientStartZ
public int gradientStartZ -
gradientEndX
public int gradientEndX -
gradientEndY
public int gradientEndY -
gradientEndZ
public int gradientEndZ -
gradientMaterials
-
gradientShape
-
playerX
public float playerX -
playerY
public float playerY -
playerZ
public float playerZ -
shadingLighten
public boolean shadingLighten -
isHoldDownInteraction
public boolean isHoldDownInteraction -
undoGroupSize
public int undoGroupSize
-
-
Constructor Details
-
BuilderToolColorAction
public BuilderToolColorAction() -
BuilderToolColorAction
public BuilderToolColorAction(@Nonnull ColorToolMode mode, int x, int y, int z, int gradientStartX, int gradientStartY, int gradientStartZ, int gradientEndX, int gradientEndY, int gradientEndZ, @Nullable String gradientMaterials, @Nullable String gradientShape, float playerX, float playerY, float playerZ, boolean shadingLighten, boolean isHoldDownInteraction, int undoGroupSize) -
BuilderToolColorAction
-
-
Method Details
-
getId
-
getChannel
Description copied from interface:PacketReturns the channel this packet should be sent on.- Specified by:
getChannelin interfacePacket
-
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. -
getMode
-
getMode
-
getX
-
getX
-
getY
-
getY
-
getZ
-
getZ
-
getGradientStartX
-
getGradientStartX
-
getGradientStartY
-
getGradientStartY
-
getGradientStartZ
-
getGradientStartZ
-
getGradientEndX
-
getGradientEndX
-
getGradientEndY
-
getGradientEndY
-
getGradientEndZ
-
getGradientEndZ
-
getGradientMaterials
-
getGradientMaterials
-
getGradientShape
-
getGradientShape
-
getPlayerX
-
getPlayerX
-
getPlayerY
-
getPlayerY
-
getPlayerZ
-
getPlayerZ
-
getShadingLighten
-
getShadingLighten
-
getIsHoldDownInteraction
-
getIsHoldDownInteraction
-
getUndoGroupSize
-
getUndoGroupSize
-
hasGradientMaterials
-
hasGradientShape
-
toObject
-
toObject
-
toObject
public static BuilderToolColorAction toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one BuilderToolColorAction 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
Description copied from interface:PacketWrites this packet atoffsetand returns the number of bytes written, which callers rely on being exactlyPacket.computeSize(). The framed write path reserves and length-prefixes on that figure before serializing, so a shorter or longer write corrupts the frame rather than failing. -
computeSize
public int computeSize()Description copied from interface:PacketCompute the exact number of bytes needed to serialize this packet.- Specified by:
computeSizein interfacePacket
-
clone
-
equals
-
hashCode
-