Class RequiredBlockFaceSupport

java.lang.Object
com.hypixel.hytale.protocol.RequiredBlockFaceSupport

public class RequiredBlockFaceSupport extends Object
  • 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

      @Nullable public String faceType
    • selfFaceType

      @Nullable public String selfFaceType
    • blockSetId

      @Nullable public String blockSetId
    • blockTypeId

      public int blockTypeId
    • tagIndex

      public int tagIndex
    • fluidId

      public int fluidId
    • support

      @Nonnull public SupportMatch support
    • matchSelf

      @Nonnull public SupportMatch matchSelf
    • allowSupportPropagation

      public boolean allowSupportPropagation
    • rotate

      public boolean rotate
    • filler

      @Nullable public Vector3i[] 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

      public RequiredBlockFaceSupport(@Nonnull RequiredBlockFaceSupport other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      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

      @Nullable public static String getFaceType(MemorySegment mem)
    • getFaceType

      @Nullable public static String getFaceType(MemorySegment mem, int offset)
    • getSelfFaceType

      @Nullable public static String getSelfFaceType(MemorySegment mem)
    • getSelfFaceType

      @Nullable public static String getSelfFaceType(MemorySegment mem, int offset)
    • getBlockSetId

      @Nullable public static String getBlockSetId(MemorySegment mem)
    • getBlockSetId

      @Nullable public static String getBlockSetId(MemorySegment mem, int offset)
    • getBlockTypeId

      public static int getBlockTypeId(MemorySegment mem)
    • getBlockTypeId

      public static int getBlockTypeId(MemorySegment mem, int offset)
    • getTagIndex

      public static int getTagIndex(MemorySegment mem)
    • getTagIndex

      public static int getTagIndex(MemorySegment mem, int offset)
    • getFluidId

      public static int getFluidId(MemorySegment mem)
    • getFluidId

      public static int getFluidId(MemorySegment mem, int offset)
    • getSupport

      public static SupportMatch getSupport(MemorySegment mem)
    • getSupport

      public static SupportMatch getSupport(MemorySegment mem, int offset)
    • getMatchSelf

      public static SupportMatch getMatchSelf(MemorySegment mem)
    • getMatchSelf

      public static SupportMatch getMatchSelf(MemorySegment mem, int offset)
    • getAllowSupportPropagation

      public static boolean getAllowSupportPropagation(MemorySegment mem)
    • getAllowSupportPropagation

      public static boolean getAllowSupportPropagation(MemorySegment mem, int offset)
    • getRotate

      public static boolean getRotate(MemorySegment mem)
    • getRotate

      public static boolean getRotate(MemorySegment mem, int offset)
    • getFiller

      @Nullable public static Vector3i[] getFiller(MemorySegment mem)
    • getFiller

      @Nullable public static Vector3i[] getFiller(MemorySegment mem, int offset)
    • hasFaceType

      public static boolean hasFaceType(MemorySegment mem, int offset)
    • hasSelfFaceType

      public static boolean hasSelfFaceType(MemorySegment mem, int offset)
    • hasBlockSetId

      public static boolean hasBlockSetId(MemorySegment mem, int offset)
    • hasFiller

      public static boolean hasFiller(MemorySegment mem, int offset)
    • toObject

      public static RequiredBlockFaceSupport toObject(MemorySegment mem)
    • toObject

      public static RequiredBlockFaceSupport toObject(MemorySegment mem, int offset)
    • 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

      public int serialize(@Nonnull MemorySegment mem, int offset)
    • computeSize

      public int computeSize()
    • clone

      public RequiredBlockFaceSupport clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object