Uses of Interface
net.minecraft.component.DataComponentType
Package
Description
-
Uses of DataComponentType in net.minecraft.block.entity
Modifier and TypeMethodDescription<T> T
BlockEntity.ComponentsAccess.get
(DataComponentType<T> type) <T> T
BlockEntity.ComponentsAccess.getOrDefault
(DataComponentType<? extends T> type, T fallback) -
Uses of DataComponentType in net.minecraft.command.argument
Modifier and TypeFieldDescriptionprivate final RegistryWrapper.Impl
<DataComponentType<?>> ItemPredicateArgumentType.class_9445.dataComponentTypeRegistryWrapper
Modifier and TypeMethodDescriptionstatic DataComponentType
<?> ItemStringReader.Reader.readComponentType
(com.mojang.brigadier.StringReader reader) Modifier and TypeMethodDescriptiondefault <T> void
ItemStringReader.Callbacks.onComponent
(DataComponentType<T> type, T value) static <T> ItemPredicateArgumentType.ComponentCheck
ItemPredicateArgumentType.ComponentCheck.read
(com.mojang.brigadier.ImmutableStringReader reader, Identifier id, DataComponentType<T> type) private <T> void
ItemStringReader.Reader.readComponentValue
(DataComponentType<T> type) -
Uses of DataComponentType in net.minecraft.component
Modifier and TypeClassDescriptionprivate static class
Modifier and TypeFieldDescriptionstatic final DataComponentType
<AttributeModifiersComponent> DataComponentTypes.ATTRIBUTE_MODIFIERS
static final DataComponentType
<BannerPatternsComponent> DataComponentTypes.BANNER_PATTERNS
static final DataComponentType
<DyeColor> DataComponentTypes.BASE_COLOR
static final DataComponentType
<List<BeehiveBlockEntity.BeeData>> DataComponentTypes.BEES
static final DataComponentType
<NbtComponent> DataComponentTypes.BLOCK_ENTITY_DATA
static final DataComponentType
<BlockStateComponent> DataComponentTypes.BLOCK_STATE
static final DataComponentType
<NbtComponent> DataComponentTypes.BUCKET_ENTITY_DATA
static final DataComponentType
<BundleContentsComponent> DataComponentTypes.BUNDLE_CONTENTS
static final DataComponentType
<BlockPredicatesChecker> DataComponentTypes.CAN_BREAK
static final DataComponentType
<BlockPredicatesChecker> DataComponentTypes.CAN_PLACE_ON
static final DataComponentType
<ChargedProjectilesComponent> DataComponentTypes.CHARGED_PROJECTILES
static final DataComponentType
<ContainerComponent> DataComponentTypes.CONTAINER
static final DataComponentType
<ContainerLootComponent> DataComponentTypes.CONTAINER_LOOT
static final DataComponentType
<Unit> DataComponentTypes.CREATIVE_SLOT_LOCK
static final DataComponentType
<NbtComponent> DataComponentTypes.CUSTOM_DATA
static final DataComponentType
<CustomModelDataComponent> DataComponentTypes.CUSTOM_MODEL_DATA
static final DataComponentType
<Text> DataComponentTypes.CUSTOM_NAME
static final DataComponentType
<Integer> DataComponentTypes.DAMAGE
static final DataComponentType
<DebugStickStateComponent> DataComponentTypes.DEBUG_STICK_STATE
static final DataComponentType
<DyedColorComponent> DataComponentTypes.DYED_COLOR
static final DataComponentType
<Boolean> DataComponentTypes.ENCHANTMENT_GLINT_OVERRIDE
static final DataComponentType
<ItemEnchantmentsComponent> DataComponentTypes.ENCHANTMENTS
static final DataComponentType
<NbtComponent> DataComponentTypes.ENTITY_DATA
static final DataComponentType
<Unit> DataComponentTypes.FIRE_RESISTANT
static final DataComponentType
<FireworkExplosionComponent> DataComponentTypes.FIREWORK_EXPLOSION
static final DataComponentType
<FireworksComponent> DataComponentTypes.FIREWORKS
static final DataComponentType
<FoodComponent> DataComponentTypes.FOOD
static final DataComponentType
<Unit> DataComponentTypes.HIDE_ADDITIONAL_TOOLTIP
static final DataComponentType
<Unit> DataComponentTypes.HIDE_TOOLTIP
static final DataComponentType
<RegistryEntry<Instrument>> DataComponentTypes.INSTRUMENT
static final DataComponentType
<Unit> DataComponentTypes.INTANGIBLE_PROJECTILE
static final DataComponentType
<Text> DataComponentTypes.ITEM_NAME
static final DataComponentType
<ContainerLock> DataComponentTypes.LOCK
static final DataComponentType
<LodestoneTrackerComponent> DataComponentTypes.LODESTONE_TRACKER
static final DataComponentType
<LoreComponent> DataComponentTypes.LORE
static final DataComponentType
<MapColorComponent> DataComponentTypes.MAP_COLOR
static final DataComponentType
<MapDecorationsComponent> DataComponentTypes.MAP_DECORATIONS
static final DataComponentType
<MapIdComponent> DataComponentTypes.MAP_ID
static final DataComponentType
<MapPostProcessingComponent> DataComponentTypes.MAP_POST_PROCESSING
static final DataComponentType
<Integer> DataComponentTypes.MAX_DAMAGE
static final DataComponentType
<Integer> DataComponentTypes.MAX_STACK_SIZE
static final DataComponentType
<Identifier> DataComponentTypes.NOTE_BLOCK_SOUND
static final DataComponentType
<Integer> DataComponentTypes.OMINOUS_BOTTLE_AMPLIFIER
static final DataComponentType
<Sherds> DataComponentTypes.POT_DECORATIONS
static final DataComponentType
<PotionContentsComponent> DataComponentTypes.POTION_CONTENTS
static final DataComponentType
<ProfileComponent> DataComponentTypes.PROFILE
static final DataComponentType
<Rarity> DataComponentTypes.RARITY
static final DataComponentType
<List<Identifier>> DataComponentTypes.RECIPES
static final DataComponentType
<Integer> DataComponentTypes.REPAIR_COST
static final DataComponentType
<ItemEnchantmentsComponent> DataComponentTypes.STORED_ENCHANTMENTS
static final DataComponentType
<SuspiciousStewEffectsComponent> DataComponentTypes.SUSPICIOUS_STEW_EFFECTS
static final DataComponentType
<ToolComponent> DataComponentTypes.TOOL
static final DataComponentType
<ArmorTrim> DataComponentTypes.TRIM
private final DataComponentType
<T> Component.type
The field for thetype
record component.private final DataComponentType
<?> ComponentChanges.Type.type
The field for thetype
record component.static final DataComponentType
<UnbreakableComponent> DataComponentTypes.UNBREAKABLE
static final DataComponentType
<WritableBookContentComponent> DataComponentTypes.WRITABLE_BOOK_CONTENT
static final DataComponentType
<WrittenBookContentComponent> DataComponentTypes.WRITTEN_BOOK_CONTENT
Modifier and TypeFieldDescription(package private) final Reference2ObjectMap
<DataComponentType<?>, Optional<?>> ComponentChanges.changedComponents
private Reference2ObjectMap
<DataComponentType<?>, Optional<?>> ComponentMapImpl.changedComponents
private final Reference2ObjectMap
<DataComponentType<?>, Optional<?>> ComponentChanges.Builder.changes
static final com.mojang.serialization.Codec
<DataComponentType<?>> DataComponentType.CODEC
private final Reference2ObjectMap
<DataComponentType<?>, Object> ComponentMap.Builder.components
private final Reference2ObjectMap
<DataComponentType<?>, Object> ComponentMap.Builder.SimpleComponentMap.map
The field for themap
record component.static final PacketCodec
<RegistryByteBuf, DataComponentType<?>> DataComponentType.PACKET_CODEC
static final com.mojang.serialization.Codec
<DataComponentType<?>> DataComponentType.PERSISTENT_CODEC
private final Set
<DataComponentType<?>> ComponentChanges.AddedRemovedPair.removed
The field for theremoved
record component.static final com.mojang.serialization.Codec
<Map<DataComponentType<?>, Object>> DataComponentType.TYPE_TO_VALUE_MAP_CODEC
Modifier and TypeMethodDescriptionDataComponentType.Builder.build()
static DataComponentType
<?> DataComponentTypes.getDefault
(Registry<DataComponentType<?>> registry) private static <T> DataComponentType
<T> DataComponentTypes.register
(String id, UnaryOperator<DataComponentType.Builder<T>> builderOperator) Component.type()
Returns the value of thetype
record component.ComponentChanges.Type.type()
Returns the value of thetype
record component.Modifier and TypeMethodDescriptionSet
<Map.Entry<DataComponentType<?>, Optional<?>>> ComponentChanges.entrySet()
Set
<DataComponentType<?>> ComponentMap.Builder.SimpleComponentMap.getTypes()
Set
<DataComponentType<?>> ComponentMap.getTypes()
Set
<DataComponentType<?>> ComponentMapImpl.getTypes()
ComponentMap.Builder.SimpleComponentMap.map()
Returns the value of themap
record component.Set
<DataComponentType<?>> ComponentChanges.AddedRemovedPair.removed()
Returns the value of theremoved
record component.Modifier and TypeMethodDescriptionComponentChanges.Builder.add
(DataComponentType<T> type, T value) ComponentMap.Builder.add
(DataComponentType<T> type, T value) private void
ComponentMapImpl.applyChange
(DataComponentType<?> type, Optional<?> optional) default boolean
ComponentHolder.contains
(DataComponentType<?> type) Returns whether the held components includetype
.boolean
ComponentMap.Builder.SimpleComponentMap.contains
(DataComponentType<?> type) default boolean
ComponentMap.contains
(DataComponentType<?> type) ComponentMap.copy
(DataComponentType<T> type) ComponentChanges.get
(DataComponentType<? extends T> type) default <T> T
ComponentHolder.get
(DataComponentType<? extends T> type) Returns the value for the componenttype
, ornull
if the component is missing.<T> T
ComponentMap.Builder.SimpleComponentMap.get
(DataComponentType<? extends T> type) <T> T
ComponentMap.get
(DataComponentType<? extends T> type) <T> T
ComponentMapImpl.get
(DataComponentType<? extends T> type) default <T> T
ComponentHolder.getOrDefault
(DataComponentType<? extends T> type, T fallback) Returns the value for the componenttype
, orfallback
if the component is missing.default <T> T
ComponentMap.getOrDefault
(DataComponentType<? extends T> type, T fallback) (package private) static <T> Component
<T> Component.of
(DataComponentType<T> type, Object value) (package private) <T> void
ComponentMap.Builder.put
(DataComponentType<T> type, @Nullable Object value) ComponentChanges.Builder.remove
(DataComponentType<T> type) <T> T
ComponentMapImpl.remove
(DataComponentType<? extends T> type) <T> T
ComponentMapImpl.set
(DataComponentType<? super T> type, T value) Modifier and TypeMethodDescriptionprivate static ComponentMap
ComponentMap.Builder.build
(Map<DataComponentType<?>, Object> components) default ComponentMap
ComponentMap.filtered
(Predicate<DataComponentType<?>> predicate) static DataComponentType
<?> DataComponentTypes.getDefault
(Registry<DataComponentType<?>> registry) (package private) static Component
<?> Component.of
(Map.Entry<DataComponentType<?>, Object> entry) private static boolean
ComponentMapImpl.shouldReuseChangesMap
(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) (package private) static String
ComponentChanges.toString
(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changes) ComponentChanges.withRemovedIf
(Predicate<DataComponentType<?>> removedTypePredicate) ModifierConstructorDescriptionComponent
(DataComponentType<T> dataComponentType, T t) (package private)
Type
(DataComponentType<?> dataComponentType, boolean bool) ModifierConstructorDescriptionAddedRemovedPair
(ComponentMap componentMap, Set<DataComponentType<?>> set) (package private)
ComponentChanges
(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) private
ComponentMapImpl
(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) (package private)
SimpleComponentMap
(Reference2ObjectMap<DataComponentType<?>, Object> reference2ObjectMap) -
Uses of DataComponentType in net.minecraft.component.type
Modifier and TypeMethodDescriptionNbtComponent.createPredicate
(DataComponentType<NbtComponent> type, NbtCompound nbt) static void
NbtComponent.set
(DataComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static void
NbtComponent.set
(DataComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) -
Uses of DataComponentType in net.minecraft.enchantment
Modifier and TypeMethodDescriptionprivate static DataComponentType
<ItemEnchantmentsComponent> EnchantmentHelper.getEnchantmentsComponentType
(ItemStack stack) -
Uses of DataComponentType in net.minecraft.item
Modifier and TypeMethodDescriptionprivate <T extends TooltipAppender>
voidItemStack.appendTooltip
(DataComponentType<T> componentType, Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type) <T> T
ItemStack.apply
(DataComponentType<T> type, T defaultValue, UnaryOperator<T> applier) Sets the componenttype
by passing the current value (ordefaultValue
if the component is missing) toapplier
and then setting its return value as the value.<T,
U> T ItemStack.apply
(DataComponentType<T> type, T defaultValue, U change, BiFunction<T, U, T> applier) Sets the componenttype
by passing the current value andchange
toapplier
, then setting its return value as the value.<T> Item.Settings
Item.Settings.component
(DataComponentType<T> type, T value) <T> T
ItemStack.remove
(DataComponentType<? extends T> type) Removes the componenttype
.<T> T
ItemStack.set
(DataComponentType<? super T> type, T value) Sets the componenttype
for this item stack tovalue
. -
Uses of DataComponentType in net.minecraft.loot
Modifier and TypeFieldDescriptionstatic final Map
<DataComponentType<?>, ContainerComponentModifier<?>> ContainerComponentModifiers.TYPE_TO_MODIFIER
-
Uses of DataComponentType in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate final DataComponentType
<T> ToggleTooltipsLootFunction.Toggle.type
The field for thetype
record component.Modifier and TypeFieldDescriptionprivate Optional
<ImmutableList.Builder<DataComponentType<?>>> CopyComponentsLootFunction.Builder.exclude
private final Optional
<List<DataComponentType<?>>> CopyComponentsLootFunction.exclude
private final Predicate
<DataComponentType<?>> CopyComponentsLootFunction.filter
private Optional
<ImmutableList.Builder<DataComponentType<?>>> CopyComponentsLootFunction.Builder.include
private final Optional
<List<DataComponentType<?>>> CopyComponentsLootFunction.include
private static final Map
<DataComponentType<?>, ToggleTooltipsLootFunction.Toggle<?>> ToggleTooltipsLootFunction.TOGGLES
Modifier and TypeMethodDescriptionSetNameLootFunction.Target.getComponentType()
ToggleTooltipsLootFunction.Toggle.type()
Returns the value of thetype
record component.Modifier and TypeMethodDescriptionstatic <T> ConditionalLootFunction.Builder
<?> SetComponentsLootFunction.builder
(DataComponentType<T> componentType, T value) CopyComponentsLootFunction.Builder.exclude
(DataComponentType<?> type) CopyComponentsLootFunction.Builder.include
(DataComponentType<?> type) ModifierConstructorDescription(package private)
Toggle
(DataComponentType<T> dataComponentType, ToggleTooltipsLootFunction.TooltipSetter<T> tooltipSetter) ModifierConstructorDescription(package private)
CopyComponentsLootFunction
(List<LootCondition> conditions, CopyComponentsLootFunction.Source source, Optional<List<DataComponentType<?>>> include, Optional<List<DataComponentType<?>>> exclude) -
Uses of DataComponentType in net.minecraft.predicate
Modifier and TypeMethodDescriptionComponentPredicate.Builder.add
(DataComponentType<? super T> type, T value) -
Uses of DataComponentType in net.minecraft.predicate.item
Modifier and TypeMethodDescriptionAttributeModifiersPredicate.getComponentType()
BundleContentsPredicate.getComponentType()
ComponentSubPredicate.getComponentType()
ContainerPredicate.getComponentType()
DamagePredicate.getComponentType()
EnchantmentsPredicate.Enchantments.getComponentType()
EnchantmentsPredicate.StoredEnchantments.getComponentType()
FireworkExplosionPredicate.getComponentType()
FireworksPredicate.getComponentType()
PotionContentsPredicate.getComponentType()
TrimPredicate.getComponentType()
WritableBookContentPredicate.getComponentType()
WrittenBookContentPredicate.getComponentType()
-
Uses of DataComponentType in net.minecraft.registry
Modifier and TypeFieldDescriptionstatic final Registry
<DataComponentType<?>> Registries.DATA_COMPONENT_TYPE
static final RegistryKey
<Registry<DataComponentType<?>>> RegistryKeys.DATA_COMPONENT_TYPE