public class NukkitCraftingContainer extends NukkitContainer implements CraftingContainer
| Constructor and Description |
|---|
NukkitCraftingContainer(int height,
int width) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getItem(int x,
int y) |
int |
getMaxStackSize() |
void |
onClose(PlayerSession session) |
void |
onOpen(PlayerSession session) |
protected void |
setContainerSize(int size) |
addContentListener, addItem, addItem, addItemToFirstEmptySlot, addItemToFirstEmptySlot, addSizeListener, clearItem, clearSlot, clearSlots, close, decreaseSlot, dropContents, getContainerType, getContents, getCustomName, getEmptySlotsCount, getEmptySlotsCount, getFirstEmptySlot, getSize, getSlot, hasCustomName, hasRoomForItem, open, removeContentListener, removeSizeListener, setCustomName, setItem, setSlotclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddItem, addItemToFirstEmptySlot, clearSlot, clearSlots, decreaseSlot, dropContents, getContents, getCustomName, getEmptySlotsCount, getFirstEmptySlot, getSize, getSlot, hasCustomName, hasRoomForItem, setCustomName, setSlotpublic ItemStack getItem(int x, int y)
getItem in interface CraftingContainerpublic int getMaxStackSize()
getMaxStackSize in class NukkitContainerpublic void onOpen(PlayerSession session)
onOpen in class NukkitContainerpublic void onClose(PlayerSession session)
onClose in class NukkitContainerprotected final void setContainerSize(int size)
setContainerSize in class NukkitContainerCopyright © 2017–2020 NukkitX. All rights reserved.