Uses of Class
net.minecraft.core.component.DataComponentPatch
Package
Description
-
Uses of DataComponentPatch in net.minecraft.commands.arguments.item
Modifier and TypeFieldDescriptionprivate final DataComponentPatch
ItemInput.components
private final DataComponentPatch
ItemParser.ItemResult.components
The field for thecomponents
record component.Modifier and TypeMethodDescriptionItemParser.ItemResult.components()
Returns the value of thecomponents
record component.Modifier and TypeMethodDescriptionprivate static void
ItemParser.validateComponents
(com.mojang.brigadier.StringReader p_341137_, Holder<Item> p_341139_, DataComponentPatch p_345848_) ModifierConstructorDescriptionItemInput
(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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DataComponentPatch> DataComponentPatch.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, DataComponentPatch> DataComponentPatch.STREAM_CODEC
Modifier and TypeMethodDescriptionDataComponentPredicate.asPatch()
PatchedDataComponentMap.asPatch()
DataComponentPatch.Builder.build()
DataComponentPatch.forget
(Predicate<DataComponentType<?>> p_338629_) Modifier 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
Modifier and TypeFieldDescriptionprivate final DataComponentPatch
HoverEvent.ItemStackInfo.components
ModifierConstructorDescription(package private)
ItemStackInfo
(Holder<Item> p_330519_, int p_130894_, DataComponentPatch p_331646_) -
Uses of DataComponentPatch in net.minecraft.world.item
Modifier and TypeMethodDescriptionvoid
ItemStack.applyComponents
(DataComponentPatch p_332097_) void
ItemStack.applyComponentsAndValidate
(DataComponentPatch p_341407_) void
Item.modifyDefaultComponentsFrom
(DataComponentPatch patch) Deprecated.ModifierConstructorDescriptionItemStack
(Holder<Item> p_312081_, int p_41605_, DataComponentPatch p_330362_) -
Uses of DataComponentPatch in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionfinal void
BlockEntity.applyComponents
(DataComponentMap p_330364_, DataComponentPatch p_338381_) -
Uses of DataComponentPatch in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescriptionprivate final DataComponentPatch
SetComponentsFunction.components
ModifierConstructorDescriptionprivate
SetComponentsFunction
(List<LootItemCondition> p_330669_, DataComponentPatch p_330819_) -
Uses of DataComponentPatch in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionvoid
MutableDataComponentHolder.applyComponents
(DataComponentPatch patch) Applies a set of component changes to this stack. -
Uses of DataComponentPatch in net.neoforged.neoforge.fluids
Modifier and TypeMethodDescriptionvoid
FluidStack.applyComponents
(DataComponentPatch patch) Applies a set of component changes to this stack.ModifierConstructorDescriptionFluidStack
(Holder<Fluid> fluid, int amount, DataComponentPatch patch)
the event
instead