net.minecraft.world.item.component

public final class ItemContainerContents

cxo
net.minecraft.world.item.component.ItemContainerContents
net.minecraft.class_9288
net.minecraft.component.type.ContainerComponent
net.minecraft.src.C_313365_
net.minecraft.world.item.component.ItemContainerContents

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
private static ItemContainerContents
b(List<cxo$a> arg0)
fromSlots(List<ItemContainerContents$Slot> arg0)
method_57496(List<class_9288$class_9289> arg0)
fromSlots(List<ContainerComponent$Slot> slots)
m_323974_(List<C_313365_$C_313398_> p_334537_)
public static ItemContainerContents
a(List<cuq> arg0)
fromItems(List<ItemStack> arg0)
method_57493(List<class_1799> arg0)
fromStacks(List<ItemStack> stacks)
m_320241_(List<C_1391_> p_329219_)
private static int
c(List<cuq> arg0)
findLastNonEmptySlot(List<ItemStack> arg0)
method_59713(List<class_1799> arg0)
findFirstNonEmptyIndex(List<ItemStack> stacks)
m_321762_(List<C_1391_> p_332919_)
private List<ItemContainerContents$Slot>
f()
asSlots()
method_57494()
collectSlots()
m_323947_()
public void
a(jv<cuq> arg0)
copyInto(NonNullList<ItemStack> arg0)
method_57492(class_2371<class_1799> arg0)
copyTo(DefaultedList<ItemStack> stacks)
m_322022_(C_4702_<C_1391_> arg0)
public ItemStack
a()
copyOne()
method_58114()
copyFirstStack()
m_322549_()
public Stream<ItemStack>
b()
stream()
method_57489()
stream()
m_324244_()
public Stream<ItemStack>
c()
nonEmptyStream()
method_59712()
streamNonEmpty()
m_320494_()
public Iterable<ItemStack>
d()
nonEmptyItems()
method_59714()
iterateNonEmpty()
m_318832_()
public Iterable<ItemStack>
e()
nonEmptyItemsCopy()
method_59715()
iterateNonEmptyCopy()
m_324961_()