Class SpigotMenu

java.lang.Object
com.guflimc.brick.gui.api.menu.Menu<SpigotMenuItem>
com.guflimc.brick.gui.spigot.menu.SpigotMenu
All Implemented Interfaces:
ISpigotMenu

public class SpigotMenu extends Menu<SpigotMenuItem> implements ISpigotMenu
  • Field Details

    • inventory

      public final org.bukkit.inventory.Inventory inventory
  • Constructor Details

  • Method Details

    • soundWrapper

      public static Consumer<org.bukkit.event.inventory.InventoryClickEvent> soundWrapper(Function<org.bukkit.event.inventory.InventoryClickEvent,Boolean> func)
    • removeItem

      public void removeItem(int index)
      Specified by:
      removeItem in interface ISpigotMenu
      Overrides:
      removeItem in class Menu<SpigotMenuItem>
    • setItem

      public void setItem(int index, SpigotMenuItem item)
      Overrides:
      setItem in class Menu<SpigotMenuItem>
    • setItem

      public void setItem(int index, org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setItem in interface ISpigotMenu
    • setItem

      public void setItem(int index, org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.event.inventory.InventoryClickEvent> onClick)
      Specified by:
      setItem in interface ISpigotMenu
    • setItem

      public void setItem(int index, org.bukkit.inventory.ItemStack itemStack, Function<org.bukkit.event.inventory.InventoryClickEvent,Boolean> onClick)
      Specified by:
      setItem in interface ISpigotMenu
    • items

      public org.bukkit.inventory.ItemStack[] items()
      Specified by:
      items in interface ISpigotMenu
    • open

      public void open(org.bukkit.entity.HumanEntity entity)
      Specified by:
      open in interface ISpigotMenu
    • addOpenListener

      public void addOpenListener(Consumer<org.bukkit.entity.HumanEntity> listener)
      Specified by:
      addOpenListener in interface ISpigotMenu
    • addCloseListener

      public void addCloseListener(Consumer<org.bukkit.entity.HumanEntity> listener)
      Specified by:
      addCloseListener in interface ISpigotMenu
    • addClickListener

      public void addClickListener(Consumer<org.bukkit.event.inventory.InventoryClickEvent> listener)
      Specified by:
      addClickListener in interface ISpigotMenu
    • dispatchClick

      public void dispatchClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • dispatchClose

      public void dispatchClose(org.bukkit.entity.HumanEntity entity)
    • dispatchOpen

      public void dispatchOpen(org.bukkit.entity.HumanEntity entity)