Class InventorySection

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

public class InventorySection extends Object
  • Field Details

  • Constructor Details

    • InventorySection

      public InventorySection()
    • InventorySection

      public InventorySection(@Nullable Map<Integer,ItemWithAllMetadata> items, short capacity)
    • InventorySection

      public InventorySection(@Nonnull InventorySection other)
  • Method Details

    • deserialize

      @Nonnull public static InventorySection deserialize(@Nonnull io.netty.buffer.ByteBuf buf, int offset)
    • computeBytesConsumed

      public static int computeBytesConsumed(@Nonnull io.netty.buffer.ByteBuf buf, int offset)
    • serialize

      public void serialize(@Nonnull io.netty.buffer.ByteBuf buf)
    • computeSize

      public int computeSize()
    • validateStructure

      public static ValidationResult validateStructure(@Nonnull io.netty.buffer.ByteBuf buffer, int offset)
    • clone

      public InventorySection clone()
      Overrides:
      clone in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object