Uses of Class
net.minecraft.world.item.component.ItemContainerContents
Packages that use ItemContainerContents
Package
Description
-
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.core.component.predicates
Classes in net.minecraft.core.component.predicates that implement interfaces with type arguments of type ItemContainerContentsMethods in net.minecraft.core.component.predicates that return types with arguments of type ItemContainerContentsMethods in net.minecraft.core.component.predicates with parameters of type ItemContainerContentsModifier and TypeMethodDescriptionbooleanContainerPredicate.matches(ItemContainerContents value) -
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> slots) -
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.componentDeprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.items that return ItemContainerContentsModifier and TypeMethodDescriptionprotected ItemContainerContentsComponentItemHandler.getContents()Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newComponentItemHandlerwith target size. -
Uses of ItemContainerContents in net.neoforged.neoforge.transfer.item
Fields in net.neoforged.neoforge.transfer.item with type parameters of type ItemContainerContentsModifier and TypeFieldDescriptionprotected final DataComponentType<ItemContainerContents> ItemAccessItemHandler.componentMethods in net.neoforged.neoforge.transfer.item that return ItemContainerContentsModifier and TypeMethodDescriptionprotected ItemContainerContentsItemAccessItemHandler.getContents(ItemResource accessResource) Retrieves theItemContainerContentsfrom the current resource of the item access.Methods in net.neoforged.neoforge.transfer.item with parameters of type ItemContainerContentsModifier and TypeMethodDescriptionprotected ItemStackItemAccessItemHandler.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.Constructor parameters in net.neoforged.neoforge.transfer.item with type arguments of type ItemContainerContentsModifierConstructorDescriptionItemAccessItemHandler(ItemAccess itemAccess, DataComponentType<ItemContainerContents> component, int size)