Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getId()
- getChannel()
- requireBounds(MemorySegment, int)
- getSelection(MemorySegment)
- getSelection(MemorySegment, int)
- getBlocksChange(MemorySegment)
- getBlocksChange(MemorySegment, int)
- getFluidsChange(MemorySegment)
- getFluidsChange(MemorySegment, int)
- getEntityChanges(MemorySegment)
- getEntityChanges(MemorySegment, int)
- getBlocksCount(MemorySegment)
- getBlocksCount(MemorySegment, int)
- getAdvancedPreview(MemorySegment)
- getAdvancedPreview(MemorySegment, int)
- getSkipPreviewRebuild(MemorySegment)
- getSkipPreviewRebuild(MemorySegment, int)
- getCumulativeRotX(MemorySegment)
- getCumulativeRotX(MemorySegment, int)
- getCumulativeRotY(MemorySegment)
- getCumulativeRotY(MemorySegment, int)
- getCumulativeRotZ(MemorySegment)
- getCumulativeRotZ(MemorySegment, int)
- getBlocksOmitted(MemorySegment)
- getBlocksOmitted(MemorySegment, int)
- getAnchorBounds(MemorySegment)
- getAnchorBounds(MemorySegment, int)
- getShapeOccupancy(MemorySegment)
- getShapeOccupancy(MemorySegment, int)
- hasSelection(MemorySegment, int)
- hasCumulativeRotX(MemorySegment, int)
- hasCumulativeRotY(MemorySegment, int)
- hasCumulativeRotZ(MemorySegment, int)
- hasAnchorBounds(MemorySegment, int)
- hasBlocksChange(MemorySegment, int)
- hasFluidsChange(MemorySegment, int)
- hasEntityChanges(MemorySegment, int)
- hasShapeOccupancy(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class EditorBlocksChange
java.lang.Object
com.hypixel.hytale.protocol.packets.interface_.EditorBlocksChange
- All Implemented Interfaces:
Packet, ToClientPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintbooleanstatic final intstatic final booleanstatic final intstatic final intstatic final intbyte[]booleanstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionEditorBlocksChange(EditorSelection selection, BlockChange[] blocksChange, FluidChange[] fluidsChange, ClipboardEntityChange[] entityChanges, int blocksCount, boolean advancedPreview, boolean skipPreviewRebuild, Integer cumulativeRotX, Integer cumulativeRotY, Integer cumulativeRotZ, boolean blocksOmitted, EditorSelection anchorBounds, byte[] shapeOccupancy) -
Method Summary
Modifier and TypeMethodDescriptionclone()intCompute the exact number of bytes needed to serialize this packet.booleanstatic booleanstatic booleangetAdvancedPreview(MemorySegment mem, int offset) static EditorSelectionstatic EditorSelectiongetAnchorBounds(MemorySegment mem, int offset) static BlockChange[]static BlockChange[]getBlocksChange(MemorySegment mem, int offset) static intstatic intgetBlocksCount(MemorySegment mem, int offset) static booleanstatic booleangetBlocksOmitted(MemorySegment mem, int offset) Returns the channel this packet should be sent on.static Integerstatic IntegergetCumulativeRotX(MemorySegment mem, int offset) static Integerstatic IntegergetCumulativeRotY(MemorySegment mem, int offset) static Integerstatic IntegergetCumulativeRotZ(MemorySegment mem, int offset) static ClipboardEntityChange[]static ClipboardEntityChange[]getEntityChanges(MemorySegment mem, int offset) static FluidChange[]static FluidChange[]getFluidsChange(MemorySegment mem, int offset) intgetId()Returns the unique packet ID.static EditorSelectionstatic EditorSelectiongetSelection(MemorySegment mem, int offset) static byte[]static byte[]getShapeOccupancy(MemorySegment mem, int offset) static booleanstatic booleangetSkipPreviewRebuild(MemorySegment mem, int offset) static booleanhasAnchorBounds(MemorySegment mem, int offset) static booleanhasBlocksChange(MemorySegment mem, int offset) static booleanhasCumulativeRotX(MemorySegment mem, int offset) static booleanhasCumulativeRotY(MemorySegment mem, int offset) static booleanhasCumulativeRotZ(MemorySegment mem, int offset) static booleanhasEntityChanges(MemorySegment mem, int offset) static booleanhasFluidsChange(MemorySegment mem, int offset) inthashCode()static booleanhasSelection(MemorySegment mem, int offset) static booleanhasShapeOccupancy(MemorySegment mem, int offset) 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 EditorBlocksChangetoObject(MemorySegment mem) static EditorBlocksChangetoObject(MemorySegment mem, int offset) static EditorBlocksChangetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one EditorBlocksChange 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:
-
selection
-
blocksChange
-
fluidsChange
-
entityChanges
-
blocksCount
public int blocksCount -
advancedPreview
public boolean advancedPreview -
skipPreviewRebuild
public boolean skipPreviewRebuild -
cumulativeRotX
-
cumulativeRotY
-
cumulativeRotZ
-
blocksOmitted
public boolean blocksOmitted -
anchorBounds
-
shapeOccupancy
@Nullable public byte[] shapeOccupancy
-
-
Constructor Details
-
EditorBlocksChange
public EditorBlocksChange() -
EditorBlocksChange
public EditorBlocksChange(@Nullable EditorSelection selection, @Nullable BlockChange[] blocksChange, @Nullable FluidChange[] fluidsChange, @Nullable ClipboardEntityChange[] entityChanges, int blocksCount, boolean advancedPreview, boolean skipPreviewRebuild, @Nullable Integer cumulativeRotX, @Nullable Integer cumulativeRotY, @Nullable Integer cumulativeRotZ, boolean blocksOmitted, @Nullable EditorSelection anchorBounds, @Nullable byte[] shapeOccupancy) -
EditorBlocksChange
-
-
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. -
getSelection
-
getSelection
-
getBlocksChange
-
getBlocksChange
-
getFluidsChange
-
getFluidsChange
-
getEntityChanges
-
getEntityChanges
-
getBlocksCount
-
getBlocksCount
-
getAdvancedPreview
-
getAdvancedPreview
-
getSkipPreviewRebuild
-
getSkipPreviewRebuild
-
getCumulativeRotX
-
getCumulativeRotX
-
getCumulativeRotY
-
getCumulativeRotY
-
getCumulativeRotZ
-
getCumulativeRotZ
-
getBlocksOmitted
-
getBlocksOmitted
-
getAnchorBounds
-
getAnchorBounds
-
getShapeOccupancy
-
getShapeOccupancy
-
hasSelection
-
hasCumulativeRotX
-
hasCumulativeRotY
-
hasCumulativeRotZ
-
hasAnchorBounds
-
hasBlocksChange
-
hasFluidsChange
-
hasEntityChanges
-
hasShapeOccupancy
-
toObject
-
toObject
-
toObject
public static EditorBlocksChange toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one EditorBlocksChange 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
-