2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_1661 net/minecraft/entity/player/PlayerInventory
|
2021-04-08 05:41:04 -04:00
|
|
|
FIELD field_30637 ITEM_USAGE_COOLDOWN I
|
|
|
|
COMMENT The maximum cooldown ({@value} ticks) applied to timed use items such as the Eye of Ender.
|
2021-04-02 07:59:05 -04:00
|
|
|
FIELD field_30638 MAIN_SIZE I
|
2021-04-08 05:41:04 -04:00
|
|
|
COMMENT The number of slots ({@value}) in the main (non-hotbar) section of the inventory.
|
2021-11-19 11:54:44 -05:00
|
|
|
FIELD field_30639 OFF_HAND_SLOT I
|
2021-04-08 05:41:04 -04:00
|
|
|
COMMENT Zero-based index of the offhand slot.
|
|
|
|
COMMENT
|
2023-09-08 11:54:03 -04:00
|
|
|
COMMENT <p>This value is the result of the sum {@code MAIN_SIZE (36) + ARMOR_SIZE (4)}.
|
2021-04-08 05:41:04 -04:00
|
|
|
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.
|
2021-04-02 07:59:05 -04:00
|
|
|
FIELD field_30641 HOTBAR_SIZE I
|
2021-04-08 05:41:04 -04:00
|
|
|
COMMENT The number of columns ({@value}) in the inventory.
|
|
|
|
COMMENT
|
2023-09-08 11:54:03 -04:00
|
|
|
COMMENT <p>The same value dictates the size of the player's hotbar, excluding the offhand slot.
|
2021-05-21 10:28:57 -04:00
|
|
|
FIELD field_33767 ARMOR_SLOTS [I
|
|
|
|
FIELD field_33768 HELMET_SLOTS [I
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_7542 changeCount I
|
|
|
|
FIELD field_7543 combinedInventory Ljava/util/List;
|
2021-11-19 11:54:44 -05:00
|
|
|
FIELD field_7544 offHand Lnet/minecraft/class_2371;
|
2019-06-28 17:55:20 -04:00
|
|
|
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;
|
2019-07-08 12:09:22 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_1657;)V
|
2019-05-07 07:19:00 -04:00
|
|
|
ARG 1 player
|
2020-08-23 17:02:35 -04:00
|
|
|
METHOD method_29280 remove (Ljava/util/function/Predicate;ILnet/minecraft/class_1263;)I
|
|
|
|
ARG 1 shouldRemove
|
|
|
|
ARG 2 maxCount
|
|
|
|
ARG 3 craftingInventory
|
2021-04-08 05:41:04 -04:00
|
|
|
METHOD method_32338 offer (Lnet/minecraft/class_1799;Z)V
|
|
|
|
ARG 1 stack
|
|
|
|
ARG 2 notifiesClient
|
2021-06-24 09:15:19 -04:00
|
|
|
METHOD method_37417 dropSelectedItem (Z)Lnet/minecraft/class_1799;
|
|
|
|
ARG 1 entireStack
|
2023-12-19 11:06:34 -05:00
|
|
|
METHOD method_55753 contains (Ljava/util/function/Predicate;)Z
|
|
|
|
ARG 1 predicate
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_7364 getChangeCount ()I
|
|
|
|
METHOD method_7365 swapSlotWithHotbar (I)V
|
2020-12-28 08:08:19 -05:00
|
|
|
ARG 1 slot
|
2019-06-28 17:55:20 -04:00
|
|
|
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
|
2020-12-17 15:00:29 -05:00
|
|
|
METHOD method_7371 indexOf (Lnet/minecraft/class_1799;)I
|
2021-04-12 08:13:07 -04:00
|
|
|
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}
|
2020-12-17 15:00:29 -05:00
|
|
|
ARG 1 stack
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_7372 getArmorStack (I)Lnet/minecraft/class_1799;
|
|
|
|
ARG 1 slot
|
|
|
|
METHOD method_7373 scrollInHotbar (D)V
|
2019-05-07 07:19:00 -04:00
|
|
|
ARG 1 scrollAmount
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_7374 addPickBlock (Lnet/minecraft/class_1799;)V
|
2020-03-30 05:10:03 -04:00
|
|
|
ARG 1 stack
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_7376 getEmptySlot ()I
|
|
|
|
METHOD method_7377 clone (Lnet/minecraft/class_1661;)V
|
2019-05-07 07:19:00 -04:00
|
|
|
ARG 1 other
|
2019-06-28 17:55:20 -04:00
|
|
|
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
|
2022-02-09 13:58:35 -05:00
|
|
|
METHOD method_7382 contains (Lnet/minecraft/class_6862;)Z
|
2019-05-07 07:19:00 -04:00
|
|
|
ARG 1 tag
|
2021-04-02 17:03:30 -04:00
|
|
|
METHOD method_7384 writeNbt (Lnet/minecraft/class_2499;)Lnet/minecraft/class_2499;
|
|
|
|
ARG 1 nbtList
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_7385 addStack (ILnet/minecraft/class_1799;)I
|
|
|
|
ARG 1 slot
|
2024-01-31 22:10:35 -05:00
|
|
|
ARG 2 stack
|
2019-06-28 17:55:20 -04:00
|
|
|
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
|
2019-05-07 07:19:00 -04:00
|
|
|
ARG 1 stack
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_7391 getMainHandStack ()Lnet/minecraft/class_1799;
|
|
|
|
METHOD method_7393 canStackAddMore (Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
|
|
|
|
ARG 1 existingStack
|
2019-05-07 07:19:00 -04:00
|
|
|
ARG 2 stack
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_7394 insertStack (Lnet/minecraft/class_1799;)Z
|
2019-05-07 07:19:00 -04:00
|
|
|
ARG 1 stack
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_7395 getSlotWithStack (Lnet/minecraft/class_1799;)I
|
2021-01-25 13:28:38 -05:00
|
|
|
ARG 1 stack
|
2021-04-02 17:03:30 -04:00
|
|
|
METHOD method_7397 readNbt (Lnet/minecraft/class_2499;)V
|
|
|
|
ARG 1 nbtList
|
2020-11-04 15:44:22 -05:00
|
|
|
METHOD method_7398 offerOrDrop (Lnet/minecraft/class_1799;)V
|
2021-01-25 13:28:38 -05:00
|
|
|
ARG 1 stack
|