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(NukkitPlayerSession session) |
void |
onOpen(NukkitPlayerSession 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(NukkitPlayerSession session)
onOpen in class NukkitContainerpublic void onClose(NukkitPlayerSession session)
onClose in class NukkitContainerprotected final void setContainerSize(int size)
setContainerSize in class NukkitContainerCopyright © 2017–2019 NukkitX. All rights reserved.