Class TagPattern

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

public class TagPattern extends Object
  • Field Details

  • Constructor Details

    • TagPattern

      public TagPattern()
    • TagPattern

      public TagPattern(@Nonnull TagPatternType type, int tagIndex, @Nullable TagPattern[] operands, @Nullable TagPattern not)
    • TagPattern

      public TagPattern(@Nonnull TagPattern 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.
    • getType

      public static TagPatternType getType(MemorySegment mem)
    • getType

      public static TagPatternType getType(MemorySegment mem, int offset)
    • getTagIndex

      public static int getTagIndex(MemorySegment mem)
    • getTagIndex

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

      @Nullable public static TagPattern[] getOperands(MemorySegment mem)
    • getOperands

      @Nullable public static TagPattern[] getOperands(MemorySegment mem, int offset)
    • getNot

      @Nullable public static TagPattern getNot(MemorySegment mem)
    • getNot

      @Nullable public static TagPattern getNot(MemorySegment mem, int offset)
    • hasOperands

      public static boolean hasOperands(MemorySegment mem, int offset)
    • hasNot

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

      public static TagPattern toObject(MemorySegment mem)
    • toObject

      public static TagPattern toObject(MemorySegment mem, int offset)
    • toObject

      public static TagPattern toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one TagPattern and reports the end of its encoding through the cursor. A value of this type may hold further values of it, and decoding such a chain recurses once per link. The cursor counts the links so the chain cannot outrun the stack.
    • serialize

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

      public int computeSize()
    • clone

      public TagPattern clone()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object