Class BInventory.ClickEvent

java.lang.Object
com.bencodez.advancedcore.api.inventory.BInventory.ClickEvent
Enclosing class:
BInventory

public class BInventory.ClickEvent extends Object
The Class ClickEvent.
  • Constructor Details

    • ClickEvent

      public ClickEvent(org.bukkit.event.inventory.InventoryClickEvent event, BInventoryButton b)
      Instantiates a new click event.
      Parameters:
      event - the inventory click event
      b - the button
  • Method Details

    • closeInventory

      public void closeInventory()
      Close the inventory for the player.
    • getCurrentItem

      public org.bukkit.inventory.ItemStack getCurrentItem()
      Gets the current item.
      Returns:
      the current item
    • getMeta

      public Object getMeta(org.bukkit.entity.Player player, String str)
      Gets the meta.
      Parameters:
      player - the player
      str - the str
      Returns:
      the meta
    • getMeta

      public Object getMeta(String str)
      Gets the meta.
      Parameters:
      str - the str
      Returns:
      the meta
    • getWhoClicked

      public org.bukkit.entity.Player getWhoClicked()
      Gets the who clicked.
      Returns:
      the who clicked
    • runSync

      public void runSync(Runnable run)
      Run a task synchronously.
      Parameters:
      run - the runnable to execute