Class CloudContainer
java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudContainer
- All Implemented Interfaces:
org.cloudburstmc.api.inventory.ContainerInventory,org.cloudburstmc.api.inventory.Inventory
- Direct Known Subclasses:
CloudBarrelInventory,CloudBrewingInventory,CloudChestInventory,CloudDoubleChestInventory,CloudEnderChestInventory,CloudFurnaceInventory,CloudHopperInventory,CloudShulkerBoxInventory
public abstract class CloudContainer
extends BaseInventory
implements org.cloudburstmc.api.inventory.ContainerInventory
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
ConstructorsConstructorDescriptionCloudContainer(org.cloudburstmc.api.inventory.InventoryHolder holder, org.cloudburstmc.api.inventory.InventoryType type)CloudContainer(org.cloudburstmc.api.inventory.InventoryHolder holder, org.cloudburstmc.api.inventory.InventoryType type, Map<Integer,org.cloudburstmc.api.item.ItemStack> items)CloudContainer(org.cloudburstmc.api.inventory.InventoryHolder holder, org.cloudburstmc.api.inventory.InventoryType type, Map<Integer,org.cloudburstmc.api.item.ItemStack> items, Integer overrideSize)CloudContainer(org.cloudburstmc.api.inventory.InventoryHolder holder, org.cloudburstmc.api.inventory.InventoryType type, Map<Integer,org.cloudburstmc.api.item.ItemStack> items, Integer overrideSize, String overrideTitle) -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateRedstone(org.cloudburstmc.api.inventory.Inventory inv)voidonClose(org.cloudburstmc.api.player.Player who)voidonOpen(org.cloudburstmc.api.player.Player who)static voidsendBlockEventPacket(org.cloudburstmc.api.blockentity.BlockEntity block, int eventData)Methods inherited from class org.cloudburstmc.server.inventory.BaseInventory
addItem, addItemToFirstEmptySlot, all, canAddItem, clear, clearAll, close, contains, decrementCount, first, firstEmpty, firstFit, firstNonEmpty, getContents, getEmptySlotsCount, getFreeSpace, getHolder, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, sendSlot, 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, getHolder, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setItem, setMaxStackSize
-
Constructor Details
-
CloudContainer
public CloudContainer(org.cloudburstmc.api.inventory.InventoryHolder holder, org.cloudburstmc.api.inventory.InventoryType type) -
CloudContainer
-
CloudContainer
-
CloudContainer
-
-
Method Details
-
onOpen
public void onOpen(org.cloudburstmc.api.player.Player who)- Specified by:
onOpenin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onOpenin classBaseInventory
-
onClose
public void onClose(org.cloudburstmc.api.player.Player who)- Specified by:
onClosein interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onClosein classBaseInventory
-
calculateRedstone
public static int calculateRedstone(org.cloudburstmc.api.inventory.Inventory inv) -
sendBlockEventPacket
public static void sendBlockEventPacket(org.cloudburstmc.api.blockentity.BlockEntity block, int eventData)
-