Uses of Interface
net.minecraft.component.DataComponentType
Packages that use DataComponentType
Package
Description
-
Uses of DataComponentType in net.minecraft.command.argument
Fields in net.minecraft.command.argument with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate final RegistryWrapper.Impl
<DataComponentType<?>> ItemPredicateArgumentType.class_9445.dataComponentTypeRegistryWrapper
Methods in net.minecraft.command.argument that return DataComponentTypeModifier and TypeMethodDescriptionstatic DataComponentType
<?> ItemStringReader.Reader.readComponentType
(com.mojang.brigadier.StringReader reader) Methods in net.minecraft.command.argument with parameters of type DataComponentTypeModifier 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
Classes in net.minecraft.component that implement DataComponentTypeModifier and TypeClassDescriptionprivate static class
Fields in net.minecraft.component declared as DataComponentTypeModifier 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
<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
<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
Fields in net.minecraft.component with type parameters of type DataComponentTypeModifier 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
Methods in net.minecraft.component that return DataComponentTypeModifier 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.Methods in net.minecraft.component that return types with arguments of type DataComponentTypeModifier 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.Methods in net.minecraft.component with parameters of type DataComponentTypeModifier and TypeMethodDescriptionComponentChanges.Builder.add
(DataComponentType<T> type, T value) ComponentMap.Builder.add
(DataComponentType<T> type, T component) 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) ComponentChanges.Builder.remove
(DataComponentType<T> type) <T> T
ComponentMapImpl.remove
(DataComponentType<? extends T> type) <T> T
ComponentMapImpl.set
(DataComponentType<? super T> type, T value) Method parameters in net.minecraft.component with type arguments of type DataComponentTypeModifier and TypeMethodDescriptiondefault 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) Constructors in net.minecraft.component with parameters of type DataComponentTypeModifierConstructorDescriptionComponent
(DataComponentType<T> dataComponentType, T t) (package private)
Type
(DataComponentType<?> dataComponentType, boolean bool) Constructor parameters in net.minecraft.component with type arguments of type DataComponentTypeModifierConstructorDescription(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
Methods in net.minecraft.component.type with parameters of type DataComponentTypeModifier 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
Methods in net.minecraft.enchantment that return DataComponentTypeModifier and TypeMethodDescriptionprivate static DataComponentType
<ItemEnchantmentsComponent> EnchantmentHelper.getEnchantmentsComponentType
(ItemStack stack) -
Uses of DataComponentType in net.minecraft.item
Methods in net.minecraft.item with parameters of type DataComponentTypeModifier and TypeMethodDescriptionprivate <T extends TooltipAppender>
voidItemStack.appendTooltip
(DataComponentType<T> componentType, Consumer<Text> textConsumer, TooltipContext context) <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.function
Fields in net.minecraft.loot.function declared as DataComponentTypeModifier and TypeFieldDescriptionprivate final DataComponentType
<T> ToggleTooltipsLootFunction.Toggle.type
The field for thetype
record component.Fields in net.minecraft.loot.function with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate final List
<DataComponentType<?>> CopyComponentsLootFunction.components
private static final Map
<DataComponentType<?>, ToggleTooltipsLootFunction.Toggle<?>> ToggleTooltipsLootFunction.TOGGLES
private final ImmutableList.Builder
<DataComponentType<?>> CopyComponentsLootFunction.Builder.types
Methods in net.minecraft.loot.function that return DataComponentTypeModifier and TypeMethodDescriptionToggleTooltipsLootFunction.Toggle.type()
Returns the value of thetype
record component.Methods in net.minecraft.loot.function with parameters of type DataComponentTypeModifier and TypeMethodDescriptionCopyComponentsLootFunction.Builder.add
(DataComponentType<?> type) static <T> ConditionalLootFunction.Builder
<?> SetComponentsLootFunction.builder
(DataComponentType<T> componentType, T value) Constructors in net.minecraft.loot.function with parameters of type DataComponentTypeModifierConstructorDescription(package private)
Toggle
(DataComponentType<T> dataComponentType, ToggleTooltipsLootFunction.TooltipSetter<T> tooltipSetter) -
Uses of DataComponentType in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type DataComponentTypeModifier and TypeMethodDescriptionComponentPredicate.Builder.add
(DataComponentType<? super T> type, T value) -
Uses of DataComponentType in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item that return DataComponentTypeModifier and TypeMethodDescriptionComponentSubPredicate.getComponentType()
DamagePredicate.getComponentType()
EnchantmentsPredicate.Enchantments.getComponentType()
EnchantmentsPredicate.StoredEnchantments.getComponentType()
PotionContentsPredicate.getComponentType()
-
Uses of DataComponentType in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final Registry
<DataComponentType<?>> Registries.DATA_COMPONENT_TYPE
static final RegistryKey
<Registry<DataComponentType<?>>> RegistryKeys.DATA_COMPONENT_TYPE