Uses of Interface
net.minecraft.component.ComponentType
Packages that use ComponentType
Package
Description
-
Uses of ComponentType in net.minecraft.client.data
Methods in net.minecraft.client.data with parameters of type ComponentTypeModifier and TypeMethodDescriptionstatic BooleanPropertyItemModels.hasComponentProperty(ComponentType<?> component) -
Uses of ComponentType in net.minecraft.client.render.item.property.bool
Fields in net.minecraft.client.render.item.property.bool declared as ComponentTypeModifier and TypeFieldDescriptionprivate final ComponentType<?> HasComponentProperty.componentTypeThe field for thecomponentTyperecord component.Methods in net.minecraft.client.render.item.property.bool that return ComponentTypeModifier and TypeMethodDescriptionHasComponentProperty.componentType()Returns the value of thecomponentTyperecord component.Constructors in net.minecraft.client.render.item.property.bool with parameters of type ComponentType -
Uses of ComponentType in net.minecraft.client.render.item.property.select
Fields in net.minecraft.client.render.item.property.select declared as ComponentTypeModifier and TypeFieldDescriptionprivate final ComponentType<T> ComponentSelectProperty.componentTypeThe field for thecomponentTyperecord component.Methods in net.minecraft.client.render.item.property.select that return ComponentTypeModifier and TypeMethodDescriptionComponentSelectProperty.componentType()Returns the value of thecomponentTyperecord component.Constructors in net.minecraft.client.render.item.property.select with parameters of type ComponentTypeModifierConstructorDescriptionComponentSelectProperty(ComponentType<T> componentType) Creates an instance of aComponentSelectPropertyrecord class. -
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,O> void ItemStringReader.Reader.readComponentValue(StringNbtReader<O> snbtReader, RegistryOps<O> ops, 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<AxolotlEntity.Variant> DataComponentTypes.AXOLOTL_VARIANTstatic final ComponentType<BannerPatternsComponent> DataComponentTypes.BANNER_PATTERNSstatic final ComponentType<DyeColor> DataComponentTypes.BASE_COLORstatic final ComponentType<BeesComponent> 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<BlocksAttacksComponent> DataComponentTypes.BLOCKS_ATTACKSstatic final ComponentType<RegistryEntry<SoundEvent>> DataComponentTypes.BREAK_SOUNDstatic 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<DyeColor> DataComponentTypes.CAT_COLLARstatic final ComponentType<RegistryEntry<CatVariant>> DataComponentTypes.CAT_VARIANTstatic final ComponentType<ChargedProjectilesComponent> DataComponentTypes.CHARGED_PROJECTILESstatic final ComponentType<LazyRegistryEntryReference<ChickenVariant>> DataComponentTypes.CHICKEN_VARIANTstatic final ComponentType<ConsumableComponent> DataComponentTypes.CONSUMABLEstatic final ComponentType<ContainerComponent> DataComponentTypes.CONTAINERstatic final ComponentType<ContainerLootComponent> DataComponentTypes.CONTAINER_LOOTstatic final ComponentType<RegistryEntry<CowVariant>> DataComponentTypes.COW_VARIANTstatic 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<DamageResistantComponent> DataComponentTypes.DAMAGE_RESISTANTstatic final ComponentType<DeathProtectionComponent> DataComponentTypes.DEATH_PROTECTIONstatic final ComponentType<DebugStickStateComponent> DataComponentTypes.DEBUG_STICK_STATEstatic final ComponentType<DyedColorComponent> DataComponentTypes.DYED_COLORstatic final ComponentType<EnchantableComponent> DataComponentTypes.ENCHANTABLEstatic 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<EquippableComponent> DataComponentTypes.EQUIPPABLEstatic 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<FoxEntity.Variant> DataComponentTypes.FOX_VARIANTstatic final ComponentType<RegistryEntry<FrogVariant>> DataComponentTypes.FROG_VARIANTstatic final ComponentType<Unit> DataComponentTypes.GLIDERstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentEntityEffect>>> EnchantmentEffectComponentTypes.HIT_BLOCKstatic final ComponentType<HorseColor> DataComponentTypes.HORSE_VARIANTstatic final ComponentType<InstrumentComponent> DataComponentTypes.INSTRUMENTstatic final ComponentType<Unit> DataComponentTypes.INTANGIBLE_PROJECTILEstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.ITEM_DAMAGEstatic final ComponentType<Identifier> DataComponentTypes.ITEM_MODELstatic final ComponentType<Text> DataComponentTypes.ITEM_NAMEstatic final ComponentType<JukeboxPlayableComponent> DataComponentTypes.JUKEBOX_PLAYABLEstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.KNOCKBACKstatic final ComponentType<LlamaEntity.Variant> DataComponentTypes.LLAMA_VARIANTstatic 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<MooshroomEntity.Variant> DataComponentTypes.MOOSHROOM_VARIANTstatic final ComponentType<Identifier> DataComponentTypes.NOTE_BLOCK_SOUNDstatic final ComponentType<OminousBottleAmplifierComponent> DataComponentTypes.OMINOUS_BOTTLE_AMPLIFIERstatic final ComponentType<RegistryEntry<PaintingVariant>> DataComponentTypes.PAINTING_VARIANTstatic final ComponentType<ParrotEntity.Variant> DataComponentTypes.PARROT_VARIANTstatic final ComponentType<RegistryEntry<PigVariant>> DataComponentTypes.PIG_VARIANTstatic final ComponentType<List<TargetedEnchantmentEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponentTypes.POST_ATTACKstatic final ComponentType<Sherds> DataComponentTypes.POT_DECORATIONSstatic final ComponentType<PotionContentsComponent> DataComponentTypes.POTION_CONTENTSstatic final ComponentType<Float> DataComponentTypes.POTION_DURATION_SCALEstatic 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<TagKey<BannerPattern>> DataComponentTypes.PROVIDES_BANNER_PATTERNSstatic final ComponentType<ProvidesTrimMaterialComponent> DataComponentTypes.PROVIDES_TRIM_MATERIALstatic final ComponentType<RabbitEntity.Variant> DataComponentTypes.RABBIT_VARIANTstatic final ComponentType<Rarity> DataComponentTypes.RARITYstatic final ComponentType<List<RegistryKey<Recipe<?>>>> DataComponentTypes.RECIPESstatic final ComponentType<Integer> DataComponentTypes.REPAIR_COSTstatic final ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> EnchantmentEffectComponentTypes.REPAIR_WITH_XPstatic final ComponentType<RepairableComponent> DataComponentTypes.REPAIRABLEstatic final ComponentType<SalmonEntity.Variant> DataComponentTypes.SALMON_SIZEstatic final ComponentType<DyeColor> DataComponentTypes.SHEEP_COLORstatic final ComponentType<DyeColor> DataComponentTypes.SHULKER_COLORstatic 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<TooltipDisplayComponent> DataComponentTypes.TOOLTIP_DISPLAYstatic final ComponentType<Identifier> DataComponentTypes.TOOLTIP_STYLEstatic 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.TRIMstatic final ComponentType<DyeColor> DataComponentTypes.TROPICAL_FISH_BASE_COLORstatic final ComponentType<TropicalFishEntity.Pattern> DataComponentTypes.TROPICAL_FISH_PATTERNstatic final ComponentType<DyeColor> DataComponentTypes.TROPICAL_FISH_PATTERN_COLORprivate final ComponentType<T> Component.typeThe field for thetyperecord component.private final ComponentType<?> ComponentChanges.Type.typeThe field for thetyperecord component.static final ComponentType<Unit> DataComponentTypes.UNBREAKABLEstatic final ComponentType<UseCooldownComponent> DataComponentTypes.USE_COOLDOWNstatic final ComponentType<UseRemainderComponent> DataComponentTypes.USE_REMAINDERstatic final ComponentType<RegistryEntry<VillagerType>> DataComponentTypes.VILLAGER_VARIANTstatic final ComponentType<WeaponComponent> DataComponentTypes.WEAPONstatic final ComponentType<DyeColor> DataComponentTypes.WOLF_COLLARstatic final ComponentType<RegistryEntry<WolfSoundVariant>> DataComponentTypes.WOLF_SOUND_VARIANTstatic final ComponentType<RegistryEntry<WolfVariant>> DataComponentTypes.WOLF_VARIANTstatic 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<?>> MergedComponentMap.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<?>> MergedComponentMap.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) <T> PacketCodec<? super RegistryByteBuf, T> ComponentChanges.PacketCodecFunction.apply(ComponentType<T> type) private voidMergedComponentMap.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) ComponentChanges.get(ComponentType<? extends T> type) default <T> TComponentHolder.get(ComponentType<? extends T> type) <T> TComponentMap.Builder.SimpleComponentMap.get(ComponentType<? extends T> type) <T> TComponentsAccess.get(ComponentType<? extends T> type) <T> TMergedComponentMap.get(ComponentType<? extends T> type) default <T> TComponentHolder.getOrDefault(ComponentType<? extends T> type, T fallback) default <T> TComponentsAccess.getOrDefault(ComponentType<? extends T> type, T fallback) ComponentsAccess.getTyped(ComponentType<T> type) booleanMergedComponentMap.hasChanged(ComponentType<?> type) 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> TMergedComponentMap.remove(ComponentType<? extends T> type) <T> TMergedComponentMap.set(ComponentType<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 booleanMergedComponentMap.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) privateMergedComponentMap(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) (package private)SimpleComponentMap(Reference2ObjectMap<ComponentType<?>, Object> reference2ObjectMap) -
Uses of ComponentType in net.minecraft.component.type
Fields in net.minecraft.component.type with type parameters of type ComponentTypeModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<SequencedSet<ComponentType<?>>> TooltipDisplayComponent.HIDDEN_COMPONENTS_CODECprivate final SequencedSet<ComponentType<?>> TooltipDisplayComponent.hiddenComponentsThe field for thehiddenComponentsrecord component.Methods in net.minecraft.component.type that return types with arguments of type ComponentTypeModifier and TypeMethodDescriptionTooltipDisplayComponent.hiddenComponents()Returns the value of thehiddenComponentsrecord component.Methods in net.minecraft.component.type with parameters of type ComponentTypeModifier and TypeMethodDescriptionstatic voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) booleanTooltipDisplayComponent.shouldDisplay(ComponentType<?> component) TooltipDisplayComponent.with(ComponentType<?> component, boolean hidden) Constructor parameters in net.minecraft.component.type with type arguments of type ComponentTypeModifierConstructorDescriptionTooltipDisplayComponent(boolean bool, SequencedSet<ComponentType<?>> sequencedSet) -
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) private <E> List<E> Enchantment.Builder.getEffectsList(ComponentType<List<E>> type) EnchantmentHelper.getHighestLevelEffect(ItemStack stack, ComponentType<T> componentType) 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.entity
Methods in net.minecraft.entity with parameters of type ComponentTypeModifier and TypeMethodDescriptionprotected static <T> TEntity.castComponentValue(ComponentType<T> type, @Nullable Object value) protected <T> booleanEntity.copyComponentFrom(ComponentsAccess from, ComponentType<T> type) <T> TAreaEffectCloudEntity.get(ComponentType<? extends T> type) <T> TEntity.get(ComponentType<? extends T> type) protected <T> booleanAreaEffectCloudEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanEntity.setApplicableComponent(ComponentType<T> type, T value) <T> voidEntity.setComponent(ComponentType<T> type, T value) -
Uses of ComponentType in net.minecraft.entity.decoration.painting
Methods in net.minecraft.entity.decoration.painting with parameters of type ComponentTypeModifier and TypeMethodDescription<T> TPaintingEntity.get(ComponentType<? extends T> type) protected <T> booleanPaintingEntity.setApplicableComponent(ComponentType<T> type, T value) -
Uses of ComponentType in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob with parameters of type ComponentTypeModifier and TypeMethodDescription<T> TShulkerEntity.get(ComponentType<? extends T> type) <T> TZombieVillagerEntity.get(ComponentType<? extends T> type) protected <T> booleanShulkerEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanZombieVillagerEntity.setApplicableComponent(ComponentType<T> type, T value) -
Uses of ComponentType in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type ComponentTypeModifier and TypeMethodDescription<T> TAxolotlEntity.get(ComponentType<? extends T> type) <T> TCatEntity.get(ComponentType<? extends T> type) <T> TChickenEntity.get(ComponentType<? extends T> type) <T> TCowEntity.get(ComponentType<? extends T> type) <T> TFoxEntity.get(ComponentType<? extends T> type) <T> TFrogEntity.get(ComponentType<? extends T> type) <T> THorseEntity.get(ComponentType<? extends T> type) <T> TLlamaEntity.get(ComponentType<? extends T> type) <T> TMooshroomEntity.get(ComponentType<? extends T> type) <T> TParrotEntity.get(ComponentType<? extends T> type) <T> TPigEntity.get(ComponentType<? extends T> type) <T> TRabbitEntity.get(ComponentType<? extends T> type) <T> TSalmonEntity.get(ComponentType<? extends T> type) <T> TSheepEntity.get(ComponentType<? extends T> type) <T> TTropicalFishEntity.get(ComponentType<? extends T> type) <T> TVillagerEntity.get(ComponentType<? extends T> type) <T> TWolfEntity.get(ComponentType<? extends T> type) protected <T> booleanAxolotlEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanCatEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanChickenEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanCowEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanFoxEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanFrogEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanHorseEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanLlamaEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanMooshroomEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanParrotEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanPigEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanRabbitEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanSalmonEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanSheepEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanTropicalFishEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanVillagerEntity.setApplicableComponent(ComponentType<T> type, T value) protected <T> booleanWolfEntity.setApplicableComponent(ComponentType<T> type, T value) -
Uses of ComponentType in net.minecraft.item
Methods in net.minecraft.item with parameters of type ComponentTypeModifier and TypeMethodDescription<T extends TooltipAppender>
voidItemStack.appendComponentTooltip(ComponentType<T> componentType, Item.TooltipContext context, TooltipDisplayComponent displayComponent, 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> voidItemStack.copy(ComponentType<T> type, ComponentsAccess from) booleanItemStack.hasChangedComponent(ComponentType<?> type) <T> TItemStack.remove(ComponentType<? extends T> type) Removes the componenttype.<T> TItemStack.set(ComponentType<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 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 final Map<ComponentType<?>, Boolean> ToggleTooltipsLootFunction.togglesMethods in net.minecraft.loot.function that return ComponentTypeMethods 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) 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) privateToggleTooltipsLootFunction(List<LootCondition> conditions, Map<ComponentType<?>, Boolean> toggles) -
Uses of ComponentType in net.minecraft.predicate.component
Methods in net.minecraft.predicate.component that return ComponentTypeMethods in net.minecraft.predicate.component with parameters of type ComponentTypeModifier and TypeMethodDescriptionComponentMapPredicate.Builder.add(ComponentType<? super T> type, T value) static <T> ComponentMapPredicateComponentMapPredicate.of(ComponentType<T> type, T value) static ComponentMapPredicateComponentMapPredicate.ofFiltered(ComponentMap components, ComponentType<?>[] types) -
Uses of ComponentType in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item that return ComponentTypeModifier and TypeMethodDescriptionAttributeModifiersPredicate.getComponentType()BundleContentsPredicate.getComponentType()ContainerPredicate.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 -
Uses of ComponentType in net.minecraft.screen.sync
Fields in net.minecraft.screen.sync with type parameters of type ComponentTypeModifier and TypeFieldDescriptionprivate final Map<ComponentType<?>, Integer> ComponentChangesHash.addedComponentsThe field for theaddedComponentsrecord component.private final Set<ComponentType<?>> ComponentChangesHash.removedComponentsThe field for theremovedComponentsrecord component.Methods in net.minecraft.screen.sync that return types with arguments of type ComponentTypeModifier and TypeMethodDescriptionMap<ComponentType<?>, Integer> ComponentChangesHash.addedComponents()Returns the value of theaddedComponentsrecord component.Set<ComponentType<?>> ComponentChangesHash.removedComponents()Returns the value of theremovedComponentsrecord component.Constructor parameters in net.minecraft.screen.sync with type arguments of type ComponentTypeModifierConstructorDescriptionComponentChangesHash(Map<ComponentType<?>, Integer> map, Set<ComponentType<?>> set) ComponentChangesHash(Map<ComponentType<?>, Integer> map, Set<ComponentType<?>> set)