Interface CraftingGridInventory

  • All Superinterfaces:
    Inventory, ValueContainer

    public interface CraftingGridInventory
    extends Inventory
    A CraftingGridInventory represents the inventory of something that can craft items. This is excluding the Result slot.
    • Method Detail

      • recipe

        Optional<CraftingRecipe> recipe​(ServerWorld world)
        Retrieves the recipe formed by this CraftingGridInventory, if any.
        world - The world where the item would be crafted in
        The recipe or Optional.empty() if no recipe is formed
      • asGrid

        GridInventory asGrid()
        Returns this inventory as a grid.
        the grid inventory