Uses of Class
net.minecraft.core.component.DataComponentPatch
Packages that use DataComponentPatch
Package
Description
-
Uses of DataComponentPatch in net.minecraft.commands.arguments.item
Fields in net.minecraft.commands.arguments.item declared as DataComponentPatchModifier and TypeFieldDescriptionprivate final DataComponentPatchItemInput.componentsThe field for thecomponentsrecord component.Methods in net.minecraft.commands.arguments.item that return DataComponentPatchModifier and TypeMethodDescriptionItemInput.components()Returns the value of thecomponentsrecord component.Constructors in net.minecraft.commands.arguments.item with parameters of type DataComponentPatchModifierConstructorDescriptionItemInput(Holder<Item> item, DataComponentPatch components) Creates an instance of aItemInputrecord class. -
Uses of DataComponentPatch in net.minecraft.core.component
Fields in net.minecraft.core.component declared as DataComponentPatchFields in net.minecraft.core.component with type parameters of type DataComponentPatchModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DataComponentPatch> DataComponentPatch.CODECstatic final StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch> DataComponentPatch.DELIMITED_STREAM_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch> DataComponentPatch.STREAM_CODECMethods in net.minecraft.core.component that return DataComponentPatchModifier and TypeMethodDescriptionDataComponentExactPredicate.asPatch()PatchedDataComponentMap.asPatch()DataComponentPatch.Builder.build()DataComponentPatch.forget(Predicate<DataComponentType<?>> test) Methods in net.minecraft.core.component that return types with arguments of type DataComponentPatchModifier and TypeMethodDescriptionprivate static StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch> DataComponentPatch.createStreamCodec(DataComponentPatch.CodecGetter codecGetter) Methods in net.minecraft.core.component with parameters of type DataComponentPatchModifier and TypeMethodDescriptionvoidPatchedDataComponentMap.applyPatch(DataComponentPatch patch) static PatchedDataComponentMapPatchedDataComponentMap.fromPatch(DataComponentMap prototype, DataComponentPatch patch) booleanPatchedDataComponentMap.patchEquals(DataComponentPatch patch) Returns true if the contained patch equals the given patch..voidPatchedDataComponentMap.restorePatch(DataComponentPatch patch) -
Uses of DataComponentPatch in net.minecraft.network
Methods in net.minecraft.network with parameters of type DataComponentPatchModifier and TypeMethodDescriptionstatic HashedPatchMapHashedPatchMap.create(DataComponentPatch patch, HashedPatchMap.HashGenerator hasher) booleanHashedPatchMap.matches(DataComponentPatch patch, HashedPatchMap.HashGenerator hasher) -
Uses of DataComponentPatch in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid that return DataComponentPatchModifier and TypeMethodDescriptionstatic DataComponentPatchRaid.getBannerComponentPatch(HolderGetter<BannerPattern> patternGetter) -
Uses of DataComponentPatch in net.minecraft.world.item
Fields in net.minecraft.world.item declared as DataComponentPatchModifier and TypeFieldDescriptionprivate final DataComponentPatchItemStackTemplate.componentsThe field for thecomponentsrecord component.Methods in net.minecraft.world.item that return DataComponentPatchModifier and TypeMethodDescriptionItemStackTemplate.components()Returns the value of thecomponentsrecord component.ItemStack.getComponentsPatch()Methods in net.minecraft.world.item with parameters of type DataComponentPatchModifier and TypeMethodDescriptionItemStackTemplate.apply(int count, DataComponentPatch additionalPatch) ItemStackTemplate.apply(DataComponentPatch additionalPatch) voidItemStack.applyComponents(DataComponentPatch patch) voidItemStack.applyComponentsAndValidate(DataComponentPatch patch) Method parameters in net.minecraft.world.item with type arguments of type DataComponentPatchModifier and TypeMethodDescriptionprivate static StreamCodec<RegistryFriendlyByteBuf, ItemStack> ItemStack.createOptionalStreamCodec(StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch> patchCodec) Constructors in net.minecraft.world.item with parameters of type DataComponentPatchModifierConstructorDescriptionItemStack(Holder<Item> item, int count, DataComponentPatch components) ItemStackTemplate(Holder<Item> item, int count, DataComponentPatch components) Creates an instance of aItemStackTemplaterecord class.ItemStackTemplate(Holder<Item> item, DataComponentPatch patch) ItemStackTemplate(Item item, int count, DataComponentPatch patch) ItemStackTemplate(Item item, DataComponentPatch patch) -
Uses of DataComponentPatch in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity with parameters of type DataComponentPatchModifier and TypeMethodDescriptionfinal voidBlockEntity.applyComponents(DataComponentMap prototype, DataComponentPatch patch) -
Uses of DataComponentPatch in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as DataComponentPatchModifier and TypeFieldDescriptionprivate final DataComponentPatchSetComponentsFunction.componentsConstructors in net.minecraft.world.level.storage.loot.functions with parameters of type DataComponentPatchModifierConstructorDescriptionprivateSetComponentsFunction(List<LootItemCondition> predicates, DataComponentPatch components) -
Uses of DataComponentPatch in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type DataComponentPatchModifier and TypeMethodDescriptionvoidMutableDataComponentHolder.applyComponents(DataComponentPatch patch) Applies a set of component changes to this stack. -
Uses of DataComponentPatch in net.neoforged.neoforge.common.crafting
Fields in net.neoforged.neoforge.common.crafting declared as DataComponentPatchModifier and TypeFieldDescriptionprivate final DataComponentPatchDataComponentIngredient.componentsMethods in net.neoforged.neoforge.common.crafting that return DataComponentPatchModifier and TypeMethodDescriptionprivate static DataComponentPatchDataComponentIngredient.asPatch(DataComponentMap map) DataComponentIngredient.components()Methods in net.neoforged.neoforge.common.crafting with parameters of type DataComponentPatchModifier and TypeMethodDescriptionstatic IngredientDataComponentIngredient.of(boolean exhaustive, DataComponentPatch predicate, Holder<Item>... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic IngredientDataComponentIngredient.of(boolean exhaustive, DataComponentPatch predicate, HolderSet<Item> items) Creates a new ingredient matching any item from the list, containing the given componentsstatic IngredientDataComponentIngredient.of(boolean exhaustive, DataComponentPatch predicate, ItemLike... items) Creates a new ingredient matching any item from the list, that contains the components set on the given patch and that does not contain the components removed by the given patch.static IngredientDataComponentIngredient.of(DataComponentPatch predicate, ItemLike... items) Creates a new ingredient matching any item from the list, that contains the components set on the given patch and that does not contain the components removed by the given patch.Constructors in net.neoforged.neoforge.common.crafting with parameters of type DataComponentPatchModifierConstructorDescriptionDataComponentIngredient(HolderSet<Item> items, DataComponentPatch components, boolean exhaustive) -
Uses of DataComponentPatch in net.neoforged.neoforge.fluids
Fields in net.neoforged.neoforge.fluids declared as DataComponentPatchModifier and TypeFieldDescriptionprivate final DataComponentPatchFluidStackTemplate.componentsThe field for thecomponentsrecord component.Methods in net.neoforged.neoforge.fluids that return DataComponentPatchModifier and TypeMethodDescriptionFluidStackTemplate.components()Returns the value of thecomponentsrecord component.FluidStack.getComponentsPatch()Methods in net.neoforged.neoforge.fluids with parameters of type DataComponentPatchModifier and TypeMethodDescriptionFluidStackTemplate.apply(int amount, DataComponentPatch additionalPatch) FluidStackTemplate.apply(DataComponentPatch additionalPatch) voidFluidStack.applyComponents(DataComponentPatch patch) Applies a set of component changes to this stack.Constructors in net.neoforged.neoforge.fluids with parameters of type DataComponentPatchModifierConstructorDescriptionFluidStack(Holder<Fluid> fluid, int amount, DataComponentPatch patch) FluidStack(Fluid fluid, int amount, DataComponentPatch patch) FluidStackTemplate(Holder<Fluid> fluid, int amount, DataComponentPatch components) Creates an instance of aFluidStackTemplaterecord class.FluidStackTemplate(Fluid fluid, int amount, DataComponentPatch components) -
Uses of DataComponentPatch in net.neoforged.neoforge.transfer.fluid
Methods in net.neoforged.neoforge.transfer.fluid that return DataComponentPatchMethods in net.neoforged.neoforge.transfer.fluid with parameters of type DataComponentPatchModifier and TypeMethodDescriptionstatic FluidResourceFluidResource.of(Holder<Fluid> holder, DataComponentPatch patch) Note: This cannot be called before your fluid is registeredstatic FluidResourceFluidResource.of(Fluid fluid, DataComponentPatch patch) Note: This cannot be called before your fluid is registeredFluidResource.withMergedPatch(DataComponentPatch patch) -
Uses of DataComponentPatch in net.neoforged.neoforge.transfer.item
Methods in net.neoforged.neoforge.transfer.item that return DataComponentPatchMethods in net.neoforged.neoforge.transfer.item with parameters of type DataComponentPatchModifier and TypeMethodDescriptionstatic ItemResourceItemResource.of(Holder<Item> holder, DataComponentPatch patch) Note: This cannot be called before your item is registeredstatic ItemResourceItemResource.of(ItemLike item, DataComponentPatch patch) Note: This cannot be called before your item is registeredItemResource.withMergedPatch(DataComponentPatch patch) -
Uses of DataComponentPatch in net.neoforged.neoforge.transfer.resource
Methods in net.neoforged.neoforge.transfer.resource that return DataComponentPatchModifier and TypeMethodDescriptionDataComponentHolderResource.getComponentsPatch()Patches currently applied to the resource's data component holder.Methods in net.neoforged.neoforge.transfer.resource with parameters of type DataComponentPatchModifier and TypeMethodDescriptionDataComponentHolderResource.withMergedPatch(DataComponentPatch patch) Returns an instance of the resource with the desired patch applied on top of the existing one.