Class Container

java.lang.Object
com.zenith.cache.data.inventory.Container

public class Container extends Object
  • Field Details

    • EMPTY_STACK

      public static final ItemStack EMPTY_STACK
  • Constructor Details

    • Container

      public Container(int containerId, List<ItemStack> contents)
    • Container

      public Container(int containerId, int size)
    • Container

      public Container(int containerId, ContainerType type, net.kyori.adventure.text.Component title)
  • Method Details

    • setContents

      public void setContents(ItemStack[] inventory)
    • hashToMatchingStack

      public ItemStack hashToMatchingStack(HashedStack hashedStack)
    • setItemStack

      public void setItemStack(int slot, ItemStack newItemStack)
    • getItemStack

      public ItemStack getItemStack(int slot)
    • getSize

      public int getSize()
    • getStateId

      public int getStateId()
    • getStateIdAtomic

      @Deprecated public AtomicInteger getStateIdAtomic()
      Deprecated.
    • incrementStateId

      public int incrementStateId()
    • setStateId

      public void setStateId(int stateId)
    • getContainerId

      public int getContainerId()
    • getContents

      public List<ItemStack> getContents()
    • getType

      public ContainerType getType()
    • getTitle

      public net.kyori.adventure.text.Component getTitle()
    • setContainerId

      public void setContainerId(int containerId)
    • setType

      public void setType(ContainerType type)
    • setTitle

      public void setTitle(net.kyori.adventure.text.Component title)
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object