Add mappings for inventory-related (#1704)

* Add mappings for inventory-related

* itemStack -> stack

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* clear -> remove

* Add Javadoc

* Update Javadoc

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update Javadoc

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update Javadoc

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update Javadoc

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
enbrain 2020-08-24 06:02:35 +09:00 committed by GitHub
parent 4cc2665188
commit 3191b4b9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -9,6 +9,10 @@ CLASS net/minecraft/class_1661 net/minecraft/entity/player/PlayerInventory
FIELD field_7549 cursorStack Lnet/minecraft/class_1799;
METHOD <init> (Lnet/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_7364 getChangeCount ()I
METHOD method_7365 swapSlotWithHotbar (I)V
ARG 1 hotbarSlot

View File

@ -1,4 +1,20 @@
CLASS net/minecraft/class_1262 net/minecraft/inventory/Inventories
METHOD method_29234 remove (Lnet/minecraft/class_1263;Ljava/util/function/Predicate;IZ)I
COMMENT Removes a number, not exceeding {@code maxCount}, of items from an inventory based on a predicate and returns that number.
COMMENT @return the number of items removed
ARG 0 inventory
ARG 1 shouldRemove
ARG 2 maxCount
ARG 3 dryRun
COMMENT whether to return the number of items which would have been removed without actually removing them
METHOD method_29235 remove (Lnet/minecraft/class_1799;Ljava/util/function/Predicate;IZ)I
COMMENT Removes a number, not exceeding {@code maxCount}, of items from an item stack based on a predicate and returns that number.
COMMENT @return the number of items removed
ARG 0 stack
ARG 1 shouldRemove
ARG 2 maxCount
ARG 3 dryRun
COMMENT whether to return the number of items which would have been removed without actually removing them
METHOD method_5426 toTag (Lnet/minecraft/class_2487;Lnet/minecraft/class_2371;)Lnet/minecraft/class_2487;
ARG 0 tag
ARG 1 stacks