Class CloudDoubleChestInventory

All Implemented Interfaces:
org.cloudburstmc.api.inventory.ContainerInventory, org.cloudburstmc.api.inventory.Inventory, org.cloudburstmc.api.inventory.InventoryHolder

public class CloudDoubleChestInventory extends CloudContainer implements org.cloudburstmc.api.inventory.InventoryHolder
author: MagicDroidX Nukkit Project
  • Constructor Details

  • Method Details

    • getInventory

      public org.cloudburstmc.api.inventory.Inventory getInventory()
      Specified by:
      getInventory in interface org.cloudburstmc.api.inventory.InventoryHolder
    • getHolder

      public org.cloudburstmc.api.blockentity.Chest getHolder()
      Specified by:
      getHolder in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      getHolder in class BaseInventory
    • getItem

      public CloudItemStack getItem(int index)
      Specified by:
      getItem in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      getItem in class BaseInventory
    • setItem

      public boolean setItem(int index, org.cloudburstmc.api.item.ItemStack item, boolean send)
      Specified by:
      setItem in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      setItem in class BaseInventory
    • clear

      public boolean clear(int index)
      Specified by:
      clear in interface org.cloudburstmc.api.inventory.Inventory
    • getContents

      public Map<Integer,​org.cloudburstmc.api.item.ItemStack> getContents()
      Specified by:
      getContents in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      getContents in class BaseInventory
    • setContents

      public void setContents(Map<Integer,​org.cloudburstmc.api.item.ItemStack> items)
      Specified by:
      setContents in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      setContents in class BaseInventory
    • onOpen

      public void onOpen(org.cloudburstmc.api.player.Player who)
      Specified by:
      onOpen in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      onOpen in class CloudContainer
    • onClose

      public void onClose(org.cloudburstmc.api.player.Player who)
      Specified by:
      onClose in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      onClose in class CloudContainer
    • getLeftSide

      public CloudChestInventory getLeftSide()
    • getRightSide

      public CloudChestInventory getRightSide()
    • sendSlot

      public void sendSlot(org.cloudburstmc.api.inventory.Inventory inv, int index, org.cloudburstmc.api.player.Player... players)