Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getWidth(MemorySegment)
- getWidth(MemorySegment, int)
- getHeight(MemorySegment)
- getHeight(MemorySegment, int)
- getDepth(MemorySegment)
- getDepth(MemorySegment, int)
- getCentered(MemorySegment)
- getCentered(MemorySegment, int)
- getOffset(MemorySegment)
- getOffset(MemorySegment, int)
- getOrientation(MemorySegment)
- getOrientation(MemorySegment, int)
- hasOffset(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class BoxBreakShape
java.lang.Object
com.hypixel.hytale.protocol.BreakShape
com.hypixel.hytale.protocol.BoxBreakShape
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintstatic final intintstatic final intstatic final intorg.joml.Vector3fcstatic final intstatic final intint -
Constructor Summary
ConstructorsConstructorDescriptionBoxBreakShape(int width, int height, int depth, boolean centered, org.joml.Vector3fc offset, BreakShapeOrientation orientation) BoxBreakShape(BoxBreakShape other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleangetCentered(MemorySegment mem) static booleangetCentered(MemorySegment mem, int offset) static intgetDepth(MemorySegment mem) static intgetDepth(MemorySegment mem, int offset) static intgetHeight(MemorySegment mem) static intgetHeight(MemorySegment mem, int offset) static org.joml.Vector3fcgetOffset(MemorySegment mem) static org.joml.Vector3fcgetOffset(MemorySegment mem, int offset) static BreakShapeOrientationstatic BreakShapeOrientationgetOrientation(MemorySegment mem, int offset) static intgetWidth(MemorySegment mem) static intgetWidth(MemorySegment mem, int offset) inthashCode()static booleanhasOffset(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static BoxBreakShapetoObject(MemorySegment mem) static BoxBreakShapetoObject(MemorySegment mem, int offset) static BoxBreakShapetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one BoxBreakShape and reports the end of its encoding through the cursor.Methods inherited from class BreakShape
computeSizeWithTypeId, getTypeId, serializeWithTypeId
-
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:
-
width
public int width -
height
public int height -
depth
public int depth -
centered
public boolean centered -
offset
@Nullable public org.joml.Vector3fc offset -
orientation
-
-
Constructor Details
-
BoxBreakShape
public BoxBreakShape() -
BoxBreakShape
public BoxBreakShape(int width, int height, int depth, boolean centered, @Nullable org.joml.Vector3fc offset, @Nonnull BreakShapeOrientation orientation) -
BoxBreakShape
-
-
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. -
getWidth
-
getWidth
-
getHeight
-
getHeight
-
getDepth
-
getDepth
-
getCentered
-
getCentered
-
getOffset
-
getOffset
-
getOrientation
-
getOrientation
-
hasOffset
-
toObject
-
toObject
-
toObject
Decodes one BoxBreakShape 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
- Specified by:
serializein classBreakShape
-
computeSize
public int computeSize()- Specified by:
computeSizein classBreakShape
-
clone
-
equals
-
hashCode
-