Class BInventory.ClickEvent
java.lang.Object
com.bencodez.advancedcore.api.inventory.BInventory.ClickEvent
- Enclosing class:
BInventory
The Class ClickEvent.
-
Constructor Summary
ConstructorsConstructorDescriptionClickEvent(org.bukkit.event.inventory.InventoryClickEvent event, BInventoryButton b) Instantiates a new click event. -
Method Summary
Modifier and TypeMethodDescriptionvoidClose the inventory for the player.org.bukkit.inventory.ItemStackGets the current item.Gets the meta.Gets the meta.org.bukkit.entity.PlayerGets the who clicked.voidRun a task synchronously.
-
Constructor Details
-
ClickEvent
Instantiates a new click event.- Parameters:
event- the inventory click eventb- 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
Gets the meta.- Parameters:
player- the playerstr- the str- Returns:
- the meta
-
getMeta
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
Run a task synchronously.- Parameters:
run- the runnable to execute
-