Class CloudChestInventory
java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudContainer
org.cloudburstmc.server.inventory.CloudChestInventory
- All Implemented Interfaces:
org.cloudburstmc.api.inventory.ChestInventory,org.cloudburstmc.api.inventory.ContainerInventory,org.cloudburstmc.api.inventory.Inventory
public class CloudChestInventory
extends CloudContainer
implements org.cloudburstmc.api.inventory.ChestInventory
author: MagicDroidX
Nukkit Project
-
Field Summary
FieldsFields 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 TypeMethodDescriptionbooleanisDouble()voidonClose(org.cloudburstmc.api.player.Player who)voidonOpen(org.cloudburstmc.api.player.Player who)voidsendSlot(int index, org.cloudburstmc.api.player.Player... players)voidsetDoubleInventory(CloudDoubleChestInventory doubleInventory)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, getContents, getEmptySlotsCount, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, setContents, setItem, 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, clear, clearAll, close, contains, decrementCount, first, first, firstEmpty, firstFit, firstFit, firstNonEmpty, getContents, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, setContents, setItem, setItem, setMaxStackSize
-
Field Details
-
doubleInventory
-
-
Constructor Details
-
CloudChestInventory
public CloudChestInventory(org.cloudburstmc.api.blockentity.Chest chest)
-
-
Method Details
-
getHolder
- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.ChestInventory- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getHolderin 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
-
setDoubleInventory
-
getDoubleInventory
-
sendSlot
public void sendSlot(int index, org.cloudburstmc.api.player.Player... players)- Specified by:
sendSlotin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
sendSlotin classBaseInventory
-
isDouble
public boolean isDouble()- Specified by:
isDoublein interfaceorg.cloudburstmc.api.inventory.ChestInventory
-