Class InventoryCache

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

public class InventoryCache extends Object
  • Constructor Details

    • InventoryCache

      public InventoryCache()
  • Method Details

    • getPlayerInventory

      public Container getPlayerInventory()
    • getOpenContainer

      public Container getOpenContainer()
    • setInventory

      public void setInventory(int containerId, ItemStack[] inventory)
    • setItemStack

      public void setItemStack(int containerId, int slot, ItemStack newItemStack)
    • closeContainer

      public void closeContainer(int containerId)
    • openContainer

      public void openContainer(int containerId, ContainerType type, net.kyori.adventure.text.Component title)
    • handleContainerClick

      public void handleContainerClick(ServerboundContainerClickPacket packet)
    • handleSetCreativeModeSlot

      public void handleSetCreativeModeSlot(ServerboundSetCreativeModeSlotPacket packet)
    • reset

      public void reset()