2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_1263 net/minecraft/inventory/Inventory
|
2021-04-02 08:01:06 -04:00
|
|
|
FIELD field_29952 MAX_COUNT_PER_STACK I
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_18861 count (Lnet/minecraft/class_1792;)I
|
|
|
|
COMMENT Returns the number of times the specified item occurs in this inventory across all stored stacks.
|
2019-05-05 18:31:29 -04:00
|
|
|
ARG 1 item
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_18862 containsAny (Ljava/util/Set;)Z
|
|
|
|
COMMENT Determines whether this inventory contains any of the given candidate items.
|
2019-05-05 18:31:29 -04:00
|
|
|
ARG 1 items
|
2022-04-19 06:06:11 -04:00
|
|
|
METHOD method_43255 (Ljava/util/Set;Lnet/minecraft/class_1799;)Z
|
|
|
|
ARG 1 stack
|
|
|
|
METHOD method_43256 containsAny (Ljava/util/function/Predicate;)Z
|
|
|
|
ARG 1 predicate
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_5431 markDirty ()V
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5432 onClose (Lnet/minecraft/class_1657;)V
|
2019-05-05 18:31:29 -04:00
|
|
|
ARG 1 player
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5434 removeStack (II)Lnet/minecraft/class_1799;
|
|
|
|
COMMENT Removes a specific number of items from the given slot.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the removed items as a stack
|
2019-01-11 19:30:17 -05:00
|
|
|
ARG 1 slot
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 2 amount
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5435 onOpen (Lnet/minecraft/class_1657;)V
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 player
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5437 isValid (ILnet/minecraft/class_1799;)Z
|
|
|
|
COMMENT Returns whether the given stack is a valid for the indicated slot position.
|
2018-11-04 07:22:38 -05:00
|
|
|
ARG 1 slot
|
2019-05-05 18:31:29 -04:00
|
|
|
ARG 2 stack
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5438 getStack (I)Lnet/minecraft/class_1799;
|
|
|
|
COMMENT Fetches the stack currently stored at the given slot. If the slot is empty,
|
2020-04-18 09:55:18 -04:00
|
|
|
COMMENT or is outside the bounds of this inventory, returns see {@link ItemStack#EMPTY}.
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 slot
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5439 size ()I
|
|
|
|
METHOD method_5441 removeStack (I)Lnet/minecraft/class_1799;
|
|
|
|
COMMENT Removes the stack currently stored at the indicated slot.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the stack previously stored at the indicated slot.
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 slot
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5442 isEmpty ()Z
|
|
|
|
METHOD method_5443 canPlayerUse (Lnet/minecraft/class_1657;)Z
|
2019-05-05 18:31:29 -04:00
|
|
|
ARG 1 player
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5444 getMaxCountPerStack ()I
|
|
|
|
COMMENT Returns the maximum number of items a stack can contain when placed inside this inventory.
|
|
|
|
COMMENT No slots may have more than this number of items. It is effectively the
|
|
|
|
COMMENT stacking limit for this inventory's slots.
|
|
|
|
COMMENT
|
2020-04-18 09:55:18 -04:00
|
|
|
COMMENT @return the max {@link ItemStack#getCount() count} of item stacks in this inventory
|
2020-03-27 14:04:46 -04:00
|
|
|
METHOD method_5447 setStack (ILnet/minecraft/class_1799;)V
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 slot
|
|
|
|
ARG 2 stack
|