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 TypeMethodDescriptionbooleanItemContainerPredicate.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.CODECstatic final StreamCodec<RegistryFriendlyByteBuf, ItemContainerContents> ItemContainerContents.STREAM_CODECMethods in net.minecraft.world.item.component that return ItemContainerContentsModifier and TypeMethodDescriptionstatic ItemContainerContentsprivate static ItemContainerContentsItemContainerContents.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.componentMethods in net.neoforged.neoforge.items that return ItemContainerContentsModifier and TypeMethodDescriptionprotected ItemContainerContentsComponentItemHandler.getContents()Retrieves theItemContainerContentsfrom the parent object's data component map.Methods in net.neoforged.neoforge.items with parameters of type ItemContainerContentsModifier and TypeMethodDescriptionprotected ItemStackComponentItemHandler.getStackFromContents(ItemContainerContents contents, int slot) Retrieves a copy of a single stack from the underlying data component, returningItemStack.EMPTYif the component does not have a slot present.protected voidComponentItemHandler.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 newComponentItemHandlerwith target size.