Uses of Interface
net.minecraft.component.ComponentMap
Packages that use ComponentMap
Package
Description
-
Uses of ComponentMap in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as ComponentMapFields in net.minecraft.block.entity with type parameters of type ComponentMapModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ComponentMap> BlockEntity.Components.CODEC
Methods in net.minecraft.block.entity that return ComponentMapModifier and TypeMethodDescriptionfinal ComponentMap
BlockEntity.createComponentMap()
BlockEntity.getComponents()
Methods in net.minecraft.block.entity with parameters of type ComponentMapModifier and TypeMethodDescriptionfinal void
BlockEntity.readComponents
(ComponentMap defaultComponents, ComponentChanges components) void
BlockEntity.setComponents
(ComponentMap components) -
Uses of ComponentMap in net.minecraft.client.render.item.model.special
Methods in net.minecraft.client.render.item.model.special that return ComponentMapModifier and TypeMethodDescriptionMethods in net.minecraft.client.render.item.model.special with parameters of type ComponentMapModifier and TypeMethodDescriptionvoid
ShieldModelRenderer.render
(@Nullable ComponentMap componentMap, ModelTransformationMode modelTransformationMode, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2, int int3, boolean bool) -
Uses of ComponentMap in net.minecraft.component
Classes in net.minecraft.component that implement ComponentMapModifier and TypeClassDescriptionprivate static final record
final class
AMap
that has a base map and changes to be applied on top of it.Fields in net.minecraft.component declared as ComponentMapModifier 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
Fields in net.minecraft.component with type parameters of type ComponentMapModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ComponentMap> ComponentMap.CODEC
static final com.mojang.serialization.Codec
<ComponentMap> EnchantmentEffectComponentTypes.COMPONENT_MAP_CODEC
Methods in net.minecraft.component that return ComponentMapModifier 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()
MergedComponentMap.immutableCopy()
static ComponentMap
ComponentMap.of
(ComponentMap base, ComponentMap overrides) Methods in net.minecraft.component that return types with arguments of type ComponentMapModifier 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) Methods in net.minecraft.component with parameters of type ComponentMapModifier 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) Constructors in net.minecraft.component with parameters of type ComponentMapModifierConstructorDescriptionAddedRemovedPair
(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
Fields in net.minecraft.enchantment declared as ComponentMapModifier and TypeFieldDescriptionprivate final ComponentMap
Enchantment.effects
The field for theeffects
record component.Methods in net.minecraft.enchantment that return ComponentMapModifier and TypeMethodDescriptionEnchantment.effects()
Returns the value of theeffects
record component.Constructors in net.minecraft.enchantment with parameters of type ComponentMapModifierConstructorDescriptionEnchantment
(Text text, Enchantment.Definition definition, RegistryEntryList<Enchantment> registryEntryList, ComponentMap componentMap) -
Uses of ComponentMap in net.minecraft.item
Fields in net.minecraft.item declared as ComponentMapMethods in net.minecraft.item that return ComponentMapModifier and TypeMethodDescriptionItem.getComponents()
ItemStack.getComponents()
ItemStack.getDefaultComponents()
ItemStack.getImmutableComponents()
(package private) ComponentMap
Item.Settings.getValidatedComponents
(Text name, Identifier modelId) Methods in net.minecraft.item with parameters of type ComponentMapModifier and TypeMethodDescriptionvoid
ItemStack.applyComponentsFrom
(ComponentMap components) static com.mojang.serialization.DataResult
<Unit> ItemStack.validateComponents
(ComponentMap components) -
Uses of ComponentMap in net.minecraft.loot.function
Methods in net.minecraft.loot.function that return ComponentMapModifier and TypeMethodDescriptionCopyComponentsLootFunction.Source.getComponents
(LootContext context) -
Uses of ComponentMap in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type ComponentMapModifier 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
Fields in net.minecraft.server.command declared as ComponentMapModifier and TypeFieldDescriptionprivate final ComponentMap
CloneCommand.BlockEntityInfo.components
The field for thecomponents
record component.Methods in net.minecraft.server.command that return ComponentMapModifier and TypeMethodDescriptionCloneCommand.BlockEntityInfo.components()
Returns the value of thecomponents
record component.Constructors in net.minecraft.server.command with parameters of type ComponentMapModifierConstructorDescription(package private)
BlockEntityInfo
(NbtCompound nbtCompound, ComponentMap componentMap)