Uses of Interface
net.minecraft.core.component.DataComponentMap
Package
Description
-
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 TypeMethodDescriptionstatic com.mojang.serialization.Codec
<DataComponentMap> DataComponentMap.makeCodec
(com.mojang.serialization.Codec<DataComponentType<?>> p_345883_) static com.mojang.serialization.Codec
<DataComponentMap> DataComponentMap.makeCodecFromMap
(com.mojang.serialization.Codec<Map<DataComponentType<?>, Object>> p_346302_) 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.item.enchantment
Modifier and TypeFieldDescriptionprivate final DataComponentMap
Enchantment.effects
The field for theeffects
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DataComponentMap> EnchantmentEffectComponents.CODEC
Modifier and TypeMethodDescriptionEnchantment.effects()
Returns the value of theeffects
record component.ModifierConstructorDescriptionEnchantment
(Component description, Enchantment.EnchantmentDefinition definition, HolderSet<Enchantment> exclusiveSet, DataComponentMap effects) Creates an instance of aEnchantment
record class. -
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