Class HashedStructuredItem

java.lang.Object
com.viaversion.viaversion.api.minecraft.item.HashedStructuredItem
All Implemented Interfaces:
HashedItem, ItemBase

public class HashedStructuredItem extends Object implements HashedItem
  • Constructor Details

    • HashedStructuredItem

      public HashedStructuredItem(int identifier, int amount)
    • HashedStructuredItem

      public HashedStructuredItem(int identifier, int amount, it.unimi.dsi.fastutil.ints.Int2IntMap dataHashes, it.unimi.dsi.fastutil.ints.IntSet removedData)
  • Method Details

    • empty

      public static HashedStructuredItem empty()
    • identifier

      public int identifier()
      Description copied from interface: ItemBase
      Returns the item identifier.
      Specified by:
      identifier in interface ItemBase
      Returns:
      item identifier
    • setIdentifier

      public void setIdentifier(int identifier)
      Description copied from interface: ItemBase
      Sets the item identifier.
      Specified by:
      setIdentifier in interface ItemBase
      Parameters:
      identifier - item identifier
    • amount

      public int amount()
      Description copied from interface: ItemBase
      Returns the item amount.
      Specified by:
      amount in interface ItemBase
      Returns:
      item amount
    • setAmount

      public void setAmount(int amount)
      Description copied from interface: ItemBase
      Returns the item amount.
      Specified by:
      setAmount in interface ItemBase
      Parameters:
      amount - item amount
    • dataHashesById

      public it.unimi.dsi.fastutil.ints.Int2IntMap dataHashesById()
      Specified by:
      dataHashesById in interface HashedItem
    • removedDataIds

      public it.unimi.dsi.fastutil.ints.IntSet removedDataIds()
      Specified by:
      removedDataIds in interface HashedItem
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object