Uses of Interface
net.minecraft.core.component.DataComponentType
Packages that use DataComponentType
Package
Description
-
Uses of DataComponentType in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon that return DataComponentTypeModifier and TypeMethodDescriptionItemAttributeModifiersPredicate.componentType()
ItemBundlePredicate.componentType()
ItemContainerPredicate.componentType()
ItemDamagePredicate.componentType()
ItemEnchantmentsPredicate.Enchantments.componentType()
ItemEnchantmentsPredicate.StoredEnchantments.componentType()
ItemFireworkExplosionPredicate.componentType()
ItemFireworksPredicate.componentType()
ItemJukeboxPlayablePredicate.componentType()
ItemPotionsPredicate.componentType()
ItemTrimPredicate.componentType()
ItemWritableBookPredicate.componentType()
ItemWrittenBookPredicate.componentType()
SingleComponentItemPredicate.componentType()
-
Uses of DataComponentType in net.minecraft.commands.arguments.item
Fields in net.minecraft.commands.arguments.item with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate final HolderLookup.RegistryLookup
<DataComponentType<?>> ItemPredicateArgument.Context.components
Methods in net.minecraft.commands.arguments.item that return DataComponentTypeModifier and TypeMethodDescriptionstatic DataComponentType
<?> ItemParser.State.readComponentType
(com.mojang.brigadier.StringReader p_335663_) Methods in net.minecraft.commands.arguments.item with parameters of type DataComponentTypeModifier and TypeMethodDescriptionstatic <T> ItemPredicateArgument.ComponentWrapper
ItemPredicateArgument.ComponentWrapper.create
(com.mojang.brigadier.ImmutableStringReader p_335592_, ResourceLocation p_335737_, DataComponentType<T> p_335860_) private <T> void
ItemParser.State.readComponent
(DataComponentType<T> p_335594_) default <T> void
ItemParser.Visitor.visitComponent
(DataComponentType<T> p_336083_, T p_335499_) default <T> void
ItemParser.Visitor.visitRemovedComponent
(DataComponentType<T> p_344835_) -
Uses of DataComponentType in net.minecraft.core.component
Classes in net.minecraft.core.component that implement DataComponentTypeModifier and TypeClassDescription(package private) static class
Fields in net.minecraft.core.component declared as DataComponentTypeModifier and TypeFieldDescriptionstatic final DataComponentType
<ItemAttributeModifiers> DataComponents.ATTRIBUTE_MODIFIERS
static final DataComponentType
<BannerPatternLayers> DataComponents.BANNER_PATTERNS
static final DataComponentType
<DyeColor> DataComponents.BASE_COLOR
static final DataComponentType
<List<BeehiveBlockEntity.Occupant>> DataComponents.BEES
static final DataComponentType
<CustomData> DataComponents.BLOCK_ENTITY_DATA
static final DataComponentType
<BlockItemStateProperties> DataComponents.BLOCK_STATE
static final DataComponentType
<CustomData> DataComponents.BUCKET_ENTITY_DATA
static final DataComponentType
<BundleContents> DataComponents.BUNDLE_CONTENTS
static final DataComponentType
<AdventureModePredicate> DataComponents.CAN_BREAK
static final DataComponentType
<AdventureModePredicate> DataComponents.CAN_PLACE_ON
static final DataComponentType
<ChargedProjectiles> DataComponents.CHARGED_PROJECTILES
static final DataComponentType
<ItemContainerContents> DataComponents.CONTAINER
static final DataComponentType
<SeededContainerLoot> DataComponents.CONTAINER_LOOT
static final DataComponentType
<Unit> DataComponents.CREATIVE_SLOT_LOCK
static final DataComponentType
<CustomData> DataComponents.CUSTOM_DATA
static final DataComponentType
<CustomModelData> DataComponents.CUSTOM_MODEL_DATA
static final DataComponentType
<Component> DataComponents.CUSTOM_NAME
static final DataComponentType
<Integer> DataComponents.DAMAGE
static final DataComponentType
<DebugStickState> DataComponents.DEBUG_STICK_STATE
static final DataComponentType
<DyedItemColor> DataComponents.DYED_COLOR
static final DataComponentType
<Boolean> DataComponents.ENCHANTMENT_GLINT_OVERRIDE
static final DataComponentType
<ItemEnchantments> DataComponents.ENCHANTMENTS
static final DataComponentType
<CustomData> DataComponents.ENTITY_DATA
static final DataComponentType
<Unit> DataComponents.FIRE_RESISTANT
static final DataComponentType
<FireworkExplosion> DataComponents.FIREWORK_EXPLOSION
static final DataComponentType
<Fireworks> DataComponents.FIREWORKS
static final DataComponentType
<FoodProperties> DataComponents.FOOD
static final DataComponentType
<Unit> DataComponents.HIDE_ADDITIONAL_TOOLTIP
static final DataComponentType
<Unit> DataComponents.HIDE_TOOLTIP
static final DataComponentType
<Holder<Instrument>> DataComponents.INSTRUMENT
static final DataComponentType
<Unit> DataComponents.INTANGIBLE_PROJECTILE
static final DataComponentType
<Component> DataComponents.ITEM_NAME
static final DataComponentType
<JukeboxPlayable> DataComponents.JUKEBOX_PLAYABLE
static final DataComponentType
<LockCode> DataComponents.LOCK
static final DataComponentType
<LodestoneTracker> DataComponents.LODESTONE_TRACKER
static final DataComponentType
<ItemLore> DataComponents.LORE
static final DataComponentType
<MapItemColor> DataComponents.MAP_COLOR
static final DataComponentType
<MapDecorations> DataComponents.MAP_DECORATIONS
static final DataComponentType
<MapId> DataComponents.MAP_ID
static final DataComponentType
<MapPostProcessing> DataComponents.MAP_POST_PROCESSING
static final DataComponentType
<Integer> DataComponents.MAX_DAMAGE
static final DataComponentType
<Integer> DataComponents.MAX_STACK_SIZE
static final DataComponentType
<ResourceLocation> DataComponents.NOTE_BLOCK_SOUND
static final DataComponentType
<Integer> DataComponents.OMINOUS_BOTTLE_AMPLIFIER
static final DataComponentType
<PotDecorations> DataComponents.POT_DECORATIONS
static final DataComponentType
<PotionContents> DataComponents.POTION_CONTENTS
static final DataComponentType
<ResolvableProfile> DataComponents.PROFILE
static final DataComponentType
<Rarity> DataComponents.RARITY
static final DataComponentType
<List<ResourceLocation>> DataComponents.RECIPES
static final DataComponentType
<Integer> DataComponents.REPAIR_COST
static final DataComponentType
<ItemEnchantments> DataComponents.STORED_ENCHANTMENTS
static final DataComponentType
<SuspiciousStewEffects> DataComponents.SUSPICIOUS_STEW_EFFECTS
static final DataComponentType
<Tool> DataComponents.TOOL
static final DataComponentType
<ArmorTrim> DataComponents.TRIM
private final DataComponentType
<?> DataComponentPatch.PatchKey.type
The field for thetype
record component.private final DataComponentType
<T> TypedDataComponent.type
The field for thetype
record component.static final DataComponentType
<Unbreakable> DataComponents.UNBREAKABLE
static final DataComponentType
<WritableBookContent> DataComponents.WRITABLE_BOOK_CONTENT
static final DataComponentType
<WrittenBookContent> DataComponents.WRITTEN_BOOK_CONTENT
Fields in net.minecraft.core.component with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DataComponentType<?>> DataComponentType.CODEC
private final it.unimi.dsi.fastutil.objects.Reference2ObjectMap
<DataComponentType<?>, Object> DataComponentMap.Builder.map
private final it.unimi.dsi.fastutil.objects.Reference2ObjectMap
<DataComponentType<?>, Object> DataComponentMap.Builder.SimpleMap.map
The field for themap
record component.private final it.unimi.dsi.fastutil.objects.Reference2ObjectMap
<DataComponentType<?>, Optional<?>> DataComponentPatch.Builder.map
(package private) final it.unimi.dsi.fastutil.objects.Reference2ObjectMap
<DataComponentType<?>, Optional<?>> DataComponentPatch.map
private it.unimi.dsi.fastutil.objects.Reference2ObjectMap
<DataComponentType<?>, Optional<?>> PatchedDataComponentMap.patch
static final com.mojang.serialization.Codec
<DataComponentType<?>> DataComponentType.PERSISTENT_CODEC
private final Set
<DataComponentType<?>> DataComponentPatch.SplitResult.removed
The field for theremoved
record component.static final StreamCodec
<RegistryFriendlyByteBuf, DataComponentType<?>> DataComponentType.STREAM_CODEC
static final com.mojang.serialization.Codec
<Map<DataComponentType<?>, Object>> DataComponentType.VALUE_MAP_CODEC
Methods in net.minecraft.core.component that return DataComponentTypeModifier and TypeMethodDescriptionstatic DataComponentType
<?> DataComponents.bootstrap
(Registry<DataComponentType<?>> p_330821_) DataComponentType.Builder.build()
private static <T> DataComponentType
<T> DataComponents.register
(String p_332092_, UnaryOperator<DataComponentType.Builder<T>> p_331261_) DataComponentPatch.PatchKey.type()
Returns the value of thetype
record component.TypedDataComponent.type()
Returns the value of thetype
record component.Methods in net.minecraft.core.component that return types with arguments of type DataComponentTypeModifier and TypeMethodDescriptionSet
<Map.Entry<DataComponentType<?>, Optional<?>>> DataComponentPatch.entrySet()
Set
<DataComponentType<?>> DataComponentMap.Builder.SimpleMap.keySet()
Set
<DataComponentType<?>> DataComponentMap.keySet()
Set
<DataComponentType<?>> PatchedDataComponentMap.keySet()
it.unimi.dsi.fastutil.objects.Reference2ObjectMap
<DataComponentType<?>, Object> DataComponentMap.Builder.SimpleMap.map()
Returns the value of themap
record component.Set
<DataComponentType<?>> DataComponentPatch.SplitResult.removed()
Returns the value of theremoved
record component.Methods in net.minecraft.core.component with parameters of type DataComponentTypeModifier and TypeMethodDescriptionprivate void
PatchedDataComponentMap.applyPatch
(DataComponentType<?> p_331724_, Optional<?> p_331550_) static <T> TypedDataComponent
<T> TypedDataComponent.createUnchecked
(DataComponentType<T> p_332026_, Object p_331462_) DataComponentPredicate.Builder.expect
(DataComponentType<? super T> p_331861_, T p_330813_) default <T> T
DataComponentHolder.get
(DataComponentType<? extends T> p_331625_) <T> T
DataComponentMap.Builder.SimpleMap.get
(DataComponentType<? extends T> p_331063_) <T> T
DataComponentMap.get
(DataComponentType<? extends T> p_331815_) <T> Optional
<? extends T> DataComponentPatch.get
(DataComponentType<? extends T> p_331532_) <T> T
PatchedDataComponentMap.get
(DataComponentType<? extends T> p_331587_) default <T> T
DataComponentHolder.getOrDefault
(DataComponentType<? extends T> p_331643_, T p_330718_) default <T> T
DataComponentMap.getOrDefault
(DataComponentType<? extends T> p_331896_, T p_331597_) default <T> TypedDataComponent
<T> DataComponentMap.getTyped
(DataComponentType<T> p_330594_) default boolean
DataComponentHolder.has
(DataComponentType<?> p_330779_) boolean
DataComponentMap.Builder.SimpleMap.has
(DataComponentType<?> p_331343_) default boolean
DataComponentMap.has
(DataComponentType<?> p_330409_) DataComponentPatch.Builder.remove
(DataComponentType<T> p_330845_) <T> T
PatchedDataComponentMap.remove
(DataComponentType<? extends T> p_330831_) DataComponentMap.Builder.set
(DataComponentType<T> p_330228_, T p_332186_) DataComponentPatch.Builder.set
(DataComponentType<T> p_332004_, T p_331566_) <T> T
PatchedDataComponentMap.set
(DataComponentType<? super T> p_330791_, T p_330369_) (package private) <T> void
DataComponentMap.Builder.setUnchecked
(DataComponentType<T> p_338736_, Object p_338594_) Method parameters in net.minecraft.core.component with type arguments of type DataComponentTypeModifier and TypeMethodDescriptionstatic DataComponentType
<?> DataComponents.bootstrap
(Registry<DataComponentType<?>> p_330821_) private static DataComponentMap
DataComponentMap.Builder.buildFromMapTrusted
(Map<DataComponentType<?>, Object> p_338248_) default DataComponentMap
DataComponentMap.filter
(Predicate<DataComponentType<?>> p_331448_) DataComponentPatch.forget
(Predicate<DataComponentType<?>> p_338629_) (package private) static TypedDataComponent
<?> TypedDataComponent.fromEntryUnchecked
(Map.Entry<DataComponentType<?>, Object> p_332125_) private static boolean
PatchedDataComponentMap.isPatchSanitized
(DataComponentMap p_331938_, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_330946_) static com.mojang.serialization.Codec
<DataComponentMap> DataComponentMap.makeCodec
(com.mojang.serialization.Codec<DataComponentType<?>> p_345883_) static com.mojang.serialization.Codec
<DataComponentMap> DataComponentMap.makeCodecFromMap
(com.mojang.serialization.Codec<Map<DataComponentType<?>, Object>> p_346302_) (package private) static String
DataComponentPatch.toString
(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_330935_) Constructors in net.minecraft.core.component with parameters of type DataComponentTypeModifierConstructorDescription(package private)
PatchKey
(DataComponentType<?> type, boolean removed) Creates an instance of aPatchKey
record class.TypedDataComponent
(DataComponentType<T> type, T value) Creates an instance of aTypedDataComponent
record class.Constructor parameters in net.minecraft.core.component with type arguments of type DataComponentTypeModifierConstructorDescription(package private)
DataComponentPatch
(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_331816_) private
PatchedDataComponentMap
(DataComponentMap p_331644_, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_331707_, boolean p_331170_) (package private)
SimpleMap
(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Object> map) Creates an instance of aSimpleMap
record class.SplitResult
(DataComponentMap added, Set<DataComponentType<?>> removed) Creates an instance of aSplitResult
record class. -
Uses of DataComponentType in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final Registry
<DataComponentType<?>> BuiltInRegistries.DATA_COMPONENT_TYPE
static final ResourceKey
<Registry<DataComponentType<?>>> Registries.DATA_COMPONENT_TYPE
static final Registry
<DataComponentType<?>> BuiltInRegistries.ENCHANTMENT_EFFECT_COMPONENT_TYPE
static final ResourceKey
<Registry<DataComponentType<?>>> Registries.ENCHANTMENT_EFFECT_COMPONENT_TYPE
-
Uses of DataComponentType in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type DataComponentTypeModifier and TypeMethodDescription<T extends TooltipProvider>
voidItemStack.addToTooltip
(DataComponentType<T> p_331344_, Item.TooltipContext p_341231_, Consumer<Component> p_331885_, TooltipFlag p_331177_) <T> Item.Properties
Item.Properties.component
(DataComponentType<T> p_330871_, T p_330323_) <T> T
ItemStack.remove
(DataComponentType<? extends T> p_332139_) <T> T
ItemStack.set
(DataComponentType<? super T> p_331064_, T p_330775_) <T> T
ItemStack.update
(DataComponentType<T> p_330921_, T p_331257_, UnaryOperator<T> p_331701_) <T,
U> T ItemStack.update
(DataComponentType<T> p_331083_, T p_331443_, U p_331049_, BiFunction<T, U, T> p_331846_) -
Uses of DataComponentType in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type DataComponentTypeModifier and TypeMethodDescriptionCustomData.itemMatcher
(DataComponentType<CustomData> p_332149_, CompoundTag p_330658_) static void
CustomData.set
(DataComponentType<CustomData> p_330462_, ItemStack p_332015_, CompoundTag p_331019_) static void
CustomData.update
(DataComponentType<CustomData> p_331895_, ItemStack p_332185_, Consumer<CompoundTag> p_331274_) -
Uses of DataComponentType in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as DataComponentTypeModifier and TypeFieldDescriptionstatic final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.AMMO_USE
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.ARMOR_EFFECTIVENESS
static final DataComponentType
<List<EnchantmentAttributeEffect>> EnchantmentEffectComponents.ATTRIBUTES
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.BLOCK_EXPERIENCE
static final DataComponentType
<EnchantmentValueEffect> EnchantmentEffectComponents.CROSSBOW_CHARGE_TIME
static final DataComponentType
<List<CrossbowItem.ChargingSounds>> EnchantmentEffectComponents.CROSSBOW_CHARGING_SOUNDS
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.DAMAGE
static final DataComponentType
<List<ConditionalEffect<DamageImmunity>>> EnchantmentEffectComponents.DAMAGE_IMMUNITY
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.DAMAGE_PROTECTION
static final DataComponentType
<List<TargetedConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.EQUIPMENT_DROPS
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.FISHING_LUCK_BONUS
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.FISHING_TIME_REDUCTION
static final DataComponentType
<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.HIT_BLOCK
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.ITEM_DAMAGE
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.KNOCKBACK
static final DataComponentType
<List<ConditionalEffect<EnchantmentLocationBasedEffect>>> EnchantmentEffectComponents.LOCATION_CHANGED
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.MOB_EXPERIENCE
static final DataComponentType
<List<TargetedConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.POST_ATTACK
static final DataComponentType
<Unit> EnchantmentEffectComponents.PREVENT_ARMOR_CHANGE
static final DataComponentType
<Unit> EnchantmentEffectComponents.PREVENT_EQUIPMENT_DROP
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_COUNT
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_PIERCING
static final DataComponentType
<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.PROJECTILE_SPAWNED
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_SPREAD
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.REPAIR_WITH_XP
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.SMASH_DAMAGE_PER_FALLEN_BLOCK
static final DataComponentType
<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.TICK
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.TRIDENT_RETURN_ACCELERATION
static final DataComponentType
<List<Holder<SoundEvent>>> EnchantmentEffectComponents.TRIDENT_SOUND
static final DataComponentType
<EnchantmentValueEffect> EnchantmentEffectComponents.TRIDENT_SPIN_ATTACK_STRENGTH
Fields in net.minecraft.world.item.enchantment with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DataComponentType<?>> EnchantmentEffectComponents.COMPONENT_CODEC
private final Map
<DataComponentType<?>, List<?>> Enchantment.Builder.effectLists
Methods in net.minecraft.world.item.enchantment that return DataComponentTypeModifier and TypeMethodDescriptionstatic DataComponentType
<?> EnchantmentEffectComponents.bootstrap
(Registry<DataComponentType<?>> p_345744_) private static DataComponentType
<ItemEnchantments> EnchantmentHelper.getComponentType
(ItemStack p_331909_) private static <T> DataComponentType
<T> EnchantmentEffectComponents.register
(String p_346249_, UnaryOperator<DataComponentType.Builder<T>> p_345843_) Methods in net.minecraft.world.item.enchantment with parameters of type DataComponentTypeModifier and TypeMethodDescription<T> List
<T> Enchantment.getEffects
(DataComponentType<List<T>> p_345422_) private <E> List
<E> Enchantment.Builder.getEffectsList
(DataComponentType<List<E>> p_344770_) static <T> com.mojang.datafixers.util.Pair
<T, Integer> EnchantmentHelper.getHighestLevel
(ItemStack p_346269_, DataComponentType<T> p_345899_) static Optional
<EnchantedItemInUse> EnchantmentHelper.getRandomItemWith
(DataComponentType<?> p_345509_, LivingEntity p_44841_, Predicate<ItemStack> p_44842_) static boolean
EnchantmentHelper.has
(ItemStack p_345474_, DataComponentType<?> p_344897_) private void
Enchantment.modifyDamageFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345367_, ServerLevel p_345784_, int p_344796_, ItemStack p_345410_, Entity p_345673_, DamageSource p_345768_, org.apache.commons.lang3.mutable.MutableFloat p_345664_) private void
Enchantment.modifyEntityFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345986_, ServerLevel p_345473_, int p_345352_, ItemStack p_345076_, Entity p_345170_, org.apache.commons.lang3.mutable.MutableFloat p_345910_) private void
Enchantment.modifyItemFilteredCount
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345794_, ServerLevel p_345992_, int p_345038_, ItemStack p_345886_, org.apache.commons.lang3.mutable.MutableFloat p_345188_) void
Enchantment.modifyUnfilteredValue
(DataComponentType<EnchantmentValueEffect> p_347468_, RandomSource p_347513_, int p_347494_, org.apache.commons.lang3.mutable.MutableFloat p_347716_) static <T> Optional
<T> EnchantmentHelper.pickHighestLevel
(ItemStack p_345398_, DataComponentType<List<T>> p_346022_) Enchantment.Builder.withEffect
(DataComponentType<List<ConditionalEffect<E>>> p_345254_, E p_346178_) Enchantment.Builder.withEffect
(DataComponentType<List<ConditionalEffect<E>>> p_345261_, E p_346342_, LootItemCondition.Builder p_344864_) Enchantment.Builder.withEffect
(DataComponentType<List<EnchantmentAttributeEffect>> p_345372_, EnchantmentAttributeEffect p_345754_) Enchantment.Builder.withEffect
(DataComponentType<List<TargetedConditionalEffect<E>>> p_346304_, EnchantmentTarget p_346333_, EnchantmentTarget p_345829_, E p_345094_) Enchantment.Builder.withEffect
(DataComponentType<List<TargetedConditionalEffect<E>>> p_345227_, EnchantmentTarget p_346076_, EnchantmentTarget p_345283_, E p_346194_, LootItemCondition.Builder p_345933_) Enchantment.Builder.withEffect
(DataComponentType<Unit> p_345500_) Enchantment.Builder.withSpecialEffect
(DataComponentType<E> p_346431_, E p_344725_) Method parameters in net.minecraft.world.item.enchantment with type arguments of type DataComponentTypeModifier and TypeMethodDescriptionstatic DataComponentType
<?> EnchantmentEffectComponents.bootstrap
(Registry<DataComponentType<?>> p_345744_) -
Uses of DataComponentType in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity with parameters of type DataComponentTypeModifier and TypeMethodDescription<T> T
BlockEntity.DataComponentInput.get
(DataComponentType<T> p_338658_) <T> T
BlockEntity.DataComponentInput.getOrDefault
(DataComponentType<? extends T> p_338573_, T p_338734_) Method parameters in net.minecraft.world.level.block.entity with type arguments of type DataComponentTypeModifier and TypeMethodDescriptiondefault <T> T
BlockEntity.DataComponentInput.get
(Supplier<? extends DataComponentType<T>> componentType) default <T> T
BlockEntity.DataComponentInput.getOrDefault
(Supplier<? extends DataComponentType<T>> componentType, T value) -
Uses of DataComponentType in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final Map
<DataComponentType<?>, ContainerComponentManipulator<?>> ContainerComponentManipulators.ALL_MANIPULATORS
Methods in net.minecraft.world.level.storage.loot that return DataComponentType -
Uses of DataComponentType in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as DataComponentTypeModifier and TypeFieldDescriptionprivate final DataComponentType
<T> ToggleTooltips.ComponentToggle.type
The field for thetype
record component.Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate final Predicate
<DataComponentType<?>> CopyComponentsFunction.bakedPredicate
private Optional
<com.google.common.collect.ImmutableList.Builder<DataComponentType<?>>> CopyComponentsFunction.Builder.exclude
private final Optional
<List<DataComponentType<?>>> CopyComponentsFunction.exclude
private Optional
<com.google.common.collect.ImmutableList.Builder<DataComponentType<?>>> CopyComponentsFunction.Builder.include
private final Optional
<List<DataComponentType<?>>> CopyComponentsFunction.include
private static final Map
<DataComponentType<?>, ToggleTooltips.ComponentToggle<?>> ToggleTooltips.TOGGLES
Methods in net.minecraft.world.level.storage.loot.functions that return DataComponentTypeModifier and TypeMethodDescriptionSetNameFunction.Target.component()
ToggleTooltips.ComponentToggle.type()
Returns the value of thetype
record component.Methods in net.minecraft.world.level.storage.loot.functions with parameters of type DataComponentTypeModifier and TypeMethodDescriptionCopyComponentsFunction.Builder.exclude
(DataComponentType<?> p_338302_) CopyComponentsFunction.Builder.include
(DataComponentType<?> p_338267_) static <T> LootItemConditionalFunction.Builder
<?> SetComponentsFunction.setComponent
(DataComponentType<T> p_331454_, T p_331398_) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type DataComponentTypeModifierConstructorDescription(package private)
ComponentToggle
(DataComponentType<T> type, ToggleTooltips.TooltipWither<T> setter) Creates an instance of aComponentToggle
record class.Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type DataComponentTypeModifierConstructorDescription(package private)
CopyComponentsFunction
(List<LootItemCondition> p_330806_, CopyComponentsFunction.Source p_330881_, Optional<List<DataComponentType<?>>> p_338636_, Optional<List<DataComponentType<?>>> p_338680_) -
Uses of DataComponentType in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type DataComponentTypeModifier and TypeMethodDescriptiondefault void
MutableDataComponentHolder.copyFrom
(DataComponentHolder src, DataComponentType<?>... componentTypes) Copies all data components fromsrc
private <T> void
MutableDataComponentHolder.copyFrom
(DataComponentType<T> componentType, DataComponentHolder src) <T> T
MutableDataComponentHolder.remove
(DataComponentType<? extends T> componentType) Removes a data component.<T> T
MutableDataComponentHolder.set
(DataComponentType<? super T> componentType, T value) Sets a data component.default <T> T
MutableDataComponentHolder.update
(DataComponentType<T> componentType, T value, UnaryOperator<T> updater) Updates a data component if it exists.default <T,
U> T MutableDataComponentHolder.update
(DataComponentType<T> componentType, T value, U updateContext, BiFunction<T, U, T> updater) Updates a data component if it exists, using an additionalupdateContext
.Method parameters in net.neoforged.neoforge.common with type arguments of type DataComponentTypeModifier and TypeMethodDescriptiondefault <T> T
MutableDataComponentHolder.remove
(Supplier<? extends DataComponentType<? extends T>> componentType) Removes a data component.default <T> T
MutableDataComponentHolder.set
(Supplier<? extends DataComponentType<? super T>> componentType, T value) Sets a data component.default <T> T
MutableDataComponentHolder.update
(Supplier<? extends DataComponentType<T>> componentType, T value, UnaryOperator<T> updater) Updates a data component if it exists.default <T,
U> T MutableDataComponentHolder.update
(Supplier<? extends DataComponentType<T>> componentType, T value, U updateContext, BiFunction<T, U, T> updater) Updates a data component if it exists, using an additionalupdateContext
. -
Uses of DataComponentType in net.neoforged.neoforge.common.crafting
Methods in net.neoforged.neoforge.common.crafting with parameters of type DataComponentTypeModifier and TypeMethodDescriptionstatic <T> Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentType<? super T> type, T value, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsMethod parameters in net.neoforged.neoforge.common.crafting with type arguments of type DataComponentTypeModifier and TypeMethodDescriptionstatic <T> Ingredient
DataComponentIngredient.of
(boolean strict, Supplier<? extends DataComponentType<? super T>> type, T value, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given components -
Uses of DataComponentType in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type DataComponentTypeModifier and TypeMethodDescriptiondefault <T extends TooltipProvider>
voidIDataComponentHolderExtension.addToTooltip
(DataComponentType<T> type, Item.TooltipContext context, Consumer<Component> adder, TooltipFlag flag) Method parameters in net.neoforged.neoforge.common.extensions with type arguments of type DataComponentTypeModifier and TypeMethodDescriptiondefault <T extends TooltipProvider>
voidIDataComponentHolderExtension.addToTooltip
(Supplier<? extends DataComponentType<T>> type, Item.TooltipContext context, Consumer<Component> adder, TooltipFlag flag) default <T> Item.Properties
IItemPropertiesExtensions.component
(Supplier<? extends DataComponentType<T>> componentType, T value) default <T> T
IDataComponentHolderExtension.get
(Supplier<? extends DataComponentType<? extends T>> type) default <T> T
IDataComponentHolderExtension.getOrDefault
(Supplier<? extends DataComponentType<? extends T>> type, T defaultValue) default boolean
IDataComponentHolderExtension.has
(Supplier<? extends DataComponentType<?>> type) default <T> DataComponentMap.Builder
IDataComponentMapBuilderExtensions.set
(Supplier<? extends DataComponentType<T>> componentType, T value) -
Uses of DataComponentType in net.neoforged.neoforge.debug.capabilities
Fields in net.neoforged.neoforge.debug.capabilities with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate static final DeferredRegister
<DataComponentType<?>> ItemEnergyTests.COMPONENTS
private static final Supplier
<DataComponentType<Integer>> ItemEnergyTests.ENERGY_COMPONENT
static final DeferredHolder
<DataComponentType<?>, DataComponentType<SimpleFluidContent>> FluidTemplatesTests.SIMPLE_FLUID_CONTENT
static final DeferredHolder
<DataComponentType<?>, DataComponentType<SimpleFluidContent>> FluidTemplatesTests.SIMPLE_FLUID_CONTENT
-
Uses of DataComponentType in net.neoforged.neoforge.energy
Fields in net.neoforged.neoforge.energy declared as DataComponentTypeModifier and TypeFieldDescriptionprotected final DataComponentType
<Integer> ComponentEnergyStorage.energyComponent
Constructors in net.neoforged.neoforge.energy with parameters of type DataComponentTypeModifierConstructorDescriptionComponentEnergyStorage
(MutableDataComponentHolder parent, DataComponentType<Integer> energyComponent, int capacity) Creates a new ItemEnergyStorage with a transfer rate equivalent to the capacity.ComponentEnergyStorage
(MutableDataComponentHolder parent, DataComponentType<Integer> energyComponent, int capacity, int maxTransfer) Creates a new ItemEnergyStorage with a unified receive / extract rate.ComponentEnergyStorage
(MutableDataComponentHolder parent, DataComponentType<Integer> energyComponent, int capacity, int maxReceive, int maxExtract) Creates a new ComponentEnergyStorage with a data component as the backing store for the energy value. -
Uses of DataComponentType in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type DataComponentTypeModifier and TypeMethodDescription<T> T
FluidStack.remove
(DataComponentType<? extends T> type) Removes a data component.<T> T
FluidStack.set
(DataComponentType<? super T> type, T component) Sets a data component. -
Uses of DataComponentType in net.neoforged.neoforge.fluids.capability.templates
Fields in net.neoforged.neoforge.fluids.capability.templates with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprotected final Supplier
<DataComponentType<SimpleFluidContent>> FluidHandlerItemStack.componentType
protected final Supplier
<DataComponentType<SimpleFluidContent>> FluidHandlerItemStackSimple.componentType
Constructor parameters in net.neoforged.neoforge.fluids.capability.templates with type arguments of type DataComponentTypeModifierConstructorDescriptionConsumable
(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) Consumable
(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) FluidHandlerItemStack
(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) FluidHandlerItemStackSimple
(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) SwapEmpty
(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, ItemStack emptyContainer, int capacity) SwapEmpty
(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, ItemStack emptyContainer, int capacity) -
Uses of DataComponentType in net.neoforged.neoforge.fluids.crafting
Methods in net.neoforged.neoforge.fluids.crafting with parameters of type DataComponentTypeModifier and TypeMethodDescriptionstatic <T> FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentType<? super T> type, T value, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsMethod parameters in net.neoforged.neoforge.fluids.crafting with type arguments of type DataComponentTypeModifier and TypeMethodDescriptionstatic <T> FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, Supplier<? extends DataComponentType<? super T>> type, T value, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given components -
Uses of DataComponentType in net.neoforged.neoforge.items
Fields in net.neoforged.neoforge.items declared as DataComponentTypeModifier and TypeFieldDescriptionprotected final DataComponentType
<ItemContainerContents> ComponentItemHandler.component
Constructors in net.neoforged.neoforge.items with parameters of type DataComponentTypeModifierConstructorDescriptionComponentItemHandler
(MutableDataComponentHolder parent, DataComponentType<ItemContainerContents> component, int size) Creates a newComponentItemHandler
with target size. -
Uses of DataComponentType in net.neoforged.neoforge.oldtest
Fields in net.neoforged.neoforge.oldtest with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate static final DeferredHolder
<DataComponentType<?>, DataComponentType<Integer>> DeferredRegistryTest.COMPONENT_TYPE
private static final DeferredHolder
<DataComponentType<?>, DataComponentType<Integer>> DeferredRegistryTest.COMPONENT_TYPE
-
Uses of DataComponentType in net.neoforged.neoforge.oldtest.item
Fields in net.neoforged.neoforge.oldtest.item with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final DeferredRegister
<DataComponentType<?>> CustomFluidContainerTest.COMPONENT_TYPES
static final DeferredHolder
<DataComponentType<?>, DataComponentType<SimpleFluidContent>> CustomFluidContainerTest.SIMPLE_FLUID_CONTENT
static final DeferredHolder
<DataComponentType<?>, DataComponentType<SimpleFluidContent>> CustomFluidContainerTest.SIMPLE_FLUID_CONTENT
-
Uses of DataComponentType in net.neoforged.neoforge.registries
Methods in net.neoforged.neoforge.registries that return types with arguments of type DataComponentTypeModifier and TypeMethodDescription<D> DeferredHolder
<DataComponentType<?>, DataComponentType<D>> DeferredRegister.DataComponents.registerComponentType
(String name, UnaryOperator<DataComponentType.Builder<D>> builder) Convenience method that constructs a builder for use in the operator.<D> DeferredHolder
<DataComponentType<?>, DataComponentType<D>> DeferredRegister.DataComponents.registerComponentType
(String name, UnaryOperator<DataComponentType.Builder<D>> builder) Convenience method that constructs a builder for use in the operator.