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
- rotation
- translationOffset
- initialSelectionMin
- initialSelectionMax
- initialRotationOrigin
- cutOriginal
- applyTransformationToSelectionMinMax
- isExitingTransformMode
- initialPastePointForClipboardPaste
- Constructor Details
- Method Details
- getId()
- getChannel()
- requireBounds(MemorySegment, int)
- getRotation(MemorySegment)
- getRotation(MemorySegment, int)
- getTranslationOffset(MemorySegment)
- getTranslationOffset(MemorySegment, int)
- getInitialSelectionMin(MemorySegment)
- getInitialSelectionMin(MemorySegment, int)
- getInitialSelectionMax(MemorySegment)
- getInitialSelectionMax(MemorySegment, int)
- getInitialRotationOrigin(MemorySegment)
- getInitialRotationOrigin(MemorySegment, int)
- getCutOriginal(MemorySegment)
- getCutOriginal(MemorySegment, int)
- getApplyTransformationToSelectionMinMax(MemorySegment)
- getApplyTransformationToSelectionMinMax(MemorySegment, int)
- getIsExitingTransformMode(MemorySegment)
- getIsExitingTransformMode(MemorySegment, int)
- getInitialPastePointForClipboardPaste(MemorySegment)
- getInitialPastePointForClipboardPaste(MemorySegment, int)
- hasRotation(MemorySegment, int)
- hasTranslationOffset(MemorySegment, int)
- hasInitialSelectionMin(MemorySegment, int)
- hasInitialSelectionMax(MemorySegment, int)
- hasInitialPastePointForClipboardPaste(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class BuilderToolSelectionTransform
java.lang.Object
com.hypixel.hytale.protocol.packets.buildertools.BuilderToolSelectionTransform
- All Implemented Interfaces:
Packet, ToServerPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanstatic final intorg.joml.Vector3fcstatic final booleanbooleanstatic final intstatic final intstatic final intorg.joml.Quaternionfcstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionBuilderToolSelectionTransform(org.joml.Quaternionfc rotation, BlockPosition translationOffset, BlockPosition initialSelectionMin, BlockPosition initialSelectionMax, org.joml.Vector3fc initialRotationOrigin, boolean cutOriginal, boolean applyTransformationToSelectionMinMax, boolean isExitingTransformMode, BlockPosition initialPastePointForClipboardPaste) -
Method Summary
Modifier and TypeMethodDescriptionclone()intCompute the exact number of bytes needed to serialize this packet.booleanstatic booleanstatic booleangetApplyTransformationToSelectionMinMax(MemorySegment mem, int offset) Returns the channel this packet should be sent on.static booleanstatic booleangetCutOriginal(MemorySegment mem, int offset) intgetId()Returns the unique packet ID.static BlockPositionstatic BlockPositiongetInitialPastePointForClipboardPaste(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetInitialRotationOrigin(MemorySegment mem, int offset) static BlockPositionstatic BlockPositiongetInitialSelectionMax(MemorySegment mem, int offset) static BlockPositionstatic BlockPositiongetInitialSelectionMin(MemorySegment mem, int offset) static booleanstatic booleangetIsExitingTransformMode(MemorySegment mem, int offset) static org.joml.QuaternionfcgetRotation(MemorySegment mem) static org.joml.QuaternionfcgetRotation(MemorySegment mem, int offset) static BlockPositionstatic BlockPositiongetTranslationOffset(MemorySegment mem, int offset) inthashCode()static booleanhasInitialPastePointForClipboardPaste(MemorySegment mem, int offset) static booleanhasInitialSelectionMax(MemorySegment mem, int offset) static booleanhasInitialSelectionMin(MemorySegment mem, int offset) static booleanhasRotation(MemorySegment mem, int offset) static booleanhasTranslationOffset(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().toObject(MemorySegment mem) toObject(MemorySegment mem, int offset) toObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one BuilderToolSelectionTransform 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:
-
rotation
@Nullable public org.joml.Quaternionfc rotation -
translationOffset
-
initialSelectionMin
-
initialSelectionMax
-
initialRotationOrigin
@Nonnull public org.joml.Vector3fc initialRotationOrigin -
cutOriginal
public boolean cutOriginal -
applyTransformationToSelectionMinMax
public boolean applyTransformationToSelectionMinMax -
isExitingTransformMode
public boolean isExitingTransformMode -
initialPastePointForClipboardPaste
-
-
Constructor Details
-
BuilderToolSelectionTransform
public BuilderToolSelectionTransform() -
BuilderToolSelectionTransform
public BuilderToolSelectionTransform(@Nullable org.joml.Quaternionfc rotation, @Nullable BlockPosition translationOffset, @Nullable BlockPosition initialSelectionMin, @Nullable BlockPosition initialSelectionMax, @Nonnull org.joml.Vector3fc initialRotationOrigin, boolean cutOriginal, boolean applyTransformationToSelectionMinMax, boolean isExitingTransformMode, @Nullable BlockPosition initialPastePointForClipboardPaste) -
BuilderToolSelectionTransform
-
-
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. -
getRotation
-
getRotation
-
getTranslationOffset
-
getTranslationOffset
-
getInitialSelectionMin
-
getInitialSelectionMin
-
getInitialSelectionMax
-
getInitialSelectionMax
-
getInitialRotationOrigin
-
getInitialRotationOrigin
-
getCutOriginal
-
getCutOriginal
-
getApplyTransformationToSelectionMinMax
-
getApplyTransformationToSelectionMinMax
-
getIsExitingTransformMode
-
getIsExitingTransformMode
-
getInitialPastePointForClipboardPaste
-
getInitialPastePointForClipboardPaste
@Nullable public static BlockPosition getInitialPastePointForClipboardPaste(MemorySegment mem, int offset) -
hasRotation
-
hasTranslationOffset
-
hasInitialSelectionMin
-
hasInitialSelectionMax
-
hasInitialPastePointForClipboardPaste
-
toObject
-
toObject
-
toObject
public static BuilderToolSelectionTransform toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one BuilderToolSelectionTransform 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
-