Class SpigotHotbarItem

java.lang.Object
com.guflimc.brick.gui.spigot.hotbar.SpigotHotbarItem
All Implemented Interfaces:
MenuItem

public class SpigotHotbarItem extends Object implements MenuItem
  • Constructor Details

    • SpigotHotbarItem

      public SpigotHotbarItem(org.bukkit.inventory.ItemStack handle, Consumer<org.bukkit.event.player.PlayerInteractEvent> interact, Consumer<org.bukkit.event.player.PlayerInteractEntityEvent> entityInteract, Consumer<org.bukkit.event.inventory.InventoryClickEvent> click)
    • SpigotHotbarItem

      public SpigotHotbarItem(org.bukkit.inventory.ItemStack handle, Consumer<org.bukkit.entity.Player> consumer)
    • SpigotHotbarItem

      public SpigotHotbarItem(org.bukkit.inventory.ItemStack handle)
  • Method Details

    • handle

      public org.bukkit.inventory.ItemStack handle()
      Specified by:
      handle in interface MenuItem
    • callback

      public Consumer<org.bukkit.event.player.PlayerInteractEvent> callback()
      Specified by:
      callback in interface MenuItem
    • entityInteract

      public Consumer<org.bukkit.event.player.PlayerInteractEntityEvent> entityInteract()
    • click

      public Consumer<org.bukkit.event.inventory.InventoryClickEvent> click()