Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getFaceType(MemorySegment)
- getFaceType(MemorySegment, int)
- getSelfFaceType(MemorySegment)
- getSelfFaceType(MemorySegment, int)
- getBlockSetId(MemorySegment)
- getBlockSetId(MemorySegment, int)
- getBlockTypeId(MemorySegment)
- getBlockTypeId(MemorySegment, int)
- getTagIndex(MemorySegment)
- getTagIndex(MemorySegment, int)
- getFluidId(MemorySegment)
- getFluidId(MemorySegment, int)
- getSupport(MemorySegment)
- getSupport(MemorySegment, int)
- getMatchSelf(MemorySegment)
- getMatchSelf(MemorySegment, int)
- getAllowSupportPropagation(MemorySegment)
- getAllowSupportPropagation(MemorySegment, int)
- getRotate(MemorySegment)
- getRotate(MemorySegment, int)
- getFiller(MemorySegment)
- getFiller(MemorySegment, int)
- hasFaceType(MemorySegment, int)
- hasSelfFaceType(MemorySegment, int)
- hasBlockSetId(MemorySegment, int)
- hasFiller(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class RequiredBlockFaceSupport
java.lang.Object
com.hypixel.hytale.protocol.RequiredBlockFaceSupport
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintVector3i[]static final intintstatic final intstatic final intbooleanintstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRequiredBlockFaceSupport(String faceType, String selfFaceType, String blockSetId, int blockTypeId, int tagIndex, int fluidId, SupportMatch support, SupportMatch matchSelf, boolean allowSupportPropagation, boolean rotate, Vector3i[] filler) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleanstatic booleangetAllowSupportPropagation(MemorySegment mem, int offset) static Stringstatic StringgetBlockSetId(MemorySegment mem, int offset) static intstatic intgetBlockTypeId(MemorySegment mem, int offset) static StringgetFaceType(MemorySegment mem) static StringgetFaceType(MemorySegment mem, int offset) static Vector3i[]getFiller(MemorySegment mem) static Vector3i[]getFiller(MemorySegment mem, int offset) static intgetFluidId(MemorySegment mem) static intgetFluidId(MemorySegment mem, int offset) static SupportMatchstatic SupportMatchgetMatchSelf(MemorySegment mem, int offset) static booleangetRotate(MemorySegment mem) static booleangetRotate(MemorySegment mem, int offset) static Stringstatic StringgetSelfFaceType(MemorySegment mem, int offset) static SupportMatchgetSupport(MemorySegment mem) static SupportMatchgetSupport(MemorySegment mem, int offset) static intgetTagIndex(MemorySegment mem) static intgetTagIndex(MemorySegment mem, int offset) static booleanhasBlockSetId(MemorySegment mem, int offset) static booleanhasFaceType(MemorySegment mem, int offset) static booleanhasFiller(MemorySegment mem, int offset) inthashCode()static booleanhasSelfFaceType(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static RequiredBlockFaceSupporttoObject(MemorySegment mem) static RequiredBlockFaceSupporttoObject(MemorySegment mem, int offset) static RequiredBlockFaceSupporttoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one RequiredBlockFaceSupport and reports the end of its encoding through the cursor.
-
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:
-
faceType
-
selfFaceType
-
blockSetId
-
blockTypeId
public int blockTypeId -
tagIndex
public int tagIndex -
fluidId
public int fluidId -
support
-
matchSelf
-
allowSupportPropagation
public boolean allowSupportPropagation -
rotate
public boolean rotate -
filler
-
-
Constructor Details
-
RequiredBlockFaceSupport
public RequiredBlockFaceSupport() -
RequiredBlockFaceSupport
public RequiredBlockFaceSupport(@Nullable String faceType, @Nullable String selfFaceType, @Nullable String blockSetId, int blockTypeId, int tagIndex, int fluidId, @Nonnull SupportMatch support, @Nonnull SupportMatch matchSelf, boolean allowSupportPropagation, boolean rotate, @Nullable Vector3i[] filler) -
RequiredBlockFaceSupport
-
-
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. -
getFaceType
-
getFaceType
-
getSelfFaceType
-
getSelfFaceType
-
getBlockSetId
-
getBlockSetId
-
getBlockTypeId
-
getBlockTypeId
-
getTagIndex
-
getTagIndex
-
getFluidId
-
getFluidId
-
getSupport
-
getSupport
-
getMatchSelf
-
getMatchSelf
-
getAllowSupportPropagation
-
getAllowSupportPropagation
-
getRotate
-
getRotate
-
getFiller
-
getFiller
-
hasFaceType
-
hasSelfFaceType
-
hasBlockSetId
-
hasFiller
-
toObject
-
toObject
-
toObject
public static RequiredBlockFaceSupport toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one RequiredBlockFaceSupport 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
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-