Class StorageGui

java.lang.Object
dev.triumphteam.gui.guis.BaseGui
dev.triumphteam.gui.guis.StorageGui
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder

public class StorageGui extends BaseGui
GUI that does not clear its items once it's closed
  • Constructor Details

  • Method Details

    • addItem

      @NotNull public @NotNull Map<@NotNull Integer,@NotNull org.bukkit.inventory.ItemStack> addItem(@NotNull @NotNull org.bukkit.inventory.ItemStack... items)
      Adds ItemStack to the inventory straight, not the GUI
      Parameters:
      items - Varargs with ItemStacks
      Returns:
      An immutable Map with the left overs
    • addItem

      public Map<@NotNull Integer,@NotNull org.bukkit.inventory.ItemStack> addItem(@NotNull @NotNull List<org.bukkit.inventory.ItemStack> items)
      Adds ItemStack to the inventory straight, not the GUI
      Parameters:
      items - Varargs with ItemStacks
      Returns:
      An immutable Map with the left overs
    • open

      public void open(@NotNull @NotNull org.bukkit.entity.HumanEntity player)
      Overridden BaseGui.open(HumanEntity) to prevent
      Overrides:
      open in class BaseGui
      Parameters:
      player - The HumanEntity to open the GUI to