Package me.bimmr.bimmcore.gui.inventory
Class ClickEvent
- java.lang.Object
-
- me.bimmr.bimmcore.gui.inventory.ClickEvent
-
public abstract class ClickEvent extends java.lang.Object
The ClickEvent that gets called when an inventory item gets clicked
-
-
Constructor Summary
Constructors Constructor Description ClickEvent()
-
Method Summary
Modifier and Type Method Description abstract void
click()
Abstract Clickvoid
doNothing()
java.lang.String
getClickedName()
org.bukkit.event.inventory.InventoryClickEvent
getEvent()
Gets the InventoryClickEvent involved in the GUI message.org.bukkit.inventory.ItemStack
getItem()
int
getPage()
org.bukkit.entity.Player
getPlayer()
int
getPosition()
void
setClose(boolean close)
void
setDestroy(boolean close)
-
-
-
Method Detail
-
setClose
public void setClose(boolean close)
-
setDestroy
public void setDestroy(boolean close)
-
getPlayer
public org.bukkit.entity.Player getPlayer()
- Returns:
- Get Player who clicked
-
getPosition
public int getPosition()
- Returns:
- Get Position clicked
-
getItem
public org.bukkit.inventory.ItemStack getItem()
- Returns:
- get ItemStack clicked
-
getEvent
public org.bukkit.event.inventory.InventoryClickEvent getEvent()
Gets the InventoryClickEvent involved in the GUI message.- Returns:
- the event
-
getClickedName
public java.lang.String getClickedName()
- Returns:
- Get the item clicked's name
-
click
public abstract void click()
Abstract Click
-
getPage
public int getPage()
- Returns:
- Get the page clicked
-
doNothing
public void doNothing()
-
-