Uses of Class
net.minecraft.world.item.component.ItemContainerContents
Packages that use ItemContainerContents
Package
Description
-
Uses of ItemContainerContents in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon that return types with arguments of type ItemContainerContentsMethods in net.minecraft.advancements.critereon with parameters of type ItemContainerContentsModifier and TypeMethodDescriptionboolean
ItemContainerPredicate.matches
(ItemStack p_340936_, ItemContainerContents p_340971_) -
Uses of ItemContainerContents in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type ItemContainerContentsModifier and TypeFieldDescriptionstatic final DataComponentType
<ItemContainerContents> DataComponents.CONTAINER
-
Uses of ItemContainerContents in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as ItemContainerContentsFields in net.minecraft.world.item.component with type parameters of type ItemContainerContentsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ItemContainerContents> ItemContainerContents.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ItemContainerContents> ItemContainerContents.STREAM_CODEC
Methods in net.minecraft.world.item.component that return ItemContainerContentsModifier and TypeMethodDescriptionstatic ItemContainerContents
private static ItemContainerContents
ItemContainerContents.fromSlots
(List<ItemContainerContents.Slot> p_331424_) -
Uses of ItemContainerContents in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type ItemContainerContentsModifier and TypeFieldDescriptionstatic final ContainerComponentManipulator
<ItemContainerContents> ContainerComponentManipulators.CONTAINER
-
Uses of ItemContainerContents in net.neoforged.neoforge.items
Fields in net.neoforged.neoforge.items with type parameters of type ItemContainerContentsModifier and TypeFieldDescriptionprotected final DataComponentType
<ItemContainerContents> ComponentItemHandler.component
Methods in net.neoforged.neoforge.items that return ItemContainerContentsModifier and TypeMethodDescriptionprotected ItemContainerContents
ComponentItemHandler.getContents()
Retrieves theItemContainerContents
from the parent object's data component map.Methods in net.neoforged.neoforge.items with parameters of type ItemContainerContentsModifier 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.Constructor parameters in net.neoforged.neoforge.items with type arguments of type ItemContainerContentsModifierConstructorDescriptionComponentItemHandler
(MutableDataComponentHolder parent, DataComponentType<ItemContainerContents> component, int size) Creates a newComponentItemHandler
with target size.