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 DataComponentPatch
ItemInput.components
private final DataComponentPatch
ItemParser.ItemResult.components
The field for thecomponents
record component.Methods in net.minecraft.commands.arguments.item that return DataComponentPatchModifier and TypeMethodDescriptionItemParser.ItemResult.components()
Returns the value of thecomponents
record component.Methods in net.minecraft.commands.arguments.item with parameters of type DataComponentPatchModifier and TypeMethodDescriptionprivate static void
ItemParser.validateComponents
(com.mojang.brigadier.StringReader p_341137_, Holder<Item> p_341139_, DataComponentPatch p_345848_) Constructors in net.minecraft.commands.arguments.item with parameters of type DataComponentPatchModifierConstructorDescriptionItemInput
(Holder<Item> p_235282_, DataComponentPatch p_345942_) ItemResult
(Holder<Item> item, DataComponentPatch components) Creates an instance of aItemResult
record 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.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, DataComponentPatch> DataComponentPatch.STREAM_CODEC
Methods in net.minecraft.core.component that return DataComponentPatchModifier and TypeMethodDescriptionDataComponentPredicate.asPatch()
PatchedDataComponentMap.asPatch()
DataComponentPatch.Builder.build()
DataComponentPatch.forget
(Predicate<DataComponentType<?>> p_338629_) Methods in net.minecraft.core.component with parameters of type DataComponentPatchModifier and TypeMethodDescriptionvoid
PatchedDataComponentMap.applyPatch
(DataComponentPatch p_331964_) static PatchedDataComponentMap
PatchedDataComponentMap.fromPatch
(DataComponentMap p_331807_, DataComponentPatch p_331890_) void
PatchedDataComponentMap.restorePatch
(DataComponentPatch p_341355_) -
Uses of DataComponentPatch in net.minecraft.network.chat
Fields in net.minecraft.network.chat declared as DataComponentPatchModifier and TypeFieldDescriptionprivate final DataComponentPatch
HoverEvent.ItemStackInfo.components
Constructors in net.minecraft.network.chat with parameters of type DataComponentPatchModifierConstructorDescription(package private)
ItemStackInfo
(Holder<Item> p_330519_, int p_130894_, DataComponentPatch p_331646_) -
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 TypeMethodDescriptionvoid
ItemStack.applyComponents
(DataComponentPatch p_332097_) void
ItemStack.applyComponentsAndValidate
(DataComponentPatch p_341407_) void
Item.modifyDefaultComponentsFrom
(DataComponentPatch patch) Deprecated.Constructors in net.minecraft.world.item with parameters of type DataComponentPatchModifierConstructorDescriptionItemStack
(Holder<Item> p_312081_, int p_41605_, DataComponentPatch p_330362_) -
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 void
BlockEntity.applyComponents
(DataComponentMap p_330364_, DataComponentPatch p_338381_) -
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 DataComponentPatch
SetComponentsFunction.components
Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type DataComponentPatchModifierConstructorDescriptionprivate
SetComponentsFunction
(List<LootItemCondition> p_330669_, DataComponentPatch p_330819_) -
Uses of DataComponentPatch in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type DataComponentPatchModifier and TypeMethodDescriptionvoid
MutableDataComponentHolder.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 TypeMethodDescriptionvoid
FluidStack.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 event
instead