Uses of Interface
net.minecraft.component.ComponentType
Packages that use ComponentType
Package
Description
-
Uses of ComponentType in net.minecraft.block.entity
Methods in net.minecraft.block.entity with parameters of type ComponentTypeModifier and TypeMethodDescription<T> TBlockEntity.ComponentsAccess.get(ComponentType<T> type) <T> TBlockEntity.ComponentsAccess.getOrDefault(ComponentType<? extends T> type, T fallback) -
Uses of ComponentType in net.minecraft.command.argument
Fields in net.minecraft.command.argument with type parameters of type ComponentTypeModifier and TypeFieldDescriptionprivate final RegistryWrapper.Impl<ComponentType<?>> ItemPredicateArgumentType.Context.dataComponentTypeRegistryWrapperMethods in net.minecraft.command.argument that return ComponentTypeModifier and TypeMethodDescriptionstatic ComponentType<?> ItemStringReader.Reader.readComponentType(com.mojang.brigadier.StringReader reader) Methods in net.minecraft.command.argument with parameters of type ComponentTypeModifier and TypeMethodDescriptiondefault <T> voidItemStringReader.Callbacks.onComponentAdded(ComponentType<T> type, T value) default <T> voidItemStringReader.Callbacks.onComponentRemoved(ComponentType<T> type) static <T> ItemPredicateArgumentType.ComponentCheckItemPredicateArgumentType.ComponentCheck.read(com.mojang.brigadier.ImmutableStringReader reader, Identifier id, ComponentType<T> type) private <T> voidItemStringReader.Reader.readComponentValue(ComponentType<T> type) -
Uses of ComponentType in net.minecraft.component
Classes in net.minecraft.component that implement ComponentTypeModifier and TypeClassDescriptionprivate static classFields in net.minecraft.component declared as ComponentTypeModifier and TypeFieldDescriptionstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.AMMO_USEstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.ARMOR_EFFECTIVENESSstatic final ComponentType<AttributeModifiersComponent> DataComponentTypes.ATTRIBUTE_MODIFIERSstatic final ComponentType<List<AttributeEnchantmentEffect>> EnchantmentEffectComponentTypes.ATTRIBUTESstatic final ComponentType<BannerPatternsComponent> DataComponentTypes.BANNER_PATTERNSstatic final ComponentType<DyeColor> DataComponentTypes.BASE_COLORstatic final ComponentType<List<BeehiveBlockEntity.BeeData>> DataComponentTypes.BEESstatic final ComponentType<NbtComponent> DataComponentTypes.BLOCK_ENTITY_DATAstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.BLOCK_EXPERIENCEstatic final ComponentType<BlockStateComponent> DataComponentTypes.BLOCK_STATEstatic final ComponentType<NbtComponent> DataComponentTypes.BUCKET_ENTITY_DATAstatic final ComponentType<BundleContentsComponent> DataComponentTypes.BUNDLE_CONTENTSstatic final ComponentType<BlockPredicatesChecker> DataComponentTypes.CAN_BREAKstatic final ComponentType<BlockPredicatesChecker> DataComponentTypes.CAN_PLACE_ONstatic final ComponentType<ChargedProjectilesComponent> DataComponentTypes.CHARGED_PROJECTILESstatic final ComponentType<ContainerComponent> DataComponentTypes.CONTAINERstatic final ComponentType<ContainerLootComponent> DataComponentTypes.CONTAINER_LOOTstatic final ComponentType<Unit> DataComponentTypes.CREATIVE_SLOT_LOCKstatic final ComponentType<EnchantmentValueEffect> EnchantmentEffectComponentTypes.CROSSBOW_CHARGE_TIMEstatic final ComponentType<List<CrossbowItem.LoadingSounds>> EnchantmentEffectComponentTypes.CROSSBOW_CHARGING_SOUNDSstatic final ComponentType<NbtComponent> DataComponentTypes.CUSTOM_DATAstatic final ComponentType<CustomModelDataComponent> DataComponentTypes.CUSTOM_MODEL_DATAstatic final ComponentType<Text> DataComponentTypes.CUSTOM_NAMEstatic final ComponentType<Integer> DataComponentTypes.DAMAGEstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.DAMAGEstatic final ComponentType<List<EnchantmentEffectEntry<DamageImmunityEnchantmentEffect>>> EnchantmentEffectComponentTypes.DAMAGE_IMMUNITYstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.DAMAGE_PROTECTIONstatic final ComponentType<DebugStickStateComponent> DataComponentTypes.DEBUG_STICK_STATEstatic final ComponentType<DyedColorComponent> DataComponentTypes.DYED_COLORstatic final ComponentType<Boolean> DataComponentTypes.ENCHANTMENT_GLINT_OVERRIDEstatic final ComponentType<ItemEnchantmentsComponent> DataComponentTypes.ENCHANTMENTSstatic final ComponentType<NbtComponent> DataComponentTypes.ENTITY_DATAstatic final ComponentType<List<TargetedEnchantmentEffect<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.EQUIPMENT_DROPSstatic final ComponentType<Unit> DataComponentTypes.FIRE_RESISTANTstatic final ComponentType<FireworkExplosionComponent> DataComponentTypes.FIREWORK_EXPLOSIONstatic final ComponentType<FireworksComponent> DataComponentTypes.FIREWORKSstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.FISHING_LUCK_BONUSstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.FISHING_TIME_REDUCTIONstatic final ComponentType<FoodComponent> DataComponentTypes.FOODstatic final ComponentType<Unit> DataComponentTypes.HIDE_ADDITIONAL_TOOLTIPstatic final ComponentType<Unit> DataComponentTypes.HIDE_TOOLTIPstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentEntityEffect>>> EnchantmentEffectComponentTypes.HIT_BLOCKstatic final ComponentType<RegistryEntry<Instrument>> DataComponentTypes.INSTRUMENTstatic final ComponentType<Unit> DataComponentTypes.INTANGIBLE_PROJECTILEstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.ITEM_DAMAGEstatic final ComponentType<Text> DataComponentTypes.ITEM_NAMEstatic final ComponentType<JukeboxPlayableComponent> DataComponentTypes.JUKEBOX_PLAYABLEstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.KNOCKBACKstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentLocationBasedEffect>>> EnchantmentEffectComponentTypes.LOCATION_CHANGEDstatic final ComponentType<ContainerLock> DataComponentTypes.LOCKstatic final ComponentType<LodestoneTrackerComponent> DataComponentTypes.LODESTONE_TRACKERstatic final ComponentType<LoreComponent> DataComponentTypes.LOREstatic final ComponentType<MapColorComponent> DataComponentTypes.MAP_COLORstatic final ComponentType<MapDecorationsComponent> DataComponentTypes.MAP_DECORATIONSstatic final ComponentType<MapIdComponent> DataComponentTypes.MAP_IDstatic final ComponentType<MapPostProcessingComponent> DataComponentTypes.MAP_POST_PROCESSINGstatic final ComponentType<Integer> DataComponentTypes.MAX_DAMAGEstatic final ComponentType<Integer> DataComponentTypes.MAX_STACK_SIZEstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.MOB_EXPERIENCEstatic final ComponentType<Identifier> DataComponentTypes.NOTE_BLOCK_SOUNDstatic final ComponentType<Integer> DataComponentTypes.OMINOUS_BOTTLE_AMPLIFIERstatic final ComponentType<List<TargetedEnchantmentEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponentTypes.POST_ATTACKstatic final ComponentType<Sherds> DataComponentTypes.POT_DECORATIONSstatic final ComponentType<PotionContentsComponent> DataComponentTypes.POTION_CONTENTSstatic final ComponentType<Unit> EnchantmentEffectComponentTypes.PREVENT_ARMOR_CHANGEstatic final ComponentType<Unit> EnchantmentEffectComponentTypes.PREVENT_EQUIPMENT_DROPstatic final ComponentType<ProfileComponent> DataComponentTypes.PROFILEstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.PROJECTILE_COUNTstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.PROJECTILE_PIERCINGstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentEntityEffect>>> EnchantmentEffectComponentTypes.PROJECTILE_SPAWNEDstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.PROJECTILE_SPREADstatic final ComponentType<Rarity> DataComponentTypes.RARITYstatic final ComponentType<List<Identifier>> DataComponentTypes.RECIPESstatic final ComponentType<Integer> DataComponentTypes.REPAIR_COSTstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.REPAIR_WITH_XPstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.SMASH_DAMAGE_PER_FALLEN_BLOCKstatic final ComponentType<ItemEnchantmentsComponent> DataComponentTypes.STORED_ENCHANTMENTSstatic final ComponentType<SuspiciousStewEffectsComponent> DataComponentTypes.SUSPICIOUS_STEW_EFFECTSstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentEntityEffect>>> EnchantmentEffectComponentTypes.TICKstatic final ComponentType<ToolComponent> DataComponentTypes.TOOLstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.TRIDENT_RETURN_ACCELERATIONstatic final ComponentType<List<RegistryEntry<SoundEvent>>> EnchantmentEffectComponentTypes.TRIDENT_SOUNDstatic final ComponentType<EnchantmentValueEffect> EnchantmentEffectComponentTypes.TRIDENT_SPIN_ATTACK_STRENGTHstatic final ComponentType<ArmorTrim> DataComponentTypes.TRIMprivate final ComponentType<T> Component.typeThe field for thetyperecord component.private final ComponentType<?> ComponentChanges.Type.typeThe field for thetyperecord component.static final ComponentType<UnbreakableComponent> DataComponentTypes.UNBREAKABLEstatic final ComponentType<WritableBookContentComponent> DataComponentTypes.WRITABLE_BOOK_CONTENTstatic final ComponentType<WrittenBookContentComponent> DataComponentTypes.WRITTEN_BOOK_CONTENTFields in net.minecraft.component with type parameters of type ComponentTypeModifier and TypeFieldDescription(package private) final Reference2ObjectMap<ComponentType<?>, Optional<?>> ComponentChanges.changedComponentsprivate Reference2ObjectMap<ComponentType<?>, Optional<?>> ComponentMapImpl.changedComponentsprivate final Reference2ObjectMap<ComponentType<?>, Optional<?>> ComponentChanges.Builder.changesstatic final com.mojang.serialization.Codec<ComponentType<?>> ComponentType.CODECstatic final com.mojang.serialization.Codec<ComponentType<?>> EnchantmentEffectComponentTypes.COMPONENT_TYPE_CODECprivate final Reference2ObjectMap<ComponentType<?>, Object> ComponentMap.Builder.componentsprivate final Reference2ObjectMap<ComponentType<?>, Object> ComponentMap.Builder.SimpleComponentMap.mapThe field for themaprecord component.static final PacketCodec<RegistryByteBuf, ComponentType<?>> ComponentType.PACKET_CODECstatic final com.mojang.serialization.Codec<ComponentType<?>> ComponentType.PERSISTENT_CODECprivate final Set<ComponentType<?>> ComponentChanges.AddedRemovedPair.removedThe field for theremovedrecord component.static final com.mojang.serialization.Codec<Map<ComponentType<?>, Object>> ComponentType.TYPE_TO_VALUE_MAP_CODECMethods in net.minecraft.component that return ComponentTypeModifier and TypeMethodDescriptionComponentType.Builder.build()static ComponentType<?> DataComponentTypes.getDefault(Registry<ComponentType<?>> registry) static ComponentType<?> EnchantmentEffectComponentTypes.getDefault(Registry<ComponentType<?>> registry) private static <T> ComponentType<T> DataComponentTypes.register(String id, UnaryOperator<ComponentType.Builder<T>> builderOperator) private static <T> ComponentType<T> EnchantmentEffectComponentTypes.register(String id, UnaryOperator<ComponentType.Builder<T>> builderOperator) Component.type()Returns the value of thetyperecord component.ComponentChanges.Type.type()Returns the value of thetyperecord component.Methods in net.minecraft.component that return types with arguments of type ComponentTypeModifier and TypeMethodDescriptionSet<Map.Entry<ComponentType<?>, Optional<?>>> ComponentChanges.entrySet()Set<ComponentType<?>> ComponentMap.Builder.SimpleComponentMap.getTypes()Set<ComponentType<?>> ComponentMap.getTypes()Set<ComponentType<?>> ComponentMapImpl.getTypes()ComponentMap.Builder.SimpleComponentMap.map()Returns the value of themaprecord component.Set<ComponentType<?>> ComponentChanges.AddedRemovedPair.removed()Returns the value of theremovedrecord component.Methods in net.minecraft.component with parameters of type ComponentTypeModifier and TypeMethodDescriptionComponentChanges.Builder.add(ComponentType<T> type, T value) ComponentMap.Builder.add(ComponentType<T> type, T value) private voidComponentMapImpl.applyChange(ComponentType<?> type, Optional<?> optional) default booleanComponentHolder.contains(ComponentType<?> type) Returns whether the held components includetype.booleanComponentMap.Builder.SimpleComponentMap.contains(ComponentType<?> type) default booleanComponentMap.contains(ComponentType<?> type) ComponentMap.copy(ComponentType<T> type) ComponentChanges.get(ComponentType<? extends T> type) default <T> TComponentHolder.get(ComponentType<? extends T> type) Returns the value for the componenttype, ornullif the component is missing.<T> TComponentMap.Builder.SimpleComponentMap.get(ComponentType<? extends T> type) <T> TComponentMap.get(ComponentType<? extends T> type) <T> TComponentMapImpl.get(ComponentType<? extends T> type) default <T> TComponentHolder.getOrDefault(ComponentType<? extends T> type, T fallback) Returns the value for the componenttype, orfallbackif the component is missing.default <T> TComponentMap.getOrDefault(ComponentType<? extends T> type, T fallback) static <T> Component<T> Component.of(ComponentType<T> type, Object value) (package private) <T> voidComponentMap.Builder.put(ComponentType<T> type, @Nullable Object value) ComponentChanges.Builder.remove(ComponentType<T> type) <T> TComponentMapImpl.remove(ComponentType<? extends T> type) <T> TComponentMapImpl.set(ComponentType<? super T> type, T value) Method parameters in net.minecraft.component with type arguments of type ComponentTypeModifier and TypeMethodDescriptionprivate static ComponentMapComponentMap.Builder.build(Map<ComponentType<?>, Object> components) static com.mojang.serialization.Codec<ComponentMap> ComponentMap.createCodec(com.mojang.serialization.Codec<ComponentType<?>> componentTypeCodec) static com.mojang.serialization.Codec<ComponentMap> ComponentMap.createCodecFromValueMap(com.mojang.serialization.Codec<Map<ComponentType<?>, Object>> typeToValueMapCodec) default ComponentMapComponentMap.filtered(Predicate<ComponentType<?>> predicate) static ComponentType<?> DataComponentTypes.getDefault(Registry<ComponentType<?>> registry) static ComponentType<?> EnchantmentEffectComponentTypes.getDefault(Registry<ComponentType<?>> registry) (package private) static Component<?> Component.of(Map.Entry<ComponentType<?>, Object> entry) private static booleanComponentMapImpl.shouldReuseChangesMap(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents) (package private) static StringComponentChanges.toString(Reference2ObjectMap<ComponentType<?>, Optional<?>> changes) ComponentChanges.withRemovedIf(Predicate<ComponentType<?>> removedTypePredicate) Constructors in net.minecraft.component with parameters of type ComponentTypeModifierConstructorDescriptionComponent(ComponentType<T> componentType, T t) (package private)Type(ComponentType<?> componentType, boolean bool) Constructor parameters in net.minecraft.component with type arguments of type ComponentTypeModifierConstructorDescriptionAddedRemovedPair(ComponentMap componentMap, Set<ComponentType<?>> set) (package private)ComponentChanges(Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents) privateComponentMapImpl(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) (package private)SimpleComponentMap(Reference2ObjectMap<ComponentType<?>, Object> reference2ObjectMap) -
Uses of ComponentType in net.minecraft.component.type
Methods in net.minecraft.component.type with parameters of type ComponentTypeModifier and TypeMethodDescriptionNbtComponent.createPredicate(ComponentType<NbtComponent> type, NbtCompound nbt) static voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) -
Uses of ComponentType in net.minecraft.enchantment
Fields in net.minecraft.enchantment with type parameters of type ComponentTypeModifier and TypeFieldDescriptionprivate final Map<ComponentType<?>, List<?>> Enchantment.Builder.effectListsMethods in net.minecraft.enchantment that return ComponentTypeModifier and TypeMethodDescriptionprivate static ComponentType<ItemEnchantmentsComponent> EnchantmentHelper.getEnchantmentsComponentType(ItemStack stack) Methods in net.minecraft.enchantment with parameters of type ComponentTypeModifier and TypeMethodDescriptionEnchantment.Builder.addEffect(ComponentType<List<AttributeEnchantmentEffect>> type, AttributeEnchantmentEffect effect) Enchantment.Builder.addEffect(ComponentType<List<EnchantmentEffectEntry<E>>> effectType, E effect) Enchantment.Builder.addEffect(ComponentType<List<EnchantmentEffectEntry<E>>> effectType, E effect, LootCondition.Builder requirements) Enchantment.Builder.addEffect(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect) Enchantment.Builder.addEffect(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect, LootCondition.Builder requirements) Enchantment.Builder.addEffect(ComponentType<Unit> type) Enchantment.Builder.addNonListEffect(ComponentType<E> type, E effect) static Optional<EnchantmentEffectContext> EnchantmentHelper.chooseEquipmentWith(ComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> stackPredicate) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.<T> List<T> Enchantment.getEffect(ComponentType<List<T>> type) static <T> Optional<T> EnchantmentHelper.getEffect(ItemStack stack, ComponentType<List<T>> componentType) EnchantmentHelper.getEffectListAndLevel(ItemStack stack, ComponentType<T> componentType) private <E> List<E> Enchantment.Builder.getEffectsList(ComponentType<List<E>> type) static booleanEnchantmentHelper.hasAnyEnchantmentsWith(ItemStack stack, ComponentType<?> componentType) private voidEnchantment.modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat value) private voidEnchantment.modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat value) private voidEnchantment.modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, MutableFloat value) voidEnchantment.modifyValue(ComponentType<EnchantmentValueEffect> type, Random random, int level, MutableFloat value) -
Uses of ComponentType in net.minecraft.item
Methods in net.minecraft.item with parameters of type ComponentTypeModifier and TypeMethodDescriptionprivate <T extends TooltipAppender>
voidItemStack.appendTooltip(ComponentType<T> componentType, Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type) <T> TItemStack.apply(ComponentType<T> type, T defaultValue, UnaryOperator<T> applier) Sets the componenttypeby passing the current value (ordefaultValueif the component is missing) toapplierand then setting its return value as the value.<T,U> T ItemStack.apply(ComponentType<T> type, T defaultValue, U change, BiFunction<T, U, T> applier) Sets the componenttypeby passing the current value andchangetoapplier, then setting its return value as the value.<T> Item.SettingsItem.Settings.component(ComponentType<T> type, T value) <T> TItemStack.remove(ComponentType<? extends T> type) Removes the componenttype.<T> TItemStack.set(ComponentType<? super T> type, T value) Sets the componenttypefor this item stack tovalue. -
Uses of ComponentType in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type ComponentTypeModifier and TypeFieldDescriptionstatic final Map<ComponentType<?>, ContainerComponentModifier<?>> ContainerComponentModifiers.TYPE_TO_MODIFIERMethods in net.minecraft.loot that return ComponentType -
Uses of ComponentType in net.minecraft.loot.function
Fields in net.minecraft.loot.function declared as ComponentTypeModifier and TypeFieldDescriptionprivate final ComponentType<T> ToggleTooltipsLootFunction.Toggle.typeThe field for thetyperecord component.Fields in net.minecraft.loot.function with type parameters of type ComponentTypeModifier and TypeFieldDescriptionprivate Optional<ImmutableList.Builder<ComponentType<?>>> CopyComponentsLootFunction.Builder.excludeprivate final Optional<List<ComponentType<?>>> CopyComponentsLootFunction.excludeprivate final Predicate<ComponentType<?>> CopyComponentsLootFunction.filterprivate Optional<ImmutableList.Builder<ComponentType<?>>> CopyComponentsLootFunction.Builder.includeprivate final Optional<List<ComponentType<?>>> CopyComponentsLootFunction.includeprivate static final Map<ComponentType<?>, ToggleTooltipsLootFunction.Toggle<?>> ToggleTooltipsLootFunction.TOGGLESMethods in net.minecraft.loot.function that return ComponentTypeModifier and TypeMethodDescriptionSetNameLootFunction.Target.getComponentType()ToggleTooltipsLootFunction.Toggle.type()Returns the value of thetyperecord component.Methods in net.minecraft.loot.function with parameters of type ComponentTypeModifier and TypeMethodDescriptionstatic <T> ConditionalLootFunction.Builder<?> SetComponentsLootFunction.builder(ComponentType<T> componentType, T value) CopyComponentsLootFunction.Builder.exclude(ComponentType<?> type) CopyComponentsLootFunction.Builder.include(ComponentType<?> type) Constructors in net.minecraft.loot.function with parameters of type ComponentTypeModifierConstructorDescription(package private)Toggle(ComponentType<T> componentType, ToggleTooltipsLootFunction.TooltipSetter<T> tooltipSetter) Constructor parameters in net.minecraft.loot.function with type arguments of type ComponentTypeModifierConstructorDescription(package private)CopyComponentsLootFunction(List<LootCondition> conditions, CopyComponentsLootFunction.Source source, Optional<List<ComponentType<?>>> include, Optional<List<ComponentType<?>>> exclude) -
Uses of ComponentType in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type ComponentTypeModifier and TypeMethodDescriptionComponentPredicate.Builder.add(ComponentType<? super T> type, T value) -
Uses of ComponentType in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item that return ComponentTypeModifier and TypeMethodDescriptionAttributeModifiersPredicate.getComponentType()BundleContentsPredicate.getComponentType()ComponentSubPredicate.getComponentType()ContainerPredicate.getComponentType()DamagePredicate.getComponentType()EnchantmentsPredicate.Enchantments.getComponentType()EnchantmentsPredicate.StoredEnchantments.getComponentType()FireworkExplosionPredicate.getComponentType()FireworksPredicate.getComponentType()JukeboxPlayablePredicate.getComponentType()PotionContentsPredicate.getComponentType()TrimPredicate.getComponentType()WritableBookContentPredicate.getComponentType()WrittenBookContentPredicate.getComponentType() -
Uses of ComponentType in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type ComponentTypeModifier and TypeFieldDescriptionstatic final Registry<ComponentType<?>> Registries.DATA_COMPONENT_TYPEstatic final RegistryKey<Registry<ComponentType<?>>> RegistryKeys.DATA_COMPONENT_TYPEstatic final Registry<ComponentType<?>> Registries.ENCHANTMENT_EFFECT_COMPONENT_TYPEstatic final RegistryKey<Registry<ComponentType<?>>> RegistryKeys.ENCHANTMENT_EFFECT_COMPONENT_TYPE