Class ClickEventAdapter
java.lang.Object
me.remigio07.chatplugin.api.server.util.adapter.inventory.ClickEventAdapter
Environment indipendent (Bukkit and Sponge) click event adapter.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEnvironment indipendent (Bukkit and Sponge) click action adapter.static classEnvironment indipendent (Bukkit and Sponge) click type adapter. - 
Constructor Summary
ConstructorsConstructorDescriptionClickEventAdapter(ClickEventAdapter.ClickTypeAdapter clickType, ClickEventAdapter.ClickActionAdapter clickAction, ItemStackAdapter cursor, int slot, int numberKey) Constructs a new click event adapter. - 
Method Summary
Modifier and TypeMethodDescriptionGets the click's action.Gets the click's type.Gets the item on the cursor.intGets the clicked number key.intgetSlot()Gets the clicked slot. 
- 
Constructor Details
- 
ClickEventAdapter
public ClickEventAdapter(ClickEventAdapter.ClickTypeAdapter clickType, ClickEventAdapter.ClickActionAdapter clickAction, ItemStackAdapter cursor, int slot, int numberKey) Constructs a new click event adapter.- Parameters:
 clickType- Click's typeclickAction- Click's actioncursor- Item on the cursorslot- Clicked slot, -1 if invalidnumberKey- Clicked number key [0 - 8], -1 if none
 
 - 
 - 
Method Details
- 
getClickType
Gets the click's type.- Returns:
 - Click's type
 
 - 
getClickAction
Gets the click's action.- Returns:
 - Click's action
 
 - 
getCursor
Gets the item on the cursor.Will return
nullif the cursor is not holding any items.- Returns:
 - Item on the cursor
 
 - 
getSlot
public int getSlot()Gets the clicked slot.- Returns:
 - Clicked slot, -1 if invalid
 
 - 
getNumberKey
public int getNumberKey()Gets the clicked number key.- Returns:
 - Clicked number key [0 - 8], -1 if none
 
 
 -