Uses of Interface
net.minecraft.core.component.DataComponentMap
Package
Description
-
Uses of DataComponentMap in net.minecraft.commands.arguments.item
Modifier and TypeFieldDescriptionprivate final DataComponentMap
ItemInput.components
private final DataComponentMap
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_, DataComponentMap p_341277_) ModifierConstructorDescriptionItemInput
(Holder<Item> p_235282_, DataComponentMap p_330777_) ItemResult
(Holder<Item> item, DataComponentMap components) Creates an instance of aItemResult
record class. -
Uses of DataComponentMap in net.minecraft.core.component
Modifier and TypeClassDescription(package private) static final record
final class
Modifier and TypeFieldDescriptionprivate final DataComponentMap
DataComponentPatch.SplitResult.added
The field for theadded
record component.static final DataComponentMap
DataComponents.COMMON_ITEM_COMPONENTS
static final DataComponentMap
DataComponentMap.EMPTY
private final DataComponentMap
PatchedDataComponentMap.prototype
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DataComponentMap> DataComponentMap.CODEC
Modifier and TypeMethodDescriptionDataComponentPatch.SplitResult.added()
Returns the value of theadded
record component.DataComponentMap.Builder.build()
private static DataComponentMap
DataComponentMap.Builder.buildFromMapTrusted
(Map<DataComponentType<?>, Object> p_338248_) static DataComponentMap
DataComponentMap.composite
(DataComponentMap p_340974_, DataComponentMap p_341350_) default DataComponentMap
DataComponentMap.filter
(Predicate<DataComponentType<?>> p_331448_) DataComponentHolder.getComponents()
Modifier and TypeMethodDescriptionDataComponentMap.Builder.addAll
(DataComponentMap p_331194_) static DataComponentPredicate
DataComponentPredicate.allOf
(DataComponentMap p_331623_) static DataComponentMap
DataComponentMap.composite
(DataComponentMap p_340974_, DataComponentMap p_341350_) static PatchedDataComponentMap
PatchedDataComponentMap.fromPatch
(DataComponentMap p_331807_, DataComponentPatch p_331890_) private static boolean
PatchedDataComponentMap.isPatchSanitized
(DataComponentMap p_331938_, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_330946_) void
PatchedDataComponentMap.setAll
(DataComponentMap p_331652_) boolean
DataComponentPredicate.test
(DataComponentMap p_331560_) ModifierConstructorDescriptionPatchedDataComponentMap
(DataComponentMap p_332070_) private
PatchedDataComponentMap
(DataComponentMap p_331644_, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_331707_, boolean p_331170_) SplitResult
(DataComponentMap added, Set<DataComponentType<?>> removed) Creates an instance of aSplitResult
record class. -
Uses of DataComponentMap in net.minecraft.server.commands
Modifier and TypeFieldDescriptionprivate final DataComponentMap
CloneCommands.CloneBlockEntityInfo.components
The field for thecomponents
record component.Modifier and TypeMethodDescriptionCloneCommands.CloneBlockEntityInfo.components()
Returns the value of thecomponents
record component.ModifierConstructorDescription(package private)
CloneBlockEntityInfo
(CompoundTag tag, DataComponentMap components) Creates an instance of aCloneBlockEntityInfo
record class. -
Uses of DataComponentMap in net.minecraft.world.item
Modifier and TypeFieldDescriptionprivate static final com.google.common.collect.Interner
<DataComponentMap> Item.Properties.COMPONENT_INTERNER
Modifier and TypeMethodDescription(package private) DataComponentMap
Item.Properties.buildAndValidateComponents()
private DataComponentMap
Item.Properties.buildComponents()
Item.components()
ItemStack.getComponents()
ItemStack.getPrototype()
static DataComponentMap
Item.Properties.validateComponents
(DataComponentMap datacomponentmap) Modifier and TypeMethodDescriptionvoid
ItemStack.applyComponents
(DataComponentMap p_330402_) static DataComponentMap
Item.Properties.validateComponents
(DataComponentMap datacomponentmap) static com.mojang.serialization.DataResult
<Unit> ItemStack.validateComponents
(DataComponentMap p_341201_) -
Uses of DataComponentMap in net.minecraft.world.level.block.entity
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DataComponentMap> BlockEntity.ComponentHelper.COMPONENTS_CODEC
Modifier and TypeMethodDescriptionfinal DataComponentMap
BlockEntity.collectComponents()
BlockEntity.components()
Modifier and TypeMethodDescriptionfinal void
BlockEntity.applyComponents
(DataComponentMap p_330364_, DataComponentPatch p_338381_) void
BlockEntity.setComponents
(DataComponentMap p_338529_) -
Uses of DataComponentMap in net.minecraft.world.level.storage.loot.functions
-
Uses of DataComponentMap in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionvoid
MutableDataComponentHolder.applyComponents
(DataComponentMap components) Applies a set of component changes to this stack. -
Uses of DataComponentMap in net.neoforged.neoforge.common.crafting
Modifier and TypeMethodDescriptionstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentMap map, Holder<Item>... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentMap map, HolderSet<Item> items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentMap map, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given components -
Uses of DataComponentMap in net.neoforged.neoforge.fluids
Modifier and TypeMethodDescriptionvoid
FluidStack.applyComponents
(DataComponentMap components) Applies a set of component changes to this stack. -
Uses of DataComponentMap in net.neoforged.neoforge.fluids.crafting
Modifier and TypeMethodDescriptionstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, Holder<Fluid>... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, HolderSet<Fluid> fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given components