Package net.minecraft
Class class_11046
java.lang.Object
net.minecraft.inventory.SimpleInventory
net.minecraft.class_11046
- All Implemented Interfaces:
Iterable<ItemStack>,Inventory,RecipeInputProvider,Clearable
- Mappings:
Namespace Name named net/minecraft/class_11046intermediary net/minecraft/class_11046official czv
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.inventory.Inventory
Inventory.Iterator -
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreadNbtList(NbtList list, RegistryWrapper.WrapperLookup registries) Reads the item stacks fromnbtList.toNbtList(RegistryWrapper.WrapperLookup registries) Returns an NBT list of non-empty.invalid reference
item stacks
Methods inherited from class net.minecraft.inventory.SimpleInventory
addListener, addStack, canInsert, canPlayerUse, clear, clearToList, getHeldStacks, getStack, isEmpty, markDirty, provideRecipeInputs, removeItem, removeListener, removeStack, removeStack, setStack, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, isValid, iterator, method_69259, onClose, onOpenMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
class_11046
public class_11046(int size) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/inventory/SimpleInventory;<init>(I)Vintermediary <init>Lnet/minecraft/class_1277;<init>(I)Vofficial <init>Lbwj;<init>(I)V
-
-
Method Details
-
readNbtList
Reads the item stacks fromnbtList.- Overrides:
readNbtListin classSimpleInventory- See Also:
- Mappings:
Namespace Name Mixin selector named readNbtListLnet/minecraft/inventory/SimpleInventory;readNbtList(Lnet/minecraft/nbt/NbtList;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_7659Lnet/minecraft/class_1277;method_7659(Lnet/minecraft/class_2499;Lnet/minecraft/class_7225$class_7874;)Vofficial aLbwj;a(Lui;Ljj$a;)V
-
toNbtList
Returns an NBT list of non-empty.invalid reference
item stacks
Unlike
, this does not serialize the slots.invalid reference
Inventories#writeNbt(NbtCompound, DefaultedList, boolean, RegistryWrapper.WrapperLookup)- Overrides:
toNbtListin classSimpleInventory- Returns:
- an NBT list of non-empty
invalid reference
item stacks
- See Also:
- Mappings:
Namespace Name Mixin selector named toNbtListLnet/minecraft/inventory/SimpleInventory;toNbtList(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtList;intermediary method_7660Lnet/minecraft/class_1277;method_7660(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2499;official aLbwj;a(Ljj$a;)Lui;
-