Class class_11033
- Mappings:
Namespace Name named net/minecraft/class_11033intermediary net/minecraft/class_11033official cyt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final Inventoryprivate final ScreenHandlerContextFields 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, field_52557, field_52558, slots, syncId -
Constructor Summary
ConstructorsConstructorDescriptionclass_11033(int int2, PlayerInventory playerInventory, List<Integer> list) class_11033(int int2, PlayerInventory playerInventory, ScreenHandlerContext screenHandlerContext) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse(PlayerEntity player) Returns whether the screen handler can be used.private voidvoidonContentChanged(Inventory inventory) Called when a slot's content has changed.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto 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, addPlayerHotbarSlots, addPlayerInventorySlots, addPlayerSlots, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, internalOnSlotClick, isValid, method_69453, method_69454, method_69455, nextRevision, onButtonClick, onClosed, onSlotClick, packQuickCraftData, removeListener, selectBundleStack, sendContentUpdates, setCursorStack, setProperty, setReceivedCursorHash, setReceivedHash, setReceivedStack, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
field_58755
public static final int field_58755- See Also:
- Mappings:
Namespace Name Mixin selector named field_58755Lnet/minecraft/class_11033;field_58755:Iintermediary field_58755Lnet/minecraft/class_11033;field_58755:Iofficial mLcyt;m:I
-
field_58756
private static final int field_58756- See Also:
- Mappings:
Namespace Name Mixin selector named field_58756Lnet/minecraft/class_11033;field_58756:Iintermediary field_58756Lnet/minecraft/class_11033;field_58756:Iofficial nLcyt;n:I
-
field_58757
private static final int field_58757- See Also:
- Mappings:
Namespace Name Mixin selector named field_58757Lnet/minecraft/class_11033;field_58757:Iintermediary field_58757Lnet/minecraft/class_11033;field_58757:Iofficial oLcyt;o:I
-
field_58758
private static final int field_58758- See Also:
- Mappings:
Namespace Name Mixin selector named field_58758Lnet/minecraft/class_11033;field_58758:Iintermediary field_58758Lnet/minecraft/class_11033;field_58758:Iofficial pLcyt;p:I
-
field_58759
private static final int field_58759- See Also:
- Mappings:
Namespace Name Mixin selector named field_58759Lnet/minecraft/class_11033;field_58759:Iintermediary field_58759Lnet/minecraft/class_11033;field_58759:Iofficial qLcyt;q:I
-
field_58760
- Mappings:
Namespace Name Mixin selector named field_58760Lnet/minecraft/class_11033;field_58760:Lnet/minecraft/inventory/Inventory;intermediary field_58760Lnet/minecraft/class_11033;field_58760:Lnet/minecraft/class_1263;official rLcyt;r:Lbvu;
-
field_58761
- Mappings:
Namespace Name Mixin selector named field_58761Lnet/minecraft/class_11033;field_58761:Lnet/minecraft/screen/ScreenHandlerContext;intermediary field_58761Lnet/minecraft/class_11033;field_58761:Lnet/minecraft/class_3914;official sLcyt;s:Lcyl;
-
-
Constructor Details
-
class_11033
-
class_11033
public class_11033(int int2, PlayerInventory playerInventory, ScreenHandlerContext screenHandlerContext)
-
-
Method Details
-
onContentChanged
Called when a slot's content has changed.This is not called by default; subclasses that override this method should also use a custom
InventorywhosemarkDirtymethod is overridden to call this method as a backing inventory of the slot.This can be used to update the output slot when input changes.
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector named onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)Vintermediary method_7609Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)Vofficial aLcxy;a(Lbvu;)V
-
method_69463
private void method_69463()- Mappings:
Namespace Name Mixin selector named method_69463Lnet/minecraft/class_11033;method_69463()Vintermediary method_69463Lnet/minecraft/class_11033;method_69463()Vofficial mLcyt;m()V
-
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:
canUsein classScreenHandler- Returns:
- whether the screen handler can be used
- Mappings:
Namespace Name Mixin selector named canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_7597Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Zofficial bLcxy;b(Lcuf;)Z
-
quickMove
Quick-moves the stack atslotto 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:
quickMovein classScreenHandler- Parameters:
slot- the index of the slot to quick-move from- Returns:
ItemStack.EMPTYwhen no stack can be transferred, otherwise the original stack- See Also:
- Mappings:
Namespace Name Mixin selector named quickMoveLnet/minecraft/screen/ScreenHandler;quickMove(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;intermediary method_7601Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;official bLcxy;b(Lcuf;I)Ldcs;
-