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.componentsMethods 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.ComponentWrapperItemPredicateArgument.ComponentWrapper.create(com.mojang.brigadier.ImmutableStringReader p_335592_, ResourceLocation p_335737_, DataComponentType<T> p_335860_) private <T> voidItemParser.State.readComponent(DataComponentType<T> p_335594_) default <T> voidItemParser.Visitor.visitComponent(DataComponentType<T> p_336083_, T p_335499_) default <T> voidItemParser.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 classFields in net.minecraft.core.component declared as DataComponentTypeModifier and TypeFieldDescriptionstatic final DataComponentType<ItemAttributeModifiers> DataComponents.ATTRIBUTE_MODIFIERSstatic final DataComponentType<BannerPatternLayers> DataComponents.BANNER_PATTERNSstatic final DataComponentType<DyeColor> DataComponents.BASE_COLORstatic final DataComponentType<List<BeehiveBlockEntity.Occupant>> DataComponents.BEESstatic final DataComponentType<CustomData> DataComponents.BLOCK_ENTITY_DATAstatic final DataComponentType<BlockItemStateProperties> DataComponents.BLOCK_STATEstatic final DataComponentType<CustomData> DataComponents.BUCKET_ENTITY_DATAstatic final DataComponentType<BundleContents> DataComponents.BUNDLE_CONTENTSstatic final DataComponentType<AdventureModePredicate> DataComponents.CAN_BREAKstatic final DataComponentType<AdventureModePredicate> DataComponents.CAN_PLACE_ONstatic final DataComponentType<ChargedProjectiles> DataComponents.CHARGED_PROJECTILESstatic final DataComponentType<ItemContainerContents> DataComponents.CONTAINERstatic final DataComponentType<SeededContainerLoot> DataComponents.CONTAINER_LOOTstatic final DataComponentType<Unit> DataComponents.CREATIVE_SLOT_LOCKstatic final DataComponentType<CustomData> DataComponents.CUSTOM_DATAstatic final DataComponentType<CustomModelData> DataComponents.CUSTOM_MODEL_DATAstatic final DataComponentType<Component> DataComponents.CUSTOM_NAMEstatic final DataComponentType<Integer> DataComponents.DAMAGEstatic final DataComponentType<DebugStickState> DataComponents.DEBUG_STICK_STATEstatic final DataComponentType<DyedItemColor> DataComponents.DYED_COLORstatic final DataComponentType<Boolean> DataComponents.ENCHANTMENT_GLINT_OVERRIDEstatic final DataComponentType<ItemEnchantments> DataComponents.ENCHANTMENTSstatic final DataComponentType<CustomData> DataComponents.ENTITY_DATAstatic final DataComponentType<Unit> DataComponents.FIRE_RESISTANTstatic final DataComponentType<FireworkExplosion> DataComponents.FIREWORK_EXPLOSIONstatic final DataComponentType<Fireworks> DataComponents.FIREWORKSstatic final DataComponentType<FoodProperties> DataComponents.FOODstatic final DataComponentType<Unit> DataComponents.HIDE_ADDITIONAL_TOOLTIPstatic final DataComponentType<Unit> DataComponents.HIDE_TOOLTIPstatic final DataComponentType<Holder<Instrument>> DataComponents.INSTRUMENTstatic final DataComponentType<Unit> DataComponents.INTANGIBLE_PROJECTILEstatic final DataComponentType<Component> DataComponents.ITEM_NAMEstatic final DataComponentType<JukeboxPlayable> DataComponents.JUKEBOX_PLAYABLEstatic final DataComponentType<LockCode> DataComponents.LOCKstatic final DataComponentType<LodestoneTracker> DataComponents.LODESTONE_TRACKERstatic final DataComponentType<ItemLore> DataComponents.LOREstatic final DataComponentType<MapItemColor> DataComponents.MAP_COLORstatic final DataComponentType<MapDecorations> DataComponents.MAP_DECORATIONSstatic final DataComponentType<MapId> DataComponents.MAP_IDstatic final DataComponentType<MapPostProcessing> DataComponents.MAP_POST_PROCESSINGstatic final DataComponentType<Integer> DataComponents.MAX_DAMAGEstatic final DataComponentType<Integer> DataComponents.MAX_STACK_SIZEstatic final DataComponentType<ResourceLocation> DataComponents.NOTE_BLOCK_SOUNDstatic final DataComponentType<Integer> DataComponents.OMINOUS_BOTTLE_AMPLIFIERstatic final DataComponentType<PotDecorations> DataComponents.POT_DECORATIONSstatic final DataComponentType<PotionContents> DataComponents.POTION_CONTENTSstatic final DataComponentType<ResolvableProfile> DataComponents.PROFILEstatic final DataComponentType<Rarity> DataComponents.RARITYstatic final DataComponentType<List<ResourceLocation>> DataComponents.RECIPESstatic final DataComponentType<Integer> DataComponents.REPAIR_COSTstatic final DataComponentType<ItemEnchantments> DataComponents.STORED_ENCHANTMENTSstatic final DataComponentType<SuspiciousStewEffects> DataComponents.SUSPICIOUS_STEW_EFFECTSstatic final DataComponentType<Tool> DataComponents.TOOLstatic final DataComponentType<ArmorTrim> DataComponents.TRIMprivate final DataComponentType<?> DataComponentPatch.PatchKey.typeThe field for thetyperecord component.private final DataComponentType<T> TypedDataComponent.typeThe field for thetyperecord component.static final DataComponentType<Unbreakable> DataComponents.UNBREAKABLEstatic final DataComponentType<WritableBookContent> DataComponents.WRITABLE_BOOK_CONTENTstatic final DataComponentType<WrittenBookContent> DataComponents.WRITTEN_BOOK_CONTENTFields in net.minecraft.core.component with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DataComponentType<?>> DataComponentType.CODECprivate final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Object> DataComponentMap.Builder.mapprivate final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Object> DataComponentMap.Builder.SimpleMap.mapThe field for themaprecord 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.mapprivate it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> PatchedDataComponentMap.patchstatic final com.mojang.serialization.Codec<DataComponentType<?>> DataComponentType.PERSISTENT_CODECprivate final Set<DataComponentType<?>> DataComponentPatch.SplitResult.removedThe field for theremovedrecord component.static final StreamCodec<RegistryFriendlyByteBuf, DataComponentType<?>> DataComponentType.STREAM_CODECstatic final com.mojang.serialization.Codec<Map<DataComponentType<?>, Object>> DataComponentType.VALUE_MAP_CODECMethods 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 thetyperecord component.TypedDataComponent.type()Returns the value of thetyperecord 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 themaprecord component.Set<DataComponentType<?>> DataComponentPatch.SplitResult.removed()Returns the value of theremovedrecord component.Methods in net.minecraft.core.component with parameters of type DataComponentTypeModifier and TypeMethodDescriptionprivate voidPatchedDataComponentMap.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> TDataComponentHolder.get(DataComponentType<? extends T> p_331625_) <T> TDataComponentMap.Builder.SimpleMap.get(DataComponentType<? extends T> p_331063_) <T> TDataComponentMap.get(DataComponentType<? extends T> p_331815_) <T> Optional<? extends T> DataComponentPatch.get(DataComponentType<? extends T> p_331532_) <T> TPatchedDataComponentMap.get(DataComponentType<? extends T> p_331587_) default <T> TDataComponentHolder.getOrDefault(DataComponentType<? extends T> p_331643_, T p_330718_) default <T> TDataComponentMap.getOrDefault(DataComponentType<? extends T> p_331896_, T p_331597_) default <T> TypedDataComponent<T> DataComponentMap.getTyped(DataComponentType<T> p_330594_) default booleanDataComponentHolder.has(DataComponentType<?> p_330779_) booleanDataComponentMap.Builder.SimpleMap.has(DataComponentType<?> p_331343_) default booleanDataComponentMap.has(DataComponentType<?> p_330409_) DataComponentPatch.Builder.remove(DataComponentType<T> p_330845_) <T> TPatchedDataComponentMap.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> TPatchedDataComponentMap.set(DataComponentType<? super T> p_330791_, T p_330369_) (package private) <T> voidDataComponentMap.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 DataComponentMapDataComponentMap.Builder.buildFromMapTrusted(Map<DataComponentType<?>, Object> p_338248_) default DataComponentMapDataComponentMap.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 booleanPatchedDataComponentMap.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 StringDataComponentPatch.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 aPatchKeyrecord class.TypedDataComponent(DataComponentType<T> type, T value) Creates an instance of aTypedDataComponentrecord 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_) privatePatchedDataComponentMap(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 aSimpleMaprecord class.SplitResult(DataComponentMap added, Set<DataComponentType<?>> removed) Creates an instance of aSplitResultrecord 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_TYPEstatic final ResourceKey<Registry<DataComponentType<?>>> Registries.DATA_COMPONENT_TYPEstatic final Registry<DataComponentType<?>> BuiltInRegistries.ENCHANTMENT_EFFECT_COMPONENT_TYPEstatic 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.PropertiesItem.Properties.component(DataComponentType<T> p_330871_, T p_330323_) <T> TItemStack.remove(DataComponentType<? extends T> p_332139_) <T> TItemStack.set(DataComponentType<? super T> p_331064_, T p_330775_) <T> TItemStack.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 voidCustomData.set(DataComponentType<CustomData> p_330462_, ItemStack p_332015_, CompoundTag p_331019_) static voidCustomData.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_USEstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.ARMOR_EFFECTIVENESSstatic final DataComponentType<List<EnchantmentAttributeEffect>> EnchantmentEffectComponents.ATTRIBUTESstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.BLOCK_EXPERIENCEstatic final DataComponentType<EnchantmentValueEffect> EnchantmentEffectComponents.CROSSBOW_CHARGE_TIMEstatic final DataComponentType<List<CrossbowItem.ChargingSounds>> EnchantmentEffectComponents.CROSSBOW_CHARGING_SOUNDSstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.DAMAGEstatic final DataComponentType<List<ConditionalEffect<DamageImmunity>>> EnchantmentEffectComponents.DAMAGE_IMMUNITYstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.DAMAGE_PROTECTIONstatic final DataComponentType<List<TargetedConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.EQUIPMENT_DROPSstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.FISHING_LUCK_BONUSstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.FISHING_TIME_REDUCTIONstatic final DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.HIT_BLOCKstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.ITEM_DAMAGEstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.KNOCKBACKstatic final DataComponentType<List<ConditionalEffect<EnchantmentLocationBasedEffect>>> EnchantmentEffectComponents.LOCATION_CHANGEDstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.MOB_EXPERIENCEstatic final DataComponentType<List<TargetedConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.POST_ATTACKstatic final DataComponentType<Unit> EnchantmentEffectComponents.PREVENT_ARMOR_CHANGEstatic final DataComponentType<Unit> EnchantmentEffectComponents.PREVENT_EQUIPMENT_DROPstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_COUNTstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_PIERCINGstatic final DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.PROJECTILE_SPAWNEDstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_SPREADstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.REPAIR_WITH_XPstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.SMASH_DAMAGE_PER_FALLEN_BLOCKstatic final DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.TICKstatic final DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.TRIDENT_RETURN_ACCELERATIONstatic final DataComponentType<List<Holder<SoundEvent>>> EnchantmentEffectComponents.TRIDENT_SOUNDstatic final DataComponentType<EnchantmentValueEffect> EnchantmentEffectComponents.TRIDENT_SPIN_ATTACK_STRENGTHFields in net.minecraft.world.item.enchantment with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DataComponentType<?>> EnchantmentEffectComponents.COMPONENT_CODECprivate final Map<DataComponentType<?>, List<?>> Enchantment.Builder.effectListsMethods 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 booleanEnchantmentHelper.has(ItemStack p_345474_, DataComponentType<?> p_344897_) private voidEnchantment.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 voidEnchantment.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 voidEnchantment.modifyItemFilteredCount(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345794_, ServerLevel p_345992_, int p_345038_, ItemStack p_345886_, org.apache.commons.lang3.mutable.MutableFloat p_345188_) voidEnchantment.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> TBlockEntity.DataComponentInput.get(DataComponentType<T> p_338658_) <T> TBlockEntity.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> TBlockEntity.DataComponentInput.get(Supplier<? extends DataComponentType<T>> componentType) default <T> TBlockEntity.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_MANIPULATORSMethods 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.typeThe field for thetyperecord component.Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate final Predicate<DataComponentType<?>> CopyComponentsFunction.bakedPredicateprivate Optional<com.google.common.collect.ImmutableList.Builder<DataComponentType<?>>> CopyComponentsFunction.Builder.excludeprivate final Optional<List<DataComponentType<?>>> CopyComponentsFunction.excludeprivate Optional<com.google.common.collect.ImmutableList.Builder<DataComponentType<?>>> CopyComponentsFunction.Builder.includeprivate final Optional<List<DataComponentType<?>>> CopyComponentsFunction.includeprivate static final Map<DataComponentType<?>, ToggleTooltips.ComponentToggle<?>> ToggleTooltips.TOGGLESMethods in net.minecraft.world.level.storage.loot.functions that return DataComponentTypeModifier and TypeMethodDescriptionSetNameFunction.Target.component()ToggleTooltips.ComponentToggle.type()Returns the value of thetyperecord 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 aComponentTogglerecord 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 voidMutableDataComponentHolder.copyFrom(DataComponentHolder src, DataComponentType<?>... componentTypes) Copies all data components fromsrcprivate <T> voidMutableDataComponentHolder.copyFrom(DataComponentType<T> componentType, DataComponentHolder src) <T> TMutableDataComponentHolder.remove(DataComponentType<? extends T> componentType) Removes a data component.<T> TMutableDataComponentHolder.set(DataComponentType<? super T> componentType, T value) Sets a data component.default <T> TMutableDataComponentHolder.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> TMutableDataComponentHolder.remove(Supplier<? extends DataComponentType<? extends T>> componentType) Removes a data component.default <T> TMutableDataComponentHolder.set(Supplier<? extends DataComponentType<? super T>> componentType, T value) Sets a data component.default <T> TMutableDataComponentHolder.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> IngredientDataComponentIngredient.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> IngredientDataComponentIngredient.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.PropertiesIItemPropertiesExtensions.component(Supplier<? extends DataComponentType<T>> componentType, T value) default <T> TIDataComponentHolderExtension.get(Supplier<? extends DataComponentType<? extends T>> type) default <T> TIDataComponentHolderExtension.getOrDefault(Supplier<? extends DataComponentType<? extends T>> type, T defaultValue) default booleanIDataComponentHolderExtension.has(Supplier<? extends DataComponentType<?>> type) default <T> DataComponentMap.BuilderIDataComponentMapBuilderExtensions.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.COMPONENTSprivate static final Supplier<DataComponentType<Integer>> ItemEnergyTests.ENERGY_COMPONENTstatic final DeferredHolder<DataComponentType<?>, DataComponentType<SimpleFluidContent>> FluidTemplatesTests.SIMPLE_FLUID_CONTENTstatic 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.energyComponentConstructors 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> TFluidStack.remove(DataComponentType<? extends T> type) Removes a data component.<T> TFluidStack.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.componentTypeprotected final Supplier<DataComponentType<SimpleFluidContent>> FluidHandlerItemStackSimple.componentTypeConstructor 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> FluidIngredientDataComponentFluidIngredient.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> FluidIngredientDataComponentFluidIngredient.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.componentConstructors in net.neoforged.neoforge.items with parameters of type DataComponentTypeModifierConstructorDescriptionComponentItemHandler(MutableDataComponentHolder parent, DataComponentType<ItemContainerContents> component, int size) Creates a newComponentItemHandlerwith 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_TYPEprivate 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_TYPESstatic final DeferredHolder<DataComponentType<?>, DataComponentType<SimpleFluidContent>> CustomFluidContainerTest.SIMPLE_FLUID_CONTENTstatic 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.