Interface MinecraftClickType
- All Known Implementing Classes:
BukkitClickType
public interface MinecraftClickType
The click type of Minecraft
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the hotbar slot (0-8) of the click type if it is number clickgetName()
Get the name of the click typeboolean
Check if the click type is left clickboolean
Check if the click type is number clickboolean
Check if the click type is right clickboolean
Check if the click type is shift click
-
Method Details
-
getName
String getName()Get the name of the click type- Returns:
- the name
-
isLeftClick
boolean isLeftClick()Check if the click type is left click- Returns:
- true if it is
-
isRightClick
boolean isRightClick()Check if the click type is right click- Returns:
- true if it is
-
isShiftClick
boolean isShiftClick()Check if the click type is shift click- Returns:
- true if it is
-
isNumberClick
boolean isNumberClick()Check if the click type is number click- Returns:
- true if it is
-
getHotbarSlot
int getHotbarSlot()Get the hotbar slot (0-8) of the click type if it is number click- Returns:
- the number, -1 if it is not number click or undefined
-