Class BuilderToolPrefabPreview

java.lang.Object
com.hypixel.hytale.protocol.packets.buildertools.BuilderToolPrefabPreview
All Implemented Interfaces:
Packet, ToClientPacket

public class BuilderToolPrefabPreview extends Object implements Packet, ToClientPacket
  • Field Details

  • Constructor Details

  • Method Details

    • getId

      public int getId()
      Description copied from interface: Packet
      Returns the unique packet ID.
      Specified by:
      getId in interface Packet
    • getChannel

      public NetworkChannel getChannel()
      Description copied from interface: Packet
      Returns the channel this packet should be sent on.
      Specified by:
      getChannel in interface Packet
    • 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.
    • getBlocksChange

      @Nullable public static BlockChange[] getBlocksChange(MemorySegment mem)
    • getBlocksChange

      @Nullable public static BlockChange[] getBlocksChange(MemorySegment mem, int offset)
    • getFluidsChange

      @Nullable public static FluidChange[] getFluidsChange(MemorySegment mem)
    • getFluidsChange

      @Nullable public static FluidChange[] getFluidsChange(MemorySegment mem, int offset)
    • getEntityChanges

      @Nullable public static ClipboardEntityChange[] getEntityChanges(MemorySegment mem)
    • getEntityChanges

      @Nullable public static ClipboardEntityChange[] getEntityChanges(MemorySegment mem, int offset)
    • getTilt

      @Nullable public static Integer getTilt(MemorySegment mem)
    • getTilt

      @Nullable public static Integer getTilt(MemorySegment mem, int offset)
    • getSpinSpeed

      @Nullable public static Integer getSpinSpeed(MemorySegment mem)
    • getSpinSpeed

      @Nullable public static Integer getSpinSpeed(MemorySegment mem, int offset)
    • getPreviewScale

      @Nullable public static Integer getPreviewScale(MemorySegment mem)
    • getPreviewScale

      @Nullable public static Integer getPreviewScale(MemorySegment mem, int offset)
    • getBiomeTint

      @Nullable public static Integer getBiomeTint(MemorySegment mem)
    • getBiomeTint

      @Nullable public static Integer getBiomeTint(MemorySegment mem, int offset)
    • getWaterTint

      @Nullable public static Integer getWaterTint(MemorySegment mem)
    • getWaterTint

      @Nullable public static Integer getWaterTint(MemorySegment mem, int offset)
    • getBlocksOmitted

      public static boolean getBlocksOmitted(MemorySegment mem)
    • getBlocksOmitted

      public static boolean getBlocksOmitted(MemorySegment mem, int offset)
    • getBounds

      @Nullable public static EditorSelection getBounds(MemorySegment mem)
    • getBounds

      @Nullable public static EditorSelection getBounds(MemorySegment mem, int offset)
    • hasTilt

      public static boolean hasTilt(MemorySegment mem, int offset)
    • hasSpinSpeed

      public static boolean hasSpinSpeed(MemorySegment mem, int offset)
    • hasPreviewScale

      public static boolean hasPreviewScale(MemorySegment mem, int offset)
    • hasBiomeTint

      public static boolean hasBiomeTint(MemorySegment mem, int offset)
    • hasWaterTint

      public static boolean hasWaterTint(MemorySegment mem, int offset)
    • hasBounds

      public static boolean hasBounds(MemorySegment mem, int offset)
    • hasBlocksChange

      public static boolean hasBlocksChange(MemorySegment mem, int offset)
    • hasFluidsChange

      public static boolean hasFluidsChange(MemorySegment mem, int offset)
    • hasEntityChanges

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

      public static BuilderToolPrefabPreview toObject(MemorySegment mem)
    • toObject

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

      public static BuilderToolPrefabPreview toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one BuilderToolPrefabPreview 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)
      Description copied from interface: Packet
      Writes this packet at offset and returns the number of bytes written, which callers rely on being exactly Packet.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.
      Specified by:
      serialize in interface Packet
    • computeSize

      public int computeSize()
      Description copied from interface: Packet
      Compute the exact number of bytes needed to serialize this packet.
      Specified by:
      computeSize in interface Packet
    • clone

      public BuilderToolPrefabPreview clone()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object