net.minecraft.world.item.component

public final class ItemContainerContents

implements TooltipProvider

dbv
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

Field summary

Modifier and TypeField
private static final int
d
NO_SLOT
field_51410
f_oswdeltn
ALL_SLOTS_EMPTY
NO_SLOT
private static final int
e
MAX_SIZE
field_49337
f_azpkkvlz
MAX_SLOTS
MAX_SLOTS
public static final ItemContainerContents
a
EMPTY
field_49334
f_poyutggn
DEFAULT
DEFAULT
public static final com.mojang.serialization.Codec<ItemContainerContents>
b
CODEC
field_49335
f_dklikmjd
CODEC
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ItemContainerContents>
c
STREAM_CODEC
field_49336
f_hooazdoj
PACKET_CODEC
PACKET_CODEC
private final NonNullList<ItemStack>
f
items
field_49338
f_ydquxind
stacks
stacks
private final int
g
hashCode
field_51511
f_dxbajxgt
hashCode
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<dbv$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)
public static ItemContainerContents
a(List<czd> 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)
private static int
c(List<czd> arg0)
findLastNonEmptySlot(List<ItemStack> arg0)
method_59713(List<class_1799> arg0)
m_gjwqjhtm(List<C_sddaxwyk> arg0)
findLastNonEmptyIndex(List<ItemStack> stacks)
findLastNonEmptySlot(List<ItemStack> stacks)
private List<ItemContainerContents$Slot>
f()
asSlots()
method_57494()
m_iubzqnho()
collectSlots()
collectSlots()
public void
a(jn<czd> 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)
public ItemStack
a()
copyOne()
method_58114()
m_fxmbjjsj()
copyFirstStack()
copyFirstStack()
public Stream<ItemStack>
b()
stream()
method_57489()
m_lfzvkncb()
stream()
stream()
public Stream<ItemStack>
c()
nonEmptyStream()
method_59712()
m_semwhbjd()
streamNonEmpty()
streamNonEmpty()
public Iterable<ItemStack>
d()
nonEmptyItems()
method_59714()
m_cbgpuegv()
iterateNonEmpty()
iterateNonEmpty()
public Iterable<ItemStack>
e()
nonEmptyItemsCopy()
method_59715()
m_ygjxbhro()
iterateNonEmptyCopy()
iterateNonEmptyCopied()
public void
a(cyz$b arg0, Consumer<wy> arg1, das arg2, ke arg3)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2, DataComponentGetter arg3)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2, class_9473 arg3)
m_eqoeoqpg(C_vorddnax$C_rdhfmrgz arg0, Consumer<C_rdaqiwdt> arg1, C_taebrtdw arg2, C_hmcnusfu arg3)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2, ComponentsAccess arg3)
appendToTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipConfig arg2, ke arg3)