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

121 lines
5.1 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_7757 quickCraftSlots Ljava/util/Set;
FIELD field_7758 actionId S
FIELD field_7759 quickCraftButton I
FIELD field_7760 restrictedPlayers Ljava/util/Set;
FIELD field_7761 slots Lnet/minecraft/class_2371;
FIELD field_7762 quickCraftStage 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
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;
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_30010 (IILnet/minecraft/class_1713;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1799;
ARG 2 clickData
METHOD method_7590 setPlayerRestriction (Lnet/minecraft/class_1657;Z)V
ARG 1 player
ARG 2 unrestricted
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;)Lnet/minecraft/class_1799;
COMMENT Performs a slot click. This can behave in many different ways depending mainly on the action type.
COMMENT @return The stack that was clicked on before anything changed, used mostly for verifying that the client and server are in sync
ARG 2 clickData
ARG 3 actionType
COMMENT The type of slot click. Check the docs for each SlotActionType value for details
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
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_7612 canStacksCombine (Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
ARG 0 first
ARG 1 second
METHOD method_7613 canInsertIntoSlot (Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Z
ARG 1 stack
ARG 2 slot
METHOD method_7614 getNextActionId (Lnet/minecraft/class_1661;)S
ARG 1 playerInventory
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_7622 isNotRestricted (Lnet/minecraft/class_1657;)Z
ARG 1 player
METHOD method_7623 sendContentUpdates ()V
COMMENT Sends updates to listeners if any properties or slot stacks have changed.