mirror of https://github.com/FabricMC/yarn.git
102 lines
4.2 KiB
Plaintext
102 lines
4.2 KiB
Plaintext
CLASS net/minecraft/class_1661 net/minecraft/entity/player/PlayerInventory
|
|
FIELD field_30637 ITEM_USAGE_COOLDOWN I
|
|
COMMENT The maximum cooldown ({@value} ticks) applied to timed use items such as the Eye of Ender.
|
|
FIELD field_30638 MAIN_SIZE I
|
|
COMMENT The number of slots ({@value}) in the main (non-hotbar) section of the inventory.
|
|
FIELD field_30639 OFF_HAND_SLOT I
|
|
COMMENT Zero-based index of the offhand slot.
|
|
COMMENT
|
|
COMMENT <p>This value is the result of the sum {@code MAIN_SIZE (36) + ARMOR_SIZE (4)}.</p>
|
|
FIELD field_30640 NOT_FOUND I
|
|
COMMENT The slot index ({@value}) used to indicate no result
|
|
COMMENT (item not present / no available space) when querying the inventory's contents
|
|
COMMENT or to indicate no preference when inserting an item into the inventory.
|
|
FIELD field_30641 HOTBAR_SIZE I
|
|
COMMENT The number of columns ({@value}) in the inventory.
|
|
COMMENT
|
|
COMMENT <p>The same value dictates the size of the player's hotbar, excluding the offhand slot.</p>
|
|
FIELD field_33767 ARMOR_SLOTS [I
|
|
FIELD field_33768 HELMET_SLOTS [I
|
|
FIELD field_7542 changeCount I
|
|
FIELD field_7543 combinedInventory Ljava/util/List;
|
|
FIELD field_7544 offHand Lnet/minecraft/class_2371;
|
|
FIELD field_7545 selectedSlot I
|
|
FIELD field_7546 player Lnet/minecraft/class_1657;
|
|
FIELD field_7547 main Lnet/minecraft/class_2371;
|
|
FIELD field_7548 armor Lnet/minecraft/class_2371;
|
|
METHOD <init> (Lnet/minecraft/class_1657;)V
|
|
ARG 1 player
|
|
METHOD method_20265 (ILnet/minecraft/class_1657;)V
|
|
ARG 1 player
|
|
METHOD method_29280 remove (Ljava/util/function/Predicate;ILnet/minecraft/class_1263;)I
|
|
ARG 1 shouldRemove
|
|
ARG 2 maxCount
|
|
ARG 3 craftingInventory
|
|
METHOD method_32338 offer (Lnet/minecraft/class_1799;Z)V
|
|
ARG 1 stack
|
|
ARG 2 notifiesClient
|
|
METHOD method_37417 dropSelectedItem (Z)Lnet/minecraft/class_1799;
|
|
ARG 1 entireStack
|
|
METHOD method_7364 getChangeCount ()I
|
|
METHOD method_7365 swapSlotWithHotbar (I)V
|
|
ARG 1 slot
|
|
METHOD method_7366 addStack (Lnet/minecraft/class_1799;)I
|
|
ARG 1 stack
|
|
METHOD method_7367 insertStack (ILnet/minecraft/class_1799;)Z
|
|
ARG 1 slot
|
|
ARG 2 stack
|
|
METHOD method_7368 getHotbarSize ()I
|
|
METHOD method_7370 getBlockBreakingSpeed (Lnet/minecraft/class_2680;)F
|
|
ARG 1 block
|
|
METHOD method_7371 indexOf (Lnet/minecraft/class_1799;)I
|
|
COMMENT Given the item stack to search for, returns the equivalent slot index with a matching stack that is all of:
|
|
COMMENT not damaged, not enchanted, and not renamed.
|
|
COMMENT
|
|
COMMENT @return the index where a matching stack was found, or {@value #NOT_FOUND}
|
|
ARG 1 stack
|
|
METHOD method_7372 getArmorStack (I)Lnet/minecraft/class_1799;
|
|
ARG 1 slot
|
|
METHOD method_7373 scrollInHotbar (D)V
|
|
ARG 1 scrollAmount
|
|
METHOD method_7374 addPickBlock (Lnet/minecraft/class_1799;)V
|
|
ARG 1 stack
|
|
METHOD method_7375 damageArmor (Lnet/minecraft/class_1282;F[I)V
|
|
ARG 1 damageSource
|
|
ARG 2 amount
|
|
ARG 3 slots
|
|
METHOD method_7376 getEmptySlot ()I
|
|
METHOD method_7377 clone (Lnet/minecraft/class_1661;)V
|
|
ARG 1 other
|
|
METHOD method_7378 removeOne (Lnet/minecraft/class_1799;)V
|
|
ARG 1 stack
|
|
METHOD method_7379 contains (Lnet/minecraft/class_1799;)Z
|
|
ARG 1 stack
|
|
METHOD method_7380 isValidHotbarIndex (I)Z
|
|
ARG 0 slot
|
|
METHOD method_7381 updateItems ()V
|
|
METHOD method_7382 contains (Lnet/minecraft/class_6862;)Z
|
|
ARG 1 tag
|
|
METHOD method_7384 writeNbt (Lnet/minecraft/class_2499;)Lnet/minecraft/class_2499;
|
|
ARG 1 nbtList
|
|
METHOD method_7385 addStack (ILnet/minecraft/class_1799;)I
|
|
ARG 1 slot
|
|
ARG 2 stack
|
|
METHOD method_7386 getSwappableHotbarSlot ()I
|
|
METHOD method_7387 populateRecipeFinder (Lnet/minecraft/class_1662;)V
|
|
ARG 1 finder
|
|
METHOD method_7388 dropAll ()V
|
|
METHOD method_7390 getOccupiedSlotWithRoomForStack (Lnet/minecraft/class_1799;)I
|
|
ARG 1 stack
|
|
METHOD method_7391 getMainHandStack ()Lnet/minecraft/class_1799;
|
|
METHOD method_7393 canStackAddMore (Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
|
|
ARG 1 existingStack
|
|
ARG 2 stack
|
|
METHOD method_7394 insertStack (Lnet/minecraft/class_1799;)Z
|
|
ARG 1 stack
|
|
METHOD method_7395 getSlotWithStack (Lnet/minecraft/class_1799;)I
|
|
ARG 1 stack
|
|
METHOD method_7397 readNbt (Lnet/minecraft/class_2499;)V
|
|
ARG 1 nbtList
|
|
METHOD method_7398 offerOrDrop (Lnet/minecraft/class_1799;)V
|
|
ARG 1 stack
|