Enum Class ClickType
- All Implemented Interfaces:
Serializable, Comparable<ClickType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCtrl+Q drops the whole stack.Double click collects matching items to the cursor.Added a slot to an ongoing click-drag operation.Finished a click-drag operation.Started a click-drag ("paint") operation.Q drops one item.Plain left click on a slot.Left click outside the window (would drop the cursor stack).Middle click (creative clone).Hotbar number key (1-9); seeClickContext.hotbarKey().F key swaps with the offhand.Plain right click on a slot.Right click outside the window (would drop one from the cursor stack).Shift + left click.Shift + right click.Anything this library does not recognize. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDrag()True for the three drag phases.booleanisLeft()booleanTrue when the click happened outside the window bounds.booleanisRight()booleanisShift()True forSHIFT_LEFTandSHIFT_RIGHT.static ClickTypeReturns the enum constant of this class with the specified name.static ClickType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
Plain left click on a slot. -
RIGHT
Plain right click on a slot. -
MIDDLE
Middle click (creative clone). -
SHIFT_LEFT
Shift + left click. -
SHIFT_RIGHT
Shift + right click. -
NUMBER_KEY
Hotbar number key (1-9); seeClickContext.hotbarKey(). -
OFFHAND_SWAP
F key swaps with the offhand. -
DROP
Q drops one item. -
CTRL_DROP
Ctrl+Q drops the whole stack. -
LEFT_OUTSIDE
Left click outside the window (would drop the cursor stack). -
RIGHT_OUTSIDE
Right click outside the window (would drop one from the cursor stack). -
DOUBLE_CLICK
Double click collects matching items to the cursor. -
DRAG_START
Started a click-drag ("paint") operation. -
DRAG_ADD
Added a slot to an ongoing click-drag operation. -
DRAG_END
Finished a click-drag operation. -
UNKNOWN
Anything this library does not recognize.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isShift
public boolean isShift()True forSHIFT_LEFTandSHIFT_RIGHT. -
isLeft
public boolean isLeft() -
isRight
public boolean isRight() -
isDrag
public boolean isDrag()True for the three drag phases. -
isOutside
public boolean isOutside()True when the click happened outside the window bounds.
-