Uses of Class
net.minecraft.world.item.component.ItemContainerContents
Package
Description
-
Uses of ItemContainerContents in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionboolean
ItemContainerPredicate.matches
(ItemStack p_340936_, ItemContainerContents p_340971_) -
Uses of ItemContainerContents in net.minecraft.core.component
Modifier and TypeFieldDescriptionstatic final DataComponentType
<ItemContainerContents> DataComponents.CONTAINER
-
Uses of ItemContainerContents in net.minecraft.world.item.component
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ItemContainerContents> ItemContainerContents.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ItemContainerContents> ItemContainerContents.STREAM_CODEC
Modifier and TypeMethodDescriptionstatic ItemContainerContents
private static ItemContainerContents
ItemContainerContents.fromSlots
(List<ItemContainerContents.Slot> p_331424_) -
Uses of ItemContainerContents in net.minecraft.world.level.storage.loot
Modifier and TypeFieldDescriptionstatic final ContainerComponentManipulator
<ItemContainerContents> ContainerComponentManipulators.CONTAINER
-
Uses of ItemContainerContents in net.neoforged.neoforge.items
Modifier and TypeFieldDescriptionprotected final DataComponentType
<ItemContainerContents> ComponentItemHandler.component
Modifier and TypeMethodDescriptionprotected ItemContainerContents
ComponentItemHandler.getContents()
Retrieves theItemContainerContents
from the parent object's data component map.Modifier and TypeMethodDescriptionprotected ItemStack
ComponentItemHandler.getStackFromContents
(ItemContainerContents contents, int slot) Retrieves a copy of a single stack from the underlying data component, returningItemStack.EMPTY
if the component does not have a slot present.protected void
ComponentItemHandler.updateContents
(ItemContainerContents contents, ItemStack stack, int slot) Performs a copy and write operation on the underlying data component, changing the stack in the target slot.ModifierConstructorDescriptionComponentItemHandler
(MutableDataComponentHolder parent, DataComponentType<ItemContainerContents> component, int size) Creates a newComponentItemHandler
with target size.