Class SpigotHotbar

java.lang.Object
com.guflimc.brick.gui.api.menu.Menu<SpigotHotbarItem>
com.guflimc.brick.gui.spigot.hotbar.SpigotHotbar
All Implemented Interfaces:
ISpigotHotbar

public class SpigotHotbar extends Menu<SpigotHotbarItem> implements ISpigotHotbar
  • Constructor Details

  • Method Details

    • removeItem

      public void removeItem(int index)
      Overrides:
      removeItem in class Menu<SpigotHotbarItem>
    • setItem

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

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

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

      public void setItem(int index, org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.event.player.PlayerInteractEvent> interact, Consumer<org.bukkit.event.player.PlayerInteractEntityEvent> interactEntity, Consumer<org.bukkit.event.inventory.InventoryClickEvent> click)
      Specified by:
      setItem in interface ISpigotHotbar
    • items

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

      public void open(org.bukkit.entity.Player player)
      Specified by:
      open in interface ISpigotHotbar
    • addInteractListener

      public void addInteractListener(Consumer<org.bukkit.event.player.PlayerInteractEvent> listener)
      Specified by:
      addInteractListener in interface ISpigotHotbar
    • addInteractEntityListener

      public void addInteractEntityListener(Consumer<org.bukkit.event.player.PlayerInteractEntityEvent> listener)
      Specified by:
      addInteractEntityListener in interface ISpigotHotbar
    • addInventoryClickListener

      public void addInventoryClickListener(Consumer<org.bukkit.event.inventory.InventoryClickEvent> listener)
      Specified by:
      addInventoryClickListener in interface ISpigotHotbar
    • dispatchInteract

      public void dispatchInteract(org.bukkit.event.player.PlayerInteractEvent event)
    • dispatchInteractEntity

      public void dispatchInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent event)
    • dispatchInventoryClick

      public void dispatchInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)