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.componentsprivate final DataComponentPatchItemParser.ItemResult.componentsThe field for thecomponentsrecord component.Methods in net.minecraft.commands.arguments.item that return DataComponentPatchModifier and TypeMethodDescriptionItemParser.ItemResult.components()Returns the value of thecomponentsrecord component.Methods in net.minecraft.commands.arguments.item with parameters of type DataComponentPatchModifier and TypeMethodDescriptionprivate static voidItemParser.validateComponents(com.mojang.brigadier.StringReader pReader, Holder<Item> pItem, DataComponentPatch pComponents) Constructors in net.minecraft.commands.arguments.item with parameters of type DataComponentPatchModifierConstructorDescriptionItemInput(Holder<Item> pItem, DataComponentPatch pComponents) ItemResult(Holder<Item> item, DataComponentPatch components) Creates an instance of aItemResultrecord 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<?>> pPredicate) Methods in net.minecraft.core.component that return types with arguments of type DataComponentPatchModifier and TypeMethodDescriptionprivate static StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch> DataComponentPatch.createStreamCodec(DataComponentPatch.CodecGetter pCodecGetter) Methods in net.minecraft.core.component with parameters of type DataComponentPatchModifier and TypeMethodDescriptionvoidPatchedDataComponentMap.applyPatch(DataComponentPatch pPatch) static PatchedDataComponentMapPatchedDataComponentMap.fromPatch(DataComponentMap pPrototype, DataComponentPatch pPatch) voidPatchedDataComponentMap.restorePatch(DataComponentPatch pPatch) -
Uses of DataComponentPatch in net.minecraft.network
Methods in net.minecraft.network with parameters of type DataComponentPatchModifier and TypeMethodDescriptionstatic HashedPatchMapHashedPatchMap.create(DataComponentPatch pPatch, HashedPatchMap.HashGenerator pHashGenerator) booleanHashedPatchMap.matches(DataComponentPatch pPatch, HashedPatchMap.HashGenerator pHashGenerator) -
Uses of DataComponentPatch in net.minecraft.world.item
Methods in net.minecraft.world.item that return DataComponentPatchMethods in net.minecraft.world.item with parameters of type DataComponentPatchModifier and TypeMethodDescriptionvoidItemStack.applyComponents(DataComponentPatch pComponents) voidItemStack.applyComponentsAndValidate(DataComponentPatch pComponents) voidItem.modifyDefaultComponentsFrom(DataComponentPatch patch) Deprecated.Method parameters in net.minecraft.world.item with type arguments of type DataComponentPatchModifier and TypeMethodDescriptionprivate static StreamCodec<RegistryFriendlyByteBuf, ItemStack> ItemStack.createOptionalStreamCodec(StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch> pCodec) Constructors in net.minecraft.world.item with parameters of type DataComponentPatchModifierConstructorDescriptionItemStack(Holder<Item> pTag, int pCount, DataComponentPatch pComponents) -
Uses of DataComponentPatch in net.minecraft.world.item.crafting
Fields in net.minecraft.world.item.crafting declared as DataComponentPatchModifier and TypeFieldDescriptionprivate final DataComponentPatchTransmuteResult.componentsThe field for thecomponentsrecord component.Methods in net.minecraft.world.item.crafting that return DataComponentPatchModifier and TypeMethodDescriptionTransmuteResult.components()Returns the value of thecomponentsrecord component.Constructors in net.minecraft.world.item.crafting with parameters of type DataComponentPatchModifierConstructorDescriptionTransmuteResult(Holder<Item> item, int count, DataComponentPatch components) Creates an instance of aTransmuteResultrecord class. -
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 pComponents, DataComponentPatch pPatch) -
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> pCondition, DataComponentPatch pComponents) -
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.fluids
Methods in net.neoforged.neoforge.fluids that return DataComponentPatchMethods in net.neoforged.neoforge.fluids with parameters of type DataComponentPatchModifier and TypeMethodDescriptionvoidFluidStack.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)
the eventinstead