Enum Class ClickType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ClickType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInvalid/unspecified click type.Drop entire stack from the slot (Ctrl+Q while hovering over slot).Drop one item from the slot (Q key while hovering over slot).Left mouse click on a slot.Middle mouse click (creative mode clone).Right mouse click on a slot.Shift + left click on a slot.Swap slot contents with a hotbar slot (number keys 1-9). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInvalid/unspecified click type.static final intDrop entire stack from the slot (Ctrl+Q while hovering over slot).static final intDrop one item from the slot (Q key while hovering over slot).static final intLeft mouse click on a slot.static final intMiddle mouse click (creative mode clone).static final intRight mouse click on a slot.static final intShift + left click on a slot.static final intSwap slot contents with a hotbar slot (number keys 1-9). -
Method Summary
Modifier and TypeMethodDescriptionstatic ClickTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ClickType> static ClickTypevalueOf(int value) Deprecated.static ClickTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.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
-
CLICK_TYPE_UNSPECIFIED
Invalid/unspecified click type. Will result in an error.
CLICK_TYPE_UNSPECIFIED = 0; -
LEFT_CLICK
Left mouse click on a slot. - Empty cursor + item in slot: Pick up entire stack to cursor - Item on cursor + empty slot: Place entire stack in slot - Item on cursor + same item in slot: Combine stacks (up to max stack size) - Item on cursor + different item in slot: Swap cursor and slot items
LEFT_CLICK = 1; -
RIGHT_CLICK
Right mouse click on a slot. - Empty cursor + item in slot: Pick up half the stack (rounded up) - Item on cursor + empty slot: Place one item from cursor - Item on cursor + same item in slot: Place one item from cursor - Item on cursor + different item in slot: Swap cursor and slot items
RIGHT_CLICK = 2; -
SHIFT_LEFT_CLICK
Shift + left click on a slot. Quick-moves the item stack to the opposite inventory section. - From player inventory to container (chest, furnace, etc.) - From container to player inventory - Between hotbar and main inventory
SHIFT_LEFT_CLICK = 3; -
DROP_ONE
Drop one item from the slot (Q key while hovering over slot). Drops a single item from the stack, leaving the rest.
DROP_ONE = 4; -
DROP_ALL
Drop entire stack from the slot (Ctrl+Q while hovering over slot). Drops all items from the stack at once.
DROP_ALL = 5; -
SWAP_HOTBAR
Swap slot contents with a hotbar slot (number keys 1-9). Requires hotbar_slot field to specify which hotbar slot (0-8). Works regardless of what's in the cursor.
SWAP_HOTBAR = 6; -
MIDDLE_CLICK
Middle mouse click (creative mode clone). In creative mode, clones the item to cursor without affecting the slot. No effect in survival mode.
MIDDLE_CLICK = 7; -
UNRECOGNIZED
-
-
Field Details
-
CLICK_TYPE_UNSPECIFIED_VALUE
public static final int CLICK_TYPE_UNSPECIFIED_VALUEInvalid/unspecified click type. Will result in an error.
CLICK_TYPE_UNSPECIFIED = 0;- See Also:
-
LEFT_CLICK_VALUE
public static final int LEFT_CLICK_VALUELeft mouse click on a slot. - Empty cursor + item in slot: Pick up entire stack to cursor - Item on cursor + empty slot: Place entire stack in slot - Item on cursor + same item in slot: Combine stacks (up to max stack size) - Item on cursor + different item in slot: Swap cursor and slot items
LEFT_CLICK = 1;- See Also:
-
RIGHT_CLICK_VALUE
public static final int RIGHT_CLICK_VALUERight mouse click on a slot. - Empty cursor + item in slot: Pick up half the stack (rounded up) - Item on cursor + empty slot: Place one item from cursor - Item on cursor + same item in slot: Place one item from cursor - Item on cursor + different item in slot: Swap cursor and slot items
RIGHT_CLICK = 2;- See Also:
-
SHIFT_LEFT_CLICK_VALUE
public static final int SHIFT_LEFT_CLICK_VALUEShift + left click on a slot. Quick-moves the item stack to the opposite inventory section. - From player inventory to container (chest, furnace, etc.) - From container to player inventory - Between hotbar and main inventory
SHIFT_LEFT_CLICK = 3;- See Also:
-
DROP_ONE_VALUE
public static final int DROP_ONE_VALUEDrop one item from the slot (Q key while hovering over slot). Drops a single item from the stack, leaving the rest.
DROP_ONE = 4;- See Also:
-
DROP_ALL_VALUE
public static final int DROP_ALL_VALUEDrop entire stack from the slot (Ctrl+Q while hovering over slot). Drops all items from the stack at once.
DROP_ALL = 5;- See Also:
-
SWAP_HOTBAR_VALUE
public static final int SWAP_HOTBAR_VALUESwap slot contents with a hotbar slot (number keys 1-9). Requires hotbar_slot field to specify which hotbar slot (0-8). Works regardless of what's in the cursor.
SWAP_HOTBAR = 6;- See Also:
-
MIDDLE_CLICK_VALUE
public static final int MIDDLE_CLICK_VALUEMiddle mouse click (creative mode clone). In creative mode, clones the item to cursor without affecting the slot. No effect in survival mode.
MIDDLE_CLICK = 7;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
desc- 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
-