Package tsp.headdb.inventory
Class Button
java.lang.Object
tsp.headdb.inventory.Button
A button
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Button
public Button(org.bukkit.inventory.ItemStack itemStack)- Parameters:
itemStack
- The Item
-
Button
public Button(org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.event.inventory.InventoryClickEvent> action)- Parameters:
itemStack
- The Itemaction
- The action
-
-
Method Details
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()- Returns:
- The icon
-
setAction
- Parameters:
action
- The new action
-
onClick
public void onClick(org.bukkit.event.inventory.InventoryClickEvent event)- Parameters:
event
- The event that triggered it
-
equals
-
hashCode
public int hashCode()
-