Package net.minecraft

Class class_11046

All Implemented Interfaces:
Iterable<ItemStack>, Inventory, RecipeInputProvider, Clearable

public class class_11046 extends SimpleInventory
Mappings:
Namespace Name
named net/minecraft/class_11046
intermediary net/minecraft/class_11046
official czv
  • Constructor Details

    • class_11046

      public class_11046(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/inventory/SimpleInventory;<init>(I)V
      intermediary <init> Lnet/minecraft/class_1277;<init>(I)V
      official <init> Lbwj;<init>(I)V
  • Method Details

    • readNbtList

      public void readNbtList(NbtList list, RegistryWrapper.WrapperLookup registries)
      Reads the item stacks from nbtList.
      Overrides:
      readNbtList in class SimpleInventory
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNbtList Lnet/minecraft/inventory/SimpleInventory;readNbtList(Lnet/minecraft/nbt/NbtList;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_7659 Lnet/minecraft/class_1277;method_7659(Lnet/minecraft/class_2499;Lnet/minecraft/class_7225$class_7874;)V
      official a Lbwj;a(Lui;Ljj$a;)V
    • toNbtList

      public NbtList toNbtList(RegistryWrapper.WrapperLookup registries)
      Returns an NBT list of non-empty
      invalid reference
      item stacks
      .

      Unlike

      invalid reference
      Inventories#writeNbt(NbtCompound, DefaultedList, boolean, RegistryWrapper.WrapperLookup)
      , this does not serialize the slots.
      Overrides:
      toNbtList in class SimpleInventory
      Returns:
      an NBT list of non-empty
      invalid reference
      item stacks
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named toNbtList Lnet/minecraft/inventory/SimpleInventory;toNbtList(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtList;
      intermediary method_7660 Lnet/minecraft/class_1277;method_7660(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2499;
      official a Lbwj;a(Ljj$a;)Lui;