Class CloudCraftingGrid
java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudCraftingGrid
- All Implemented Interfaces:
org.cloudburstmc.api.crafting.CraftingGrid,org.cloudburstmc.api.inventory.Inventory
public class CloudCraftingGrid
extends BaseInventory
implements org.cloudburstmc.api.crafting.CraftingGrid
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cloudburstmc.api.crafting.CraftingGrid
org.cloudburstmc.api.crafting.CraftingGrid.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intstatic intFields 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 TypeMethodDescriptionvoiddecrementCount(int slot)org.cloudburstmc.api.crafting.CraftingGrid.Type@NonNull CloudItemStackgetItem(int index)intgetSize()voidincrementCount(int slot)voidvoidsendSlot(int index, org.cloudburstmc.api.player.Player... players)voidsetCraftingGridType(org.cloudburstmc.api.crafting.CraftingGrid.Type type)booleansetItem(int index, org.cloudburstmc.api.item.ItemStack item, boolean send)Methods inherited from class org.cloudburstmc.server.inventory.BaseInventory
addItem, addItemToFirstEmptySlot, all, canAddItem, clear, clearAll, close, contains, first, firstEmpty, firstFit, firstNonEmpty, getContents, getEmptySlotsCount, getFreeSpace, getMaxStackSize, getName, getTitle, getType, getViewers, isEmpty, isFull, onClose, onOpen, onSlotChange, open, remove, removeItem, saveInventory, sendContents, setContents, 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.crafting.CraftingGrid
getCraftingGridSizeMethods inherited from interface org.cloudburstmc.api.inventory.Inventory
addItem, all, canAddItem, clear, clear, clearAll, close, contains, first, first, firstEmpty, firstFit, firstFit, firstNonEmpty, getContents, getFreeSpace, getMaxStackSize, getName, getTitle, getType, getViewers, isEmpty, isFull, onClose, onOpen, onSlotChange, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, setContents, setItem, setMaxStackSize
-
Field Details
-
CRAFTING_GRID_SMALL_OFFSET
public static final int CRAFTING_GRID_SMALL_OFFSET- See Also:
- Constant Field Values
-
CRAFTING_GRID_LARGE_OFFSET
public static final int CRAFTING_GRID_LARGE_OFFSET- See Also:
- Constant Field Values
-
CRAFTING_RESULT_OFFSET
public static final int CRAFTING_RESULT_OFFSET- See Also:
- Constant Field Values
-
CRAFTING_RESULT_SLOT
public static final int CRAFTING_RESULT_SLOT- See Also:
- Constant Field Values
-
-
Constructor Details
-
CloudCraftingGrid
-
-
Method Details
-
getHolder
- Specified by:
getHolderin interfaceorg.cloudburstmc.api.crafting.CraftingGrid- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getHolderin classBaseInventory
-
getCraftingGridType
public org.cloudburstmc.api.crafting.CraftingGrid.Type getCraftingGridType()- Specified by:
getCraftingGridTypein interfaceorg.cloudburstmc.api.crafting.CraftingGrid
-
setCraftingGridType
public void setCraftingGridType(org.cloudburstmc.api.crafting.CraftingGrid.Type type) -
getCraftingResult
- Specified by:
getCraftingResultin interfaceorg.cloudburstmc.api.crafting.CraftingGrid
-
setItem
public boolean setItem(int index, org.cloudburstmc.api.item.ItemStack item, boolean send)- Specified by:
setItemin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
setItemin classBaseInventory
-
getItem
- Specified by:
getItemin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getItemin classBaseInventory
-
decrementCount
public void decrementCount(int slot)- Specified by:
decrementCountin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
decrementCountin classBaseInventory
-
incrementCount
public void incrementCount(int slot)- Specified by:
incrementCountin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
incrementCountin classBaseInventory
-
resetCraftingGrid
public void resetCraftingGrid()- Specified by:
resetCraftingGridin interfaceorg.cloudburstmc.api.crafting.CraftingGrid
-
getSize
public int getSize()- Specified by:
getSizein interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getSizein classBaseInventory
-
sendSlot
public void sendSlot(int index, org.cloudburstmc.api.player.Player... players)- Specified by:
sendSlotin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
sendSlotin classBaseInventory
-