Package net.minecraft
Class class_8881
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.class_8881
- All Implemented Interfaces:
ScreenHandlerListener
- Mappings:
Namespace Name official cgs
intermediary net/minecraft/class_8881
named net/minecraft/class_8881
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CraftingResultInventory
protected static final int
private static final int
private static final int
private static final int
private static final int
private final PropertyDelegate
private final PlayerEntity
private final RecipeInputInventory
Fields inherited from class net.minecraft.screen.ScreenHandler
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
-
Constructor Summary
ConstructorsConstructorDescriptionclass_8881
(int int2, PlayerInventory playerInventory) class_8881
(int int2, PlayerInventory playerInventory, RecipeInputInventory recipeInputInventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUse
(PlayerEntity player) Returns whether the screen handler can be used.void
method_54458
(int int2, boolean bool) private void
method_54459
(PlayerInventory playerInventory) boolean
method_54461
(int int2) boolean
private void
void
onPropertyUpdate
(ScreenHandler handler, int property, int value) void
onSlotUpdate
(ScreenHandler handler, int slotId, ItemStack stack) quickMove
(PlayerEntity player, int slot) Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory.Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onClosed, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
field_46781
protected static final int field_46781- See Also:
- Mappings:
Namespace Name Mixin selector official l
Lcgs;l:I
intermediary field_46781
Lnet/minecraft/class_8881;field_46781:I
named field_46781
Lnet/minecraft/class_8881;field_46781:I
-
field_46782
private static final int field_46782- See Also:
- Mappings:
Namespace Name Mixin selector official m
Lcgs;m:I
intermediary field_46782
Lnet/minecraft/class_8881;field_46782:I
named field_46782
Lnet/minecraft/class_8881;field_46782:I
-
field_46783
private static final int field_46783- See Also:
- Mappings:
Namespace Name Mixin selector official n
Lcgs;n:I
intermediary field_46783
Lnet/minecraft/class_8881;field_46783:I
named field_46783
Lnet/minecraft/class_8881;field_46783:I
-
field_46784
private static final int field_46784- See Also:
- Mappings:
Namespace Name Mixin selector official o
Lcgs;o:I
intermediary field_46784
Lnet/minecraft/class_8881;field_46784:I
named field_46784
Lnet/minecraft/class_8881;field_46784:I
-
field_46785
private static final int field_46785- See Also:
- Mappings:
Namespace Name Mixin selector official p
Lcgs;p:I
intermediary field_46785
Lnet/minecraft/class_8881;field_46785:I
named field_46785
Lnet/minecraft/class_8881;field_46785:I
-
field_46780
- Mappings:
Namespace Name Mixin selector official k
Lcgs;k:Lchu;
intermediary field_46780
Lnet/minecraft/class_8881;field_46780:Lnet/minecraft/class_1731;
named field_46780
Lnet/minecraft/class_8881;field_46780:Lnet/minecraft/inventory/CraftingResultInventory;
-
field_46786
- Mappings:
Namespace Name Mixin selector official q
Lcgs;q:Lcgo;
intermediary field_46786
Lnet/minecraft/class_8881;field_46786:Lnet/minecraft/class_3913;
named field_46786
Lnet/minecraft/class_8881;field_46786:Lnet/minecraft/screen/PropertyDelegate;
-
field_46787
- Mappings:
Namespace Name Mixin selector official r
Lcgs;r:Lcdm;
intermediary field_46787
Lnet/minecraft/class_8881;field_46787:Lnet/minecraft/class_1657;
named field_46787
Lnet/minecraft/class_8881;field_46787:Lnet/minecraft/entity/player/PlayerEntity;
-
field_46788
- Mappings:
Namespace Name Mixin selector official s
Lcgs;s:Lcgu;
intermediary field_46788
Lnet/minecraft/class_8881;field_46788:Lnet/minecraft/class_8566;
named field_46788
Lnet/minecraft/class_8881;field_46788:Lnet/minecraft/inventory/RecipeInputInventory;
-
-
Constructor Details
-
class_8881
-
class_8881
public class_8881(int int2, PlayerInventory playerInventory, RecipeInputInventory recipeInputInventory, PropertyDelegate propertyDelegate)
-
-
Method Details
-
method_54459
- Mappings:
Namespace Name Mixin selector official a
Lcgs;a(Lcdl;)V
intermediary method_54459
Lnet/minecraft/class_8881;method_54459(Lnet/minecraft/class_1661;)V
named method_54459
Lnet/minecraft/class_8881;method_54459(Lnet/minecraft/entity/player/PlayerInventory;)V
-
method_54458
public void method_54458(int int2, boolean bool) - Mappings:
Namespace Name Mixin selector official a
Lcgs;a(IZ)V
intermediary method_54458
Lnet/minecraft/class_8881;method_54458(IZ)V
named method_54458
Lnet/minecraft/class_8881;method_54458(IZ)V
-
method_54461
public boolean method_54461(int int2) - Mappings:
Namespace Name Mixin selector official e
Lcgs;e(I)Z
intermediary method_54461
Lnet/minecraft/class_8881;method_54461(I)Z
named method_54461
Lnet/minecraft/class_8881;method_54461(I)Z
-
method_54462
public boolean method_54462()- Mappings:
Namespace Name Mixin selector official l
Lcgs;l()Z
intermediary method_54462
Lnet/minecraft/class_8881;method_54462()Z
named method_54462
Lnet/minecraft/class_8881;method_54462()Z
-
quickMove
Quick-moves the stack atslot
to other slots of the screen handler that belong to a different inventory or another section of the same inventory. For example, items can be quick-moved between a chest's slots and the player inventory or between the main player inventory and the hotbar.Subclasses should call
ScreenHandler.insertItem(net.minecraft.item.ItemStack, int, int, boolean)
, and if the insertion was successful, clear the slot (if the stack is exhausted) or mark it as dirty. See the vanilla subclasses for basic implementation.Quick-moving is also known as "shift-clicking" since it's usually triggered using Shift+left click.
- Specified by:
quickMove
in classScreenHandler
- Parameters:
slot
- the index of the slot to quick-move from- Returns:
ItemStack.EMPTY
when no stack can be transferred, otherwise the original stack- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lcge;a(Lcdm;I)Lclb;
intermediary method_7601
Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
named quickMove
Lnet/minecraft/screen/ScreenHandler;quickMove(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
canUse
Returns whether the screen handler can be used.Subclasses should call #canUse(ScreenHandlerContext, PlayerEntity, Block)} or implement the check itself. The implementation should check that the player is near the screen handler's source position (e.g. block position) and that the source (e.g. block) is not destroyed.
- Specified by:
canUse
in classScreenHandler
- Returns:
- whether the screen handler can be used
- Mappings:
Namespace Name Mixin selector official a
Lcge;a(Lcdm;)Z
intermediary method_7597
Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Z
named canUse
Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
method_54464
private void method_54464()- Mappings:
Namespace Name Mixin selector official n
Lcgs;n()V
intermediary method_54464
Lnet/minecraft/class_8881;method_54464()V
named method_54464
Lnet/minecraft/class_8881;method_54464()V
-
method_54463
- Mappings:
Namespace Name Mixin selector official m
Lcgs;m()Lbij;
intermediary method_54463
Lnet/minecraft/class_8881;method_54463()Lnet/minecraft/class_1263;
named method_54463
Lnet/minecraft/class_8881;method_54463()Lnet/minecraft/inventory/Inventory;
-
onSlotUpdate
- Specified by:
onSlotUpdate
in interfaceScreenHandlerListener
- Mappings:
Namespace Name Mixin selector official a
Lcgq;a(Lcge;ILclb;)V
intermediary method_7635
Lnet/minecraft/class_1712;method_7635(Lnet/minecraft/class_1703;ILnet/minecraft/class_1799;)V
named onSlotUpdate
Lnet/minecraft/screen/ScreenHandlerListener;onSlotUpdate(Lnet/minecraft/screen/ScreenHandler;ILnet/minecraft/item/ItemStack;)V
-
onPropertyUpdate
- Specified by:
onPropertyUpdate
in interfaceScreenHandlerListener
- Mappings:
Namespace Name Mixin selector official a
Lcgq;a(Lcge;II)V
intermediary method_7633
Lnet/minecraft/class_1712;method_7633(Lnet/minecraft/class_1703;II)V
named onPropertyUpdate
Lnet/minecraft/screen/ScreenHandlerListener;onPropertyUpdate(Lnet/minecraft/screen/ScreenHandler;II)V
-