Class CloudDoubleChestInventory
java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudContainer
org.cloudburstmc.server.inventory.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
-
Field Summary
Fields inherited from class org.cloudburstmc.server.inventory.BaseInventory
holder, maxStackSize, name, size, slots, title, type, viewersFields inherited from interface org.cloudburstmc.api.inventory.Inventory
MAX_STACK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclear(int index)org.cloudburstmc.api.blockentity.Chestorg.cloudburstmc.api.inventory.InventorygetItem(int index)voidonClose(org.cloudburstmc.api.player.Player who)voidonOpen(org.cloudburstmc.api.player.Player who)voidsendSlot(org.cloudburstmc.api.inventory.Inventory inv, int index, org.cloudburstmc.api.player.Player... players)voidsetContents(Map<Integer,org.cloudburstmc.api.item.ItemStack> items)booleansetItem(int index, org.cloudburstmc.api.item.ItemStack item, boolean send)Methods inherited from class org.cloudburstmc.server.inventory.CloudContainer
calculateRedstone, sendBlockEventPacketMethods inherited from class org.cloudburstmc.server.inventory.BaseInventory
addItem, 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, saveInventory, sendContents, sendSlot, setMaxStackSize, setSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.inventory.Inventory
addItem, 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, setMaxStackSize
-
Constructor Details
-
CloudDoubleChestInventory
-
-
Method Details
-
getInventory
public org.cloudburstmc.api.inventory.Inventory getInventory()- Specified by:
getInventoryin interfaceorg.cloudburstmc.api.inventory.InventoryHolder
-
getHolder
public org.cloudburstmc.api.blockentity.Chest getHolder()- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getHolderin classBaseInventory
-
getItem
- Specified by:
getItemin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getItemin classBaseInventory
-
setItem
public boolean setItem(int index, org.cloudburstmc.api.item.ItemStack item, boolean send)- Specified by:
setItemin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
setItemin classBaseInventory
-
clear
public boolean clear(int index)- Specified by:
clearin interfaceorg.cloudburstmc.api.inventory.Inventory
-
getContents
- Specified by:
getContentsin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getContentsin classBaseInventory
-
setContents
- Specified by:
setContentsin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
setContentsin classBaseInventory
-
onOpen
public void onOpen(org.cloudburstmc.api.player.Player who)- Specified by:
onOpenin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onOpenin classCloudContainer
-
onClose
public void onClose(org.cloudburstmc.api.player.Player who)- Specified by:
onClosein interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onClosein classCloudContainer
-
getLeftSide
-
getRightSide
-
sendSlot
public void sendSlot(org.cloudburstmc.api.inventory.Inventory inv, int index, org.cloudburstmc.api.player.Player... players)
-