public class CloudDoubleChestInventory extends CloudContainer implements org.cloudburstmc.api.inventory.InventoryHolder
holder, maxStackSize, name, size, slots, title, type, viewers| Constructor and Description |
|---|
CloudDoubleChestInventory(ChestBlockEntity left,
ChestBlockEntity right) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear(int index) |
Map<Integer,org.cloudburstmc.api.item.ItemStack> |
getContents() |
org.cloudburstmc.api.blockentity.Chest |
getHolder() |
org.cloudburstmc.api.inventory.Inventory |
getInventory() |
CloudItemStack |
getItem(int index) |
CloudChestInventory |
getLeftSide() |
CloudChestInventory |
getRightSide() |
void |
onClose(org.cloudburstmc.api.player.Player who) |
void |
onOpen(org.cloudburstmc.api.player.Player who) |
void |
sendSlot(org.cloudburstmc.api.inventory.Inventory inv,
int index,
org.cloudburstmc.api.player.Player... players) |
void |
setContents(Map<Integer,org.cloudburstmc.api.item.ItemStack> items) |
boolean |
setItem(int index,
org.cloudburstmc.api.item.ItemStack item,
boolean send) |
calculateRedstone, sendBlockEventPacketaddItem, addItemToFirstEmptySlot, all, canAddItem, clear, clearAll, close, contains, decrementCount, first, firstEmpty, firstFit, firstNonEmpty, getEmptySlotsCount, getFreeSpace, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, sendSlot, setMaxStackSize, setSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddItem, all, canAddItem, clear, clearAll, close, contains, decrementCount, first, first, firstEmpty, firstFit, firstFit, firstNonEmpty, getFreeSpace, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setItem, setMaxStackSizepublic CloudDoubleChestInventory(ChestBlockEntity left, ChestBlockEntity right)
public org.cloudburstmc.api.inventory.Inventory getInventory()
getInventory in interface org.cloudburstmc.api.inventory.InventoryHolderpublic org.cloudburstmc.api.blockentity.Chest getHolder()
getHolder in interface org.cloudburstmc.api.inventory.InventorygetHolder in class BaseInventorypublic CloudItemStack getItem(int index)
getItem in interface org.cloudburstmc.api.inventory.InventorygetItem in class BaseInventorypublic boolean setItem(int index,
org.cloudburstmc.api.item.ItemStack item,
boolean send)
setItem in interface org.cloudburstmc.api.inventory.InventorysetItem in class BaseInventorypublic boolean clear(int index)
clear in interface org.cloudburstmc.api.inventory.Inventorypublic Map<Integer,org.cloudburstmc.api.item.ItemStack> getContents()
getContents in interface org.cloudburstmc.api.inventory.InventorygetContents in class BaseInventorypublic void setContents(Map<Integer,org.cloudburstmc.api.item.ItemStack> items)
setContents in interface org.cloudburstmc.api.inventory.InventorysetContents in class BaseInventorypublic void onOpen(org.cloudburstmc.api.player.Player who)
onOpen in interface org.cloudburstmc.api.inventory.InventoryonOpen in class CloudContainerpublic void onClose(org.cloudburstmc.api.player.Player who)
onClose in interface org.cloudburstmc.api.inventory.InventoryonClose in class CloudContainerpublic CloudChestInventory getLeftSide()
public CloudChestInventory getRightSide()
public void sendSlot(org.cloudburstmc.api.inventory.Inventory inv,
int index,
org.cloudburstmc.api.player.Player... players)
Copyright © 2021. All rights reserved.