Uses of Interface
net.minecraft.component.ComponentMap
Package
Description
-
Uses of ComponentMap in net.minecraft.block.entity
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ComponentMap> BlockEntity.Components.CODEC
Modifier and TypeMethodDescriptionfinal ComponentMap
BlockEntity.createComponentMap()
BlockEntity.getComponents()
Modifier and TypeMethodDescriptionfinal void
BlockEntity.readComponents
(ComponentMap defaultComponents, ComponentChanges components) void
BlockEntity.setComponents
(ComponentMap components) -
Uses of ComponentMap in net.minecraft.component
Modifier and TypeClassDescriptionprivate static final record
final class
AMap
that has a base map and changes to be applied on top of it.Modifier and TypeFieldDescriptionprivate final ComponentMap
ComponentChanges.AddedRemovedPair.added
The field for theadded
record component.private final ComponentMap
MergedComponentMap.baseComponents
static final ComponentMap
DataComponentTypes.DEFAULT_ITEM_COMPONENTS
static final ComponentMap
ComponentMap.EMPTY
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ComponentMap> ComponentMap.CODEC
static final com.mojang.serialization.Codec
<ComponentMap> EnchantmentEffectComponentTypes.COMPONENT_MAP_CODEC
Modifier and TypeMethodDescriptionComponentChanges.AddedRemovedPair.added()
Returns the value of theadded
record component.ComponentMap.Builder.build()
private static ComponentMap
ComponentMap.Builder.build
(Map<ComponentType<?>, Object> components) default ComponentMap
ComponentMap.filtered
(Predicate<ComponentType<?>> predicate) ComponentHolder.getComponents()
static ComponentMap
ComponentMap.of
(ComponentMap base, ComponentMap overrides) Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec
<ComponentMap> ComponentMap.createCodec
(com.mojang.serialization.Codec<ComponentType<?>> componentTypeCodec) static com.mojang.serialization.Codec
<ComponentMap> ComponentMap.createCodecFromValueMap
(com.mojang.serialization.Codec<Map<ComponentType<?>, Object>> typeToValueMapCodec) Modifier and TypeMethodDescriptionComponentMap.Builder.addAll
(ComponentMap componentSet) static MergedComponentMap
MergedComponentMap.create
(ComponentMap baseComponents, ComponentChanges changes) static ComponentMap
ComponentMap.of
(ComponentMap base, ComponentMap overrides) void
MergedComponentMap.setAll
(ComponentMap components) private static boolean
MergedComponentMap.shouldReuseChangesMap
(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents) ModifierConstructorDescriptionAddedRemovedPair
(ComponentMap componentMap, Set<ComponentType<?>> set) MergedComponentMap
(ComponentMap baseComponents) private
MergedComponentMap
(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) -
Uses of ComponentMap in net.minecraft.enchantment
Modifier and TypeFieldDescriptionprivate final ComponentMap
Enchantment.effects
The field for theeffects
record component.Modifier and TypeMethodDescriptionEnchantment.effects()
Returns the value of theeffects
record component.ModifierConstructorDescriptionEnchantment
(Text text, Enchantment.Definition definition, RegistryEntryList<Enchantment> registryEntryList, ComponentMap componentMap) -
Uses of ComponentMap in net.minecraft.item
Modifier and TypeMethodDescriptionItem.getComponents()
ItemStack.getComponents()
ItemStack.getDefaultComponents()
(package private) ComponentMap
Item.Settings.getValidatedComponents
(Text name, Identifier modelId) Modifier and TypeMethodDescriptionvoid
ItemStack.applyComponentsFrom
(ComponentMap components) static com.mojang.serialization.DataResult
<Unit> ItemStack.validateComponents
(ComponentMap components) -
Uses of ComponentMap in net.minecraft.loot.function
Modifier and TypeMethodDescriptionCopyComponentsLootFunction.Source.getComponents
(LootContext context) -
Uses of ComponentMap in net.minecraft.predicate
Modifier and TypeMethodDescriptionstatic ComponentPredicate
ComponentPredicate.of
(ComponentMap components) static ComponentPredicate
ComponentPredicate.ofFiltered
(ComponentMap components, ComponentType<?>[] types) boolean
ComponentPredicate.test
(ComponentMap componentMap) -
Uses of ComponentMap in net.minecraft.server.command
Modifier and TypeFieldDescriptionprivate final ComponentMap
CloneCommand.BlockEntityInfo.components
The field for thecomponents
record component.Modifier and TypeMethodDescriptionCloneCommand.BlockEntityInfo.components()
Returns the value of thecomponents
record component.ModifierConstructorDescription(package private)
BlockEntityInfo
(NbtCompound nbtCompound, ComponentMap componentMap)