Class CloudShulkerBoxInventory
java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudContainer
org.cloudburstmc.server.inventory.CloudShulkerBoxInventory
- All Implemented Interfaces:
org.cloudburstmc.api.inventory.ContainerInventory,org.cloudburstmc.api.inventory.Inventory,org.cloudburstmc.api.inventory.ShulkerBoxInventory
public class CloudShulkerBoxInventory
extends CloudContainer
implements org.cloudburstmc.api.inventory.ShulkerBoxInventory
Created by PetteriM1
-
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 TypeMethodDescriptionbooleancanAddItem(org.cloudburstmc.api.item.ItemStack item)voidonClose(org.cloudburstmc.api.player.Player who)voidonOpen(org.cloudburstmc.api.player.Player who)voidsendSlot(int index, org.cloudburstmc.api.player.Player... players)Methods inherited from class org.cloudburstmc.server.inventory.CloudContainer
calculateRedstone, sendBlockEventPacketMethods inherited from class org.cloudburstmc.server.inventory.BaseInventory
addItem, addItemToFirstEmptySlot, all, 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, 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
-
Constructor Details
-
CloudShulkerBoxInventory
-
-
Method Details
-
getHolder
- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.Inventory- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.ShulkerBoxInventory- 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
-
canAddItem
public boolean canAddItem(org.cloudburstmc.api.item.ItemStack item)- Specified by:
canAddItemin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
canAddItemin classBaseInventory
-
sendSlot
public void sendSlot(int index, org.cloudburstmc.api.player.Player... players)- Specified by:
sendSlotin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
sendSlotin classBaseInventory
-