net.minecraft.world.item.component

public final class ItemContainerContents

cxo
net.minecraft.world.item.component.ItemContainerContents
net.minecraft.class_9288
net.minecraft.unmapped.C_tmeipioo
net.minecraft.component.type.ContainerComponent
net.minecraft.component.type.ContainerContentsComponent
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
f_oswdeltn
ALL_SLOTS_EMPTY
NO_SLOT
f_315580_
private static final int
e
MAX_SIZE
field_49337
f_azpkkvlz
MAX_SLOTS
MAX_SLOTS
f_316430_
public static final ItemContainerContents
a
EMPTY
field_49334
f_poyutggn
DEFAULT
DEFAULT
f_316619_
public static final com.mojang.serialization.Codec<ItemContainerContents>
b
CODEC
field_49335
f_dklikmjd
CODEC
CODEC
f_315263_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemContainerContents>
c
STREAM_CODEC
field_49336
f_hooazdoj
PACKET_CODEC
PACKET_CODEC
f_315529_
private final NonNullList<ItemStack>
f
items
field_49338
f_ydquxind
stacks
stacks
f_315560_
private final int
g
hashCode
field_51511
f_dxbajxgt
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)
m_tmogelgq(List<C_tmeipioo$C_zuinfpgw> arg0)
fromSlots(List<ContainerComponent$Slot> slots)
fromSlots(List<ContainerContentsComponent$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)
m_syjjsefp(List<C_sddaxwyk> arg0)
fromStacks(List<ItemStack> stacks)
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)
m_gjwqjhtm(List<C_sddaxwyk> arg0)
findFirstNonEmptyIndex(List<ItemStack> stacks)
findLastNonEmptySlot(List<ItemStack> stacks)
m_321762_(List<C_1391_> p_332919_)
private List<ItemContainerContents$Slot>
f()
asSlots()
method_57494()
m_iubzqnho()
collectSlots()
collectSlots()
m_323947_()
public void
a(jv<cuq> arg0)
copyInto(NonNullList<ItemStack> arg0)
method_57492(class_2371<class_1799> arg0)
m_ckoviecg(C_rnrfftze<C_sddaxwyk> arg0)
copyTo(DefaultedList<ItemStack> stacks)
copyTo(DefaultedList<ItemStack> stacks)
m_322022_(C_4702_<C_1391_> arg0)
public ItemStack
a()
copyOne()
method_58114()
m_fxmbjjsj()
copyFirstStack()
copyFirstStack()
m_322549_()
public Stream<ItemStack>
b()
stream()
method_57489()
m_lfzvkncb()
stream()
stream()
m_324244_()
public Stream<ItemStack>
c()
nonEmptyStream()
method_59712()
m_semwhbjd()
streamNonEmpty()
streamNonEmpty()
m_320494_()
public Iterable<ItemStack>
d()
nonEmptyItems()
method_59714()
m_cbgpuegv()
iterateNonEmpty()
iterateNonEmpty()
m_318832_()
public Iterable<ItemStack>
e()
nonEmptyItemsCopy()
method_59715()
m_ygjxbhro()
iterateNonEmptyCopy()
iterateNonEmptyCopied()
m_324961_()