public class CloudCraftingGrid extends BaseInventory implements org.cloudburstmc.api.inventory.CraftingGrid
| Modifier and Type | Field and Description |
|---|---|
static int |
CRAFTING_GRID_LARGE_OFFSET |
static int |
CRAFTING_GRID_SMALL_OFFSET |
static int |
CRAFTING_RESULT_OFFSET |
holder, maxStackSize, name, size, slots, title, type, viewers| Constructor and Description |
|---|
CloudCraftingGrid(CloudPlayer holder) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrementCount(int slot) |
org.cloudburstmc.api.inventory.CraftingGrid.Type |
getCraftingGridType() |
org.cloudburstmc.api.item.ItemStack |
getCraftingResult() |
CloudPlayer |
getHolder() |
void |
incrementCount(int slot) |
void |
resetCraftingGrid() |
void |
setCraftingGridType(org.cloudburstmc.api.inventory.CraftingGrid.Type type) |
boolean |
setItem(int index,
org.cloudburstmc.api.item.ItemStack item,
boolean send) |
addItem, addItemToFirstEmptySlot, all, canAddItem, clear, clearAll, close, contains, first, firstEmpty, firstFit, firstNonEmpty, getContents, getEmptySlotsCount, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, isEmpty, isFull, onClose, onOpen, onSlotChange, open, remove, removeItem, sendContents, sendSlot, setContents, setMaxStackSize, setSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddItem, all, canAddItem, clear, clear, clearAll, close, contains, first, first, firstEmpty, firstFit, firstFit, firstNonEmpty, getContents, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, isEmpty, isFull, onClose, onOpen, onSlotChange, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setMaxStackSizepublic static final int CRAFTING_GRID_SMALL_OFFSET
public static final int CRAFTING_GRID_LARGE_OFFSET
public static final int CRAFTING_RESULT_OFFSET
public CloudCraftingGrid(CloudPlayer holder)
public CloudPlayer getHolder()
getHolder in interface org.cloudburstmc.api.inventory.CraftingGridgetHolder in interface org.cloudburstmc.api.inventory.InventorygetHolder in class BaseInventorypublic org.cloudburstmc.api.inventory.CraftingGrid.Type getCraftingGridType()
getCraftingGridType in interface org.cloudburstmc.api.inventory.CraftingGridpublic void setCraftingGridType(org.cloudburstmc.api.inventory.CraftingGrid.Type type)
public org.cloudburstmc.api.item.ItemStack getCraftingResult()
getCraftingResult in interface org.cloudburstmc.api.inventory.CraftingGridpublic boolean setItem(int index,
org.cloudburstmc.api.item.ItemStack item,
boolean send)
setItem in interface org.cloudburstmc.api.inventory.InventorysetItem in class BaseInventorypublic void decrementCount(int slot)
decrementCount in interface org.cloudburstmc.api.inventory.InventorydecrementCount in class BaseInventorypublic void incrementCount(int slot)
incrementCount in interface org.cloudburstmc.api.inventory.InventoryincrementCount in class BaseInventorypublic void resetCraftingGrid()
resetCraftingGrid in interface org.cloudburstmc.api.inventory.CraftingGridCopyright © 2021. All rights reserved.