Interface MinecraftClickType

All Known Implementing Classes:
BukkitClickType

public interface MinecraftClickType
The click type of Minecraft
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the hotbar slot (0-8) of the click type if it is number click
    Get the name of the click type
    boolean
    Check if the click type is left click
    boolean
    Check if the click type is number click
    boolean
    Check if the click type is right click
    boolean
    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