Package net.minecraft.screen.slot
Enum Class SlotActionType
- All Implemented Interfaces:
- Serializable,- Comparable<SlotActionType>,- Constable
- Mappings:
- Namespace - Name - official - cbo- intermediary - net/minecraft/class_1713- named - net/minecraft/screen/slot/SlotActionType
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionClones the item in the slot.Performs a normal slot click.Replenishes the cursor stack with items from the screen handler.Drags items between multiple slots.Performs a shift-click.Exchanges items between a slot and a hotbar slot.Throws the item out of the inventory.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SlotActionTypeReturns the enum constant of this class with the specified name.static SlotActionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
PICKUPPerforms a normal slot click. This can pickup or place items in the slot, possibly merging the cursor stack into the slot, or swapping the slot stack with the cursor stack if they can't be merged.- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcbo;a:Lcbo;- intermediary - field_7790- Lnet/minecraft/class_1713;field_7790:Lnet/minecraft/class_1713;- named - PICKUP- Lnet/minecraft/screen/slot/SlotActionType;PICKUP:Lnet/minecraft/screen/slot/SlotActionType;
 
- 
QUICK_MOVEPerforms a shift-click. This usually quickly moves items between the player's inventory and the open screen handler.- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcbo;b:Lcbo;- intermediary - field_7794- Lnet/minecraft/class_1713;field_7794:Lnet/minecraft/class_1713;- named - QUICK_MOVE- Lnet/minecraft/screen/slot/SlotActionType;QUICK_MOVE:Lnet/minecraft/screen/slot/SlotActionType;
 
- 
SWAPExchanges items between a slot and a hotbar slot. This is usually triggered by the player pressing a 1-9 number key while hovering over a slot.When the action type is swap, the click data is the hotbar slot to swap with (0-8). - Mappings:
- Namespace - Name - Mixin selector - official - c- Lcbo;c:Lcbo;- intermediary - field_7791- Lnet/minecraft/class_1713;field_7791:Lnet/minecraft/class_1713;- named - SWAP- Lnet/minecraft/screen/slot/SlotActionType;SWAP:Lnet/minecraft/screen/slot/SlotActionType;
 
- 
CLONEClones the item in the slot. Usually triggered by middle clicking an item in creative mode.- Mappings:
- Namespace - Name - Mixin selector - official - d- Lcbo;d:Lcbo;- intermediary - field_7796- Lnet/minecraft/class_1713;field_7796:Lnet/minecraft/class_1713;- named - CLONE- Lnet/minecraft/screen/slot/SlotActionType;CLONE:Lnet/minecraft/screen/slot/SlotActionType;
 
- 
THROWThrows the item out of the inventory. This is usually triggered by the player pressing Q while hovering over a slot, or clicking outside the window.When the action type is throw, the click data determines whether to throw a whole stack (1) or a single item from that stack (0). - Mappings:
- Namespace - Name - Mixin selector - official - e- Lcbo;e:Lcbo;- intermediary - field_7795- Lnet/minecraft/class_1713;field_7795:Lnet/minecraft/class_1713;- named - THROW- Lnet/minecraft/screen/slot/SlotActionType;THROW:Lnet/minecraft/screen/slot/SlotActionType;
 
- 
QUICK_CRAFTDrags items between multiple slots. This is usually triggered by the player clicking and dragging between slots.This action happens in 3 stages. Stage 0 signals that the drag has begun, and stage 2 signals that the drag has ended. In between multiple stage 1s signal which slots were dragged on. The stage is packed into the click data along with the mouse button that was clicked. See ScreenHandler.packQuickCraftData(int, int)for details.- Mappings:
- Namespace - Name - Mixin selector - official - f- Lcbo;f:Lcbo;- intermediary - field_7789- Lnet/minecraft/class_1713;field_7789:Lnet/minecraft/class_1713;- named - QUICK_CRAFT- Lnet/minecraft/screen/slot/SlotActionType;QUICK_CRAFT:Lnet/minecraft/screen/slot/SlotActionType;
 
- 
PICKUP_ALLReplenishes the cursor stack with items from the screen handler. This is usually triggered by the player double clicking.- Mappings:
- Namespace - Name - Mixin selector - official - g- Lcbo;g:Lcbo;- intermediary - field_7793- Lnet/minecraft/class_1713;field_7793:Lnet/minecraft/class_1713;- named - PICKUP_ALL- Lnet/minecraft/screen/slot/SlotActionType;PICKUP_ALL:Lnet/minecraft/screen/slot/SlotActionType;
 
 
- 
- 
Constructor Details- 
SlotActionTypeprivate SlotActionType()
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-