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.CODECMethods in net.minecraft.block.entity that return ComponentMapModifier and TypeMethodDescriptionfinal ComponentMapBlockEntity.createComponentMap()BlockEntity.getComponents()Methods in net.minecraft.block.entity with parameters of type ComponentMapModifier and TypeMethodDescriptionfinal voidBlockEntity.readComponents(ComponentMap defaultComponents, ComponentChanges components) voidBlockEntity.setComponents(ComponentMap components) -
Uses of ComponentMap in net.minecraft.command.argument
Fields in net.minecraft.command.argument declared as ComponentMapModifier and TypeFieldDescriptionprivate final ComponentMapItemStackArgument.componentsprivate final ComponentMapItemStringReader.ItemResult.componentsThe field for thecomponentsrecord component.Methods in net.minecraft.command.argument that return ComponentMapModifier and TypeMethodDescriptionItemStringReader.ItemResult.components()Returns the value of thecomponentsrecord component.Methods in net.minecraft.command.argument with parameters of type ComponentMapModifier and TypeMethodDescriptionprivate static voidItemStringReader.validate(com.mojang.brigadier.StringReader reader, RegistryEntry<Item> item, ComponentMap components) Constructors in net.minecraft.command.argument with parameters of type ComponentMapModifierConstructorDescriptionItemResult(RegistryEntry<Item> registryEntry, ComponentMap componentMap) ItemStackArgument(RegistryEntry<Item> item, ComponentMap components) -
Uses of ComponentMap in net.minecraft.component
Classes in net.minecraft.component that implement ComponentMapModifier and TypeClassDescriptionprivate static final recordfinal classFields in net.minecraft.component declared as ComponentMapModifier and TypeFieldDescriptionprivate final ComponentMapComponentChanges.AddedRemovedPair.addedThe field for theaddedrecord component.private final ComponentMapComponentMapImpl.baseComponentsstatic final ComponentMapDataComponentTypes.DEFAULT_ITEM_COMPONENTSstatic final ComponentMapComponentMap.EMPTYFields in net.minecraft.component with type parameters of type ComponentMapModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ComponentMap> ComponentMap.CODECMethods in net.minecraft.component that return ComponentMapModifier and TypeMethodDescriptionComponentChanges.AddedRemovedPair.added()Returns the value of theaddedrecord component.ComponentMap.Builder.build()private static ComponentMapComponentMap.Builder.build(Map<DataComponentType<?>, Object> components) default ComponentMapComponentMap.filtered(Predicate<DataComponentType<?>> predicate) ComponentHolder.getComponents()static ComponentMapComponentMap.of(ComponentMap base, ComponentMap overrides) Methods in net.minecraft.component with parameters of type ComponentMapModifier and TypeMethodDescriptionComponentMap.Builder.addAll(ComponentMap componentSet) static ComponentMapImplComponentMapImpl.create(ComponentMap baseComponents, ComponentChanges changes) static ComponentMapComponentMap.of(ComponentMap base, ComponentMap overrides) voidComponentMapImpl.setAll(ComponentMap components) private static booleanComponentMapImpl.shouldReuseChangesMap(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) Constructors in net.minecraft.component with parameters of type ComponentMapModifierConstructorDescriptionAddedRemovedPair(ComponentMap componentMap, Set<DataComponentType<?>> set) ComponentMapImpl(ComponentMap baseComponents) privateComponentMapImpl(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) -
Uses of ComponentMap in net.minecraft.item
Fields in net.minecraft.item declared as ComponentMapFields in net.minecraft.item with type parameters of type ComponentMapModifier and TypeFieldDescriptionprivate static final Interner<ComponentMap> Item.Settings.COMPONENT_MAP_INTERNERMethods in net.minecraft.item that return ComponentMapModifier and TypeMethodDescriptionItem.getComponents()private ComponentMapItem.Settings.getComponents()ItemStack.getComponents()ItemStack.getDefaultComponents()(package private) ComponentMapItem.Settings.getValidatedComponents()Methods in net.minecraft.item with parameters of type ComponentMapModifier and TypeMethodDescriptionvoidItemStack.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 ComponentPredicateComponentPredicate.of(ComponentMap components) booleanComponentPredicate.test(ComponentMap componentMap) -
Uses of ComponentMap in net.minecraft.server.command
Fields in net.minecraft.server.command declared as ComponentMapModifier and TypeFieldDescriptionprivate final ComponentMapCloneCommand.BlockEntityInfo.componentsThe field for thecomponentsrecord component.Methods in net.minecraft.server.command that return ComponentMapModifier and TypeMethodDescriptionCloneCommand.BlockEntityInfo.components()Returns the value of thecomponentsrecord component.Constructors in net.minecraft.server.command with parameters of type ComponentMapModifierConstructorDescription(package private)BlockEntityInfo(NbtCompound nbtCompound, ComponentMap componentMap)