Class ClickTypes
java.lang.Object
org.spongepowered.api.item.inventory.menu.ClickTypes
An enumeration of the click types in
Container
s.-
Field Summary
Modifier and TypeFieldDescriptionstatic final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Left click on a slot.static final DefaultedRegistryReference
<ClickType<ClickHandler>> Left click outside of inventory.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Used to clone the clicked item onto the cursor in creative.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Right click on a slot.static final DefaultedRegistryReference
<ClickType<ClickHandler>> Right click outside of inventory.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Collects as much items of the same type as possible to the cursor.static final DefaultedRegistryReference
<ClickType<ClickHandler>> Stopping drag motion.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Left-click drag motion.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Middle-click drag motion.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Right-click drag motion.static final DefaultedRegistryReference
<ClickType<ClickHandler>> Starting drag motion.static final DefaultedRegistryReference
<ClickType<KeySwapHandler>> This click-type is used when using a number key-press to swap the corresponding hotbar slot with the slot hovered over.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Throwing all items in the hovered slot using the throw item key.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Throwing one item in the hovered slot using the throw item key.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Shift-Left click on a slot.static final DefaultedRegistryReference
<ClickType<SlotClickHandler>> Shift-Right click on a slot. -
Method Summary
-
Field Details
-
CLICK_LEFT
Left click on a slot. -
CLICK_LEFT_OUTSIDE
Left click outside of inventory. -
CLICK_MIDDLE
Used to clone the clicked item onto the cursor in creative. -
CLICK_RIGHT
Right click on a slot. -
CLICK_RIGHT_OUTSIDE
Right click outside of inventory. -
DOUBLE_CLICK
Collects as much items of the same type as possible to the cursor. -
DRAG_END
Stopping drag motion. This distributes items on the cursor in all previously added slots. -
DRAG_LEFT_ADD
Left-click drag motion. -
DRAG_MIDDLE_ADD
Middle-click drag motion. -
DRAG_RIGHT_ADD
Right-click drag motion. -
DRAG_START
Starting drag motion. -
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
Throwing all items in the hovered slot using the throw item key. -
KEY_THROW_ONE
Throwing one item in the hovered slot using the throw item key. -
SHIFT_CLICK_LEFT
Shift-Left click on a slot. -
SHIFT_CLICK_RIGHT
Shift-Right click on a slot.
-
-
Method Details
-
registry
-