Class CloudCraftingGrid

java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudCraftingGrid
All Implemented Interfaces:
org.cloudburstmc.api.inventory.CraftingGrid, org.cloudburstmc.api.inventory.Inventory

public class CloudCraftingGrid extends BaseInventory implements org.cloudburstmc.api.inventory.CraftingGrid
  • 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
  • Constructor Details

    • CloudCraftingGrid

      public CloudCraftingGrid(CloudPlayer holder)
  • Method Details

    • getHolder

      public CloudPlayer getHolder()
      Specified by:
      getHolder in interface org.cloudburstmc.api.inventory.CraftingGrid
      Specified by:
      getHolder in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      getHolder in class BaseInventory
    • getCraftingGridType

      public org.cloudburstmc.api.inventory.CraftingGrid.Type getCraftingGridType()
      Specified by:
      getCraftingGridType in interface org.cloudburstmc.api.inventory.CraftingGrid
    • setCraftingGridType

      public void setCraftingGridType(org.cloudburstmc.api.inventory.CraftingGrid.Type type)
    • getCraftingResult

      public org.cloudburstmc.api.item.ItemStack getCraftingResult()
      Specified by:
      getCraftingResult in interface org.cloudburstmc.api.inventory.CraftingGrid
    • setItem

      public boolean setItem(int index, org.cloudburstmc.api.item.ItemStack item, boolean send)
      Specified by:
      setItem in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      setItem in class BaseInventory
    • decrementCount

      public void decrementCount(int slot)
      Specified by:
      decrementCount in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      decrementCount in class BaseInventory
    • incrementCount

      public void incrementCount(int slot)
      Specified by:
      incrementCount in interface org.cloudburstmc.api.inventory.Inventory
      Overrides:
      incrementCount in class BaseInventory
    • resetCraftingGrid

      public void resetCraftingGrid()
      Specified by:
      resetCraftingGrid in interface org.cloudburstmc.api.inventory.CraftingGrid