Class Structure

java.lang.Object
de.studiocode.invui.gui.structure.Structure
All Implemented Interfaces:
Cloneable

public class Structure extends Object implements Cloneable
Provides an easy way to design GUIs. Inspired by Bukkit's ShapedRecipe, Structures will let you design a GUI in a similar way.
  • Constructor Details

    • Structure

      public Structure(String... structureData)
    • Structure

      public Structure(int width, int height, String structureData)
  • Method Details

    • addGlobalIngredient

      public static void addGlobalIngredient(char key, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
    • addGlobalIngredient

      public static void addGlobalIngredient(char key, @NotNull @NotNull ItemProvider itemProvider)
    • addGlobalIngredient

      public static void addGlobalIngredient(char key, @NotNull @NotNull Item item)
    • addGlobalIngredient

      public static void addGlobalIngredient(char key, @NotNull @NotNull Supplier<? extends Item> itemSupplier)
    • addGlobalIngredient

      public static void addGlobalIngredient(char key, @NotNull @NotNull SlotElement element)
    • addGlobalIngredient

      public static void addGlobalIngredient(char key, @NotNull @NotNull Marker marker)
    • addGlobalIngredientElementSupplier

      public static void addGlobalIngredientElementSupplier(char key, @NotNull @NotNull Supplier<? extends SlotElement> elementSupplier)
    • addIngredient

      public Structure addIngredient(char key, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
    • addIngredient

      public Structure addIngredient(char key, @NotNull @NotNull ItemProvider itemProvider)
    • addIngredient

      public Structure addIngredient(char key, @NotNull @NotNull Item item)
    • addIngredient

      public Structure addIngredient(char key, @NotNull @NotNull VirtualInventory inventory)
    • addIngredient

      public Structure addIngredient(char key, @NotNull @NotNull VirtualInventory inventory, @Nullable @Nullable ItemProvider background)
    • addIngredient

      public Structure addIngredient(char key, @NotNull @NotNull SlotElement element)
    • addIngredient

      public Structure addIngredient(char key, @NotNull @NotNull Marker marker)
    • addIngredient

      public Structure addIngredient(char key, @NotNull @NotNull Supplier<? extends Item> itemSupplier)
    • addIngredientElementSupplier

      public Structure addIngredientElementSupplier(char key, @NotNull @NotNull Supplier<? extends SlotElement> elementSupplier)
    • getIngredientList

      public IngredientList getIngredientList()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • clone

      public Structure clone()
      Overrides:
      clone in class Object