yarn/mappings/net/minecraft/screen/ScreenHandler.mapping

159 lines
6.6 KiB
Plaintext

CLASS net/minecraft/class_1703 net/minecraft/screen/ScreenHandler
FIELD field_17285 properties Ljava/util/List;
FIELD field_17493 type Lnet/minecraft/class_3917;
FIELD field_29205 cursorStack Lnet/minecraft/class_1799;
FIELD field_29206 previousTrackedStacks Lnet/minecraft/class_2371;
FIELD field_29207 previousCursorStack Lnet/minecraft/class_1799;
FIELD field_29208 syncHandler Lnet/minecraft/class_5916;
FIELD field_29209 disableSync Z
FIELD field_29559 trackedPropertyValues Lit/unimi/dsi/fastutil/ints/IntList;
FIELD field_30730 EMPTY_SPACE_SLOT_INDEX I
COMMENT A special slot index value ({@value}) indicating that the player has clicked outside the main panel
COMMENT of a screen. Used for dropping the cursor stack.
FIELD field_7757 quickCraftSlots Ljava/util/Set;
FIELD field_7759 quickCraftStage I
FIELD field_7761 slots Lnet/minecraft/class_2371;
FIELD field_7762 quickCraftButton I
FIELD field_7763 syncId I
FIELD field_7764 trackedStacks Lnet/minecraft/class_2371;
COMMENT A list of item stacks that is used for tracking changes in {@link #sendContentUpdates()}.
FIELD field_7765 listeners Ljava/util/List;
METHOD <init> (Lnet/minecraft/class_3917;I)V
ARG 1 type
ARG 2 syncId
METHOD method_17358 getType ()Lnet/minecraft/class_3917;
METHOD method_17359 checkSize (Lnet/minecraft/class_1263;I)V
COMMENT Checks that the size of the provided inventory is at least as large as the {@code expectedSize}.
COMMENT
COMMENT @throws IllegalArgumentException if the inventory size is smaller than {@code expectedSize}
ARG 0 inventory
ARG 1 expectedSize
METHOD method_17360 addProperties (Lnet/minecraft/class_3913;)V
ARG 1 propertyDelegate
METHOD method_17361 checkDataCount (Lnet/minecraft/class_3913;I)V
COMMENT Checks that the size of the {@code data} is at least as large as the {@code expectedCount}.
COMMENT
COMMENT @throws IllegalArgumentException if the {@code data} has a smaller size than {@code expectedCount}
ARG 0 data
ARG 1 expectedCount
METHOD method_17362 addProperty (Lnet/minecraft/class_3915;)Lnet/minecraft/class_3915;
ARG 1 property
METHOD method_17695 canUse (Lnet/minecraft/class_3914;Lnet/minecraft/class_1657;Lnet/minecraft/class_2248;)Z
ARG 0 context
ARG 1 player
ARG 2 block
METHOD method_17696 (Lnet/minecraft/class_2248;Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Ljava/lang/Boolean;
ARG 2 world
ARG 3 pos
METHOD method_30010 internalOnSlotClick (IILnet/minecraft/class_1713;Lnet/minecraft/class_1657;)V
COMMENT The actual logic that handles a slot click. Called by {@link #onSlotClick
COMMENT (int, int, SlotActionType, PlayerEntity)} in a try-catch block that wraps
COMMENT exceptions from this method into a crash report.
ARG 1 slotIndex
ARG 2 button
ARG 3 actionType
ARG 4 player
METHOD method_34245 setPreviousTrackedSlot (ILnet/minecraft/class_1799;)V
ARG 1 slot
ARG 2 stack
METHOD method_34246 updateTrackedSlot (ILnet/minecraft/class_1799;Ljava/util/function/Supplier;)V
ARG 1 slot
ARG 2 stack
ARG 3 copySupplier
METHOD method_34247 copySharedSlots (Lnet/minecraft/class_1703;)V
ARG 1 handler
METHOD method_34248 updateSyncHandler (Lnet/minecraft/class_5916;)V
ARG 1 handler
METHOD method_34250 setPreviousCursorStack (Lnet/minecraft/class_1799;)V
ARG 1 stack
METHOD method_34252 syncState ()V
METHOD method_34253 checkSlotUpdates (ILnet/minecraft/class_1799;Ljava/util/function/Supplier;)V
ARG 1 slot
ARG 2 stack
ARG 3 copySupplier
METHOD method_34254 setCursorStack (Lnet/minecraft/class_1799;)V
ARG 1 stack
METHOD method_34255 getCursorStack ()Lnet/minecraft/class_1799;
METHOD method_34256 disableSyncing ()V
METHOD method_34257 enableSyncing ()V
METHOD method_34258 checkCursorStackUpdates ()V
METHOD method_34259 getCursorCommandItemSlot ()Lnet/minecraft/class_5630;
METHOD method_34715 checkPropertyUpdates (II)V
ARG 1 id
ARG 2 value
METHOD method_7591 packQuickCraftData (II)I
ARG 0 quickCraftStage
ARG 1 buttonId
METHOD method_7592 canInsertItemIntoSlot (Lnet/minecraft/class_1735;Lnet/minecraft/class_1799;Z)Z
ARG 0 slot
ARG 1 stack
ARG 2 allowOverflow
METHOD method_7593 onSlotClick (IILnet/minecraft/class_1713;Lnet/minecraft/class_1657;)V
COMMENT Performs a slot click. This can behave in many different ways depending mainly on the action type.
ARG 1 slotIndex
ARG 2 button
ARG 3 actionType
COMMENT The type of slot click. Check the docs for each SlotActionType value for details
ARG 4 player
METHOD method_7594 unpackQuickCraftStage (I)I
ARG 0 quickCraftData
METHOD method_7595 close (Lnet/minecraft/class_1657;)V
ARG 1 player
METHOD method_7596 addListener (Lnet/minecraft/class_1712;)V
ARG 1 listener
METHOD method_7597 canUse (Lnet/minecraft/class_1657;)Z
ARG 1 player
METHOD method_7600 shouldQuickCraftContinue (ILnet/minecraft/class_1657;)Z
ARG 0 stage
ARG 1 player
METHOD method_7601 transferSlot (Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
ARG 1 player
ARG 2 index
METHOD method_7602 getStacks ()Lnet/minecraft/class_2371;
METHOD method_7603 removeListener (Lnet/minecraft/class_1712;)V
ARG 1 listener
METHOD method_7604 onButtonClick (Lnet/minecraft/class_1657;I)Z
ARG 1 player
ARG 2 id
METHOD method_7605 endQuickCraft ()V
METHOD method_7606 setProperty (II)V
ARG 1 id
ARG 2 value
METHOD method_7607 dropInventory (Lnet/minecraft/class_1657;Lnet/minecraft/class_1263;)V
ARG 1 player
ARG 2 inventory
METHOD method_7608 calculateComparatorOutput (Lnet/minecraft/class_2586;)I
ARG 0 entity
METHOD method_7609 onContentChanged (Lnet/minecraft/class_1263;)V
ARG 1 inventory
METHOD method_7610 updateSlotStacks (Ljava/util/List;)V
ARG 1 stacks
METHOD method_7611 getSlot (I)Lnet/minecraft/class_1735;
ARG 1 index
METHOD method_7613 canInsertIntoSlot (Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Z
ARG 1 stack
ARG 2 slot
METHOD method_7615 canInsertIntoSlot (Lnet/minecraft/class_1735;)Z
ARG 1 slot
METHOD method_7616 insertItem (Lnet/minecraft/class_1799;IIZ)Z
ARG 1 stack
ARG 2 startIndex
ARG 3 endIndex
ARG 4 fromLast
METHOD method_7617 calculateStackSize (Ljava/util/Set;ILnet/minecraft/class_1799;I)V
ARG 0 slots
ARG 1 mode
ARG 2 stack
ARG 3 stackSize
METHOD method_7618 calculateComparatorOutput (Lnet/minecraft/class_1263;)I
ARG 0 inventory
METHOD method_7619 setStackInSlot (ILnet/minecraft/class_1799;)V
ARG 1 slot
ARG 2 stack
METHOD method_7620 unpackQuickCraftButton (I)I
ARG 0 quickCraftData
METHOD method_7621 addSlot (Lnet/minecraft/class_1735;)Lnet/minecraft/class_1735;
ARG 1 slot
METHOD method_7623 sendContentUpdates ()V
COMMENT Sends updates to listeners if any properties or slot stacks have changed.