net.minecraft.world.item.component

public final class ItemContainerContents

dah
net.minecraft.world.item.component.ItemContainerContents
net.minecraft.class_9288
net.minecraft.component.type.ContainerComponent
net.minecraft.world.item.component.ItemContainerContents

Field summary

Modifier and TypeField
private static final int
d
NO_SLOT
field_51410
ALL_SLOTS_EMPTY
private static final int
e
MAX_SIZE
field_49337
MAX_SLOTS
public static final ItemContainerContents
a
EMPTY
field_49334
DEFAULT
public static final com.mojang.serialization.Codec<ItemContainerContents>
b
CODEC
field_49335
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ItemContainerContents>
c
STREAM_CODEC
field_49336
PACKET_CODEC
private final NonNullList<ItemStack>
f
items
field_49338
stacks
private final int
g
hashCode
field_51511
hashCode

Constructor summary

ModifierConstructor
private (NonNullList<ItemStack> stacks)
private (int size)
private (List<ItemStack> stacks)

Method summary

Modifier and TypeMethod
private static ItemContainerContents
b(List<dah$a> arg0)
fromSlots(List<ItemContainerContents$Slot> arg0)
method_57496(List<class_9288$class_9289> arg0)
fromSlots(List<ContainerComponent$Slot> slots)
public static ItemContainerContents
a(List<cxp> arg0)
fromItems(List<ItemStack> arg0)
method_57493(List<class_1799> arg0)
fromStacks(List<ItemStack> stacks)
private static int
c(List<cxp> arg0)
findLastNonEmptySlot(List<ItemStack> arg0)
method_59713(List<class_1799> arg0)
findLastNonEmptyIndex(List<ItemStack> stacks)
private List<ItemContainerContents$Slot>
f()
asSlots()
method_57494()
collectSlots()
public void
a(jz<cxp> arg0)
copyInto(NonNullList<ItemStack> arg0)
method_57492(class_2371<class_1799> arg0)
copyTo(DefaultedList<ItemStack> stacks)
public ItemStack
a()
copyOne()
method_58114()
copyFirstStack()
public Stream<ItemStack>
b()
stream()
method_57489()
stream()
public Stream<ItemStack>
c()
nonEmptyStream()
method_59712()
streamNonEmpty()
public Iterable<ItemStack>
d()
nonEmptyItems()
method_59714()
iterateNonEmpty()
public Iterable<ItemStack>
e()
nonEmptyItemsCopy()
method_59715()
iterateNonEmptyCopy()