Class ClickTypes
- java.lang.Object
-
- org.spongepowered.api.item.inventory.menu.ClickTypes
-
public final class ClickTypes extends java.lang.Object
An enumeration of the click types inContainer
s.
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Registry<ClickType<?>>
registry()
-
-
-
Field Detail
-
CLICK_LEFT
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> CLICK_LEFT
Left click on a slot.
-
CLICK_LEFT_OUTSIDE
public static final DefaultedRegistryReference<ClickType<ClickHandler>> CLICK_LEFT_OUTSIDE
Left click outside of inventory.
-
CLICK_MIDDLE
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> CLICK_MIDDLE
Used to clone the clicked item onto the cursor in creative.
-
CLICK_RIGHT
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> CLICK_RIGHT
Right click on a slot.
-
CLICK_RIGHT_OUTSIDE
public static final DefaultedRegistryReference<ClickType<ClickHandler>> CLICK_RIGHT_OUTSIDE
Right click outside of inventory.
-
DOUBLE_CLICK
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> DOUBLE_CLICK
Collects as much items of the same type as possible to the cursor.
-
DRAG_END
public static final DefaultedRegistryReference<ClickType<ClickHandler>> DRAG_END
Stopping drag motion. This distributes items on the cursor in all previously added slots.
-
DRAG_LEFT_ADD
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> DRAG_LEFT_ADD
Left-click drag motion.
-
DRAG_MIDDLE_ADD
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> DRAG_MIDDLE_ADD
Middle-click drag motion.
-
DRAG_RIGHT_ADD
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> DRAG_RIGHT_ADD
Right-click drag motion.
-
DRAG_START
public static final DefaultedRegistryReference<ClickType<ClickHandler>> DRAG_START
Starting drag motion.
-
KEY_SWAP
public static final DefaultedRegistryReference<ClickType<KeySwapHandler>> KEY_SWAP
This click-type is used when using a number key-press to swap the corresponding hotbar slot with the slot hovered over.The primary slot is the hovered slot.
The secondary slot is the hotbar slot.
-
KEY_THROW_ALL
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> KEY_THROW_ALL
Throwing all items in the hovered slot using the throw item key.
-
KEY_THROW_ONE
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> KEY_THROW_ONE
Throwing one item in the hovered slot using the throw item key.
-
SHIFT_CLICK_LEFT
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> SHIFT_CLICK_LEFT
Shift-Left click on a slot.
-
SHIFT_CLICK_RIGHT
public static final DefaultedRegistryReference<ClickType<SlotClickHandler>> SHIFT_CLICK_RIGHT
Shift-Right click on a slot.
-
-