Uses of Interface
net.minecraft.component.DataComponentType
Packages that use DataComponentType
Package
Description
-
Uses of DataComponentType in net.minecraft.block.entity
Methods in net.minecraft.block.entity with parameters of type DataComponentTypeModifier and TypeMethodDescription<T> TBlockEntity.ComponentsAccess.get(DataComponentType<T> type) <T> TBlockEntity.ComponentsAccess.getOrDefault(DataComponentType<? extends T> type, T fallback) -
Uses of DataComponentType in net.minecraft.command.argument
Fields in net.minecraft.command.argument with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate final RegistryWrapper.Impl<DataComponentType<?>> ItemPredicateArgumentType.class_9445.dataComponentTypeRegistryWrapperMethods in net.minecraft.command.argument that return DataComponentTypeModifier and TypeMethodDescriptionstatic DataComponentType<?> ItemStringReader.Reader.readComponentType(com.mojang.brigadier.StringReader reader) Methods in net.minecraft.command.argument with parameters of type DataComponentTypeModifier and TypeMethodDescriptiondefault <T> voidItemStringReader.Callbacks.onComponent(DataComponentType<T> type, T value) static <T> ItemPredicateArgumentType.ComponentCheckItemPredicateArgumentType.ComponentCheck.read(com.mojang.brigadier.ImmutableStringReader reader, Identifier id, DataComponentType<T> type) private <T> voidItemStringReader.Reader.readComponentValue(DataComponentType<T> type) -
Uses of DataComponentType in net.minecraft.component
Classes in net.minecraft.component that implement DataComponentTypeModifier and TypeClassDescriptionprivate static classFields in net.minecraft.component declared as DataComponentTypeModifier and TypeFieldDescriptionstatic final DataComponentType<AttributeModifiersComponent> DataComponentTypes.ATTRIBUTE_MODIFIERSstatic final DataComponentType<BannerPatternsComponent> DataComponentTypes.BANNER_PATTERNSstatic final DataComponentType<DyeColor> DataComponentTypes.BASE_COLORstatic final DataComponentType<List<BeehiveBlockEntity.BeeData>> DataComponentTypes.BEESstatic final DataComponentType<NbtComponent> DataComponentTypes.BLOCK_ENTITY_DATAstatic final DataComponentType<BlockStateComponent> DataComponentTypes.BLOCK_STATEstatic final DataComponentType<NbtComponent> DataComponentTypes.BUCKET_ENTITY_DATAstatic final DataComponentType<BundleContentsComponent> DataComponentTypes.BUNDLE_CONTENTSstatic final DataComponentType<BlockPredicatesChecker> DataComponentTypes.CAN_BREAKstatic final DataComponentType<BlockPredicatesChecker> DataComponentTypes.CAN_PLACE_ONstatic final DataComponentType<ChargedProjectilesComponent> DataComponentTypes.CHARGED_PROJECTILESstatic final DataComponentType<ContainerComponent> DataComponentTypes.CONTAINERstatic final DataComponentType<ContainerLootComponent> DataComponentTypes.CONTAINER_LOOTstatic final DataComponentType<Unit> DataComponentTypes.CREATIVE_SLOT_LOCKstatic final DataComponentType<NbtComponent> DataComponentTypes.CUSTOM_DATAstatic final DataComponentType<CustomModelDataComponent> DataComponentTypes.CUSTOM_MODEL_DATAstatic final DataComponentType<Text> DataComponentTypes.CUSTOM_NAMEstatic final DataComponentType<Integer> DataComponentTypes.DAMAGEstatic final DataComponentType<DebugStickStateComponent> DataComponentTypes.DEBUG_STICK_STATEstatic final DataComponentType<DyedColorComponent> DataComponentTypes.DYED_COLORstatic final DataComponentType<Boolean> DataComponentTypes.ENCHANTMENT_GLINT_OVERRIDEstatic final DataComponentType<ItemEnchantmentsComponent> DataComponentTypes.ENCHANTMENTSstatic final DataComponentType<NbtComponent> DataComponentTypes.ENTITY_DATAstatic final DataComponentType<Unit> DataComponentTypes.FIRE_RESISTANTstatic final DataComponentType<FireworkExplosionComponent> DataComponentTypes.FIREWORK_EXPLOSIONstatic final DataComponentType<FireworksComponent> DataComponentTypes.FIREWORKSstatic final DataComponentType<FoodComponent> DataComponentTypes.FOODstatic final DataComponentType<Unit> DataComponentTypes.HIDE_ADDITIONAL_TOOLTIPstatic final DataComponentType<Unit> DataComponentTypes.HIDE_TOOLTIPstatic final DataComponentType<RegistryEntry<Instrument>> DataComponentTypes.INSTRUMENTstatic final DataComponentType<Unit> DataComponentTypes.INTANGIBLE_PROJECTILEstatic final DataComponentType<Text> DataComponentTypes.ITEM_NAMEstatic final DataComponentType<ContainerLock> DataComponentTypes.LOCKstatic final DataComponentType<LodestoneTrackerComponent> DataComponentTypes.LODESTONE_TRACKERstatic final DataComponentType<LoreComponent> DataComponentTypes.LOREstatic final DataComponentType<MapColorComponent> DataComponentTypes.MAP_COLORstatic final DataComponentType<MapDecorationsComponent> DataComponentTypes.MAP_DECORATIONSstatic final DataComponentType<MapIdComponent> DataComponentTypes.MAP_IDstatic final DataComponentType<MapPostProcessingComponent> DataComponentTypes.MAP_POST_PROCESSINGstatic final DataComponentType<Integer> DataComponentTypes.MAX_DAMAGEstatic final DataComponentType<Integer> DataComponentTypes.MAX_STACK_SIZEstatic final DataComponentType<Identifier> DataComponentTypes.NOTE_BLOCK_SOUNDstatic final DataComponentType<Integer> DataComponentTypes.OMINOUS_BOTTLE_AMPLIFIERstatic final DataComponentType<Sherds> DataComponentTypes.POT_DECORATIONSstatic final DataComponentType<PotionContentsComponent> DataComponentTypes.POTION_CONTENTSstatic final DataComponentType<ProfileComponent> DataComponentTypes.PROFILEstatic final DataComponentType<Rarity> DataComponentTypes.RARITYstatic final DataComponentType<List<Identifier>> DataComponentTypes.RECIPESstatic final DataComponentType<Integer> DataComponentTypes.REPAIR_COSTstatic final DataComponentType<ItemEnchantmentsComponent> DataComponentTypes.STORED_ENCHANTMENTSstatic final DataComponentType<SuspiciousStewEffectsComponent> DataComponentTypes.SUSPICIOUS_STEW_EFFECTSstatic final DataComponentType<ToolComponent> DataComponentTypes.TOOLstatic final DataComponentType<ArmorTrim> DataComponentTypes.TRIMprivate final DataComponentType<T> Component.typeThe field for thetyperecord component.private final DataComponentType<?> ComponentChanges.Type.typeThe field for thetyperecord component.static final DataComponentType<UnbreakableComponent> DataComponentTypes.UNBREAKABLEstatic final DataComponentType<WritableBookContentComponent> DataComponentTypes.WRITABLE_BOOK_CONTENTstatic final DataComponentType<WrittenBookContentComponent> DataComponentTypes.WRITTEN_BOOK_CONTENTFields in net.minecraft.component with type parameters of type DataComponentTypeModifier and TypeFieldDescription(package private) final Reference2ObjectMap<DataComponentType<?>, Optional<?>> ComponentChanges.changedComponentsprivate Reference2ObjectMap<DataComponentType<?>, Optional<?>> ComponentMapImpl.changedComponentsprivate final Reference2ObjectMap<DataComponentType<?>, Optional<?>> ComponentChanges.Builder.changesstatic final com.mojang.serialization.Codec<DataComponentType<?>> DataComponentType.CODECprivate final Reference2ObjectMap<DataComponentType<?>, Object> ComponentMap.Builder.componentsprivate final Reference2ObjectMap<DataComponentType<?>, Object> ComponentMap.Builder.SimpleComponentMap.mapThe field for themaprecord component.static final PacketCodec<RegistryByteBuf, DataComponentType<?>> DataComponentType.PACKET_CODECstatic final com.mojang.serialization.Codec<DataComponentType<?>> DataComponentType.PERSISTENT_CODECprivate final Set<DataComponentType<?>> ComponentChanges.AddedRemovedPair.removedThe field for theremovedrecord component.static final com.mojang.serialization.Codec<Map<DataComponentType<?>, Object>> DataComponentType.TYPE_TO_VALUE_MAP_CODECMethods in net.minecraft.component that return DataComponentTypeModifier and TypeMethodDescriptionDataComponentType.Builder.build()static DataComponentType<?> DataComponentTypes.getDefault(Registry<DataComponentType<?>> registry) private static <T> DataComponentType<T> DataComponentTypes.register(String id, UnaryOperator<DataComponentType.Builder<T>> builderOperator) Component.type()Returns the value of thetyperecord component.ComponentChanges.Type.type()Returns the value of thetyperecord component.Methods in net.minecraft.component that return types with arguments of type DataComponentTypeModifier and TypeMethodDescriptionSet<Map.Entry<DataComponentType<?>, Optional<?>>> ComponentChanges.entrySet()Set<DataComponentType<?>> ComponentMap.Builder.SimpleComponentMap.getTypes()Set<DataComponentType<?>> ComponentMap.getTypes()Set<DataComponentType<?>> ComponentMapImpl.getTypes()ComponentMap.Builder.SimpleComponentMap.map()Returns the value of themaprecord component.Set<DataComponentType<?>> ComponentChanges.AddedRemovedPair.removed()Returns the value of theremovedrecord component.Methods in net.minecraft.component with parameters of type DataComponentTypeModifier and TypeMethodDescriptionComponentChanges.Builder.add(DataComponentType<T> type, T value) ComponentMap.Builder.add(DataComponentType<T> type, T value) private voidComponentMapImpl.applyChange(DataComponentType<?> type, Optional<?> optional) default booleanComponentHolder.contains(DataComponentType<?> type) Returns whether the held components includetype.booleanComponentMap.Builder.SimpleComponentMap.contains(DataComponentType<?> type) default booleanComponentMap.contains(DataComponentType<?> type) ComponentMap.copy(DataComponentType<T> type) ComponentChanges.get(DataComponentType<? extends T> type) default <T> TComponentHolder.get(DataComponentType<? extends T> type) Returns the value for the componenttype, ornullif the component is missing.<T> TComponentMap.Builder.SimpleComponentMap.get(DataComponentType<? extends T> type) <T> TComponentMap.get(DataComponentType<? extends T> type) <T> TComponentMapImpl.get(DataComponentType<? extends T> type) default <T> TComponentHolder.getOrDefault(DataComponentType<? extends T> type, T fallback) Returns the value for the componenttype, orfallbackif the component is missing.default <T> TComponentMap.getOrDefault(DataComponentType<? extends T> type, T fallback) (package private) static <T> Component<T> Component.of(DataComponentType<T> type, Object value) (package private) <T> voidComponentMap.Builder.put(DataComponentType<T> type, @Nullable Object value) ComponentChanges.Builder.remove(DataComponentType<T> type) <T> TComponentMapImpl.remove(DataComponentType<? extends T> type) <T> TComponentMapImpl.set(DataComponentType<? super T> type, T value) Method parameters in net.minecraft.component with type arguments of type DataComponentTypeModifier and TypeMethodDescriptionprivate static ComponentMapComponentMap.Builder.build(Map<DataComponentType<?>, Object> components) default ComponentMapComponentMap.filtered(Predicate<DataComponentType<?>> predicate) static DataComponentType<?> DataComponentTypes.getDefault(Registry<DataComponentType<?>> registry) (package private) static Component<?> Component.of(Map.Entry<DataComponentType<?>, Object> entry) private static booleanComponentMapImpl.shouldReuseChangesMap(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) (package private) static StringComponentChanges.toString(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changes) ComponentChanges.withRemovedIf(Predicate<DataComponentType<?>> removedTypePredicate) Constructors in net.minecraft.component with parameters of type DataComponentTypeModifierConstructorDescriptionComponent(DataComponentType<T> dataComponentType, T t) (package private)Type(DataComponentType<?> dataComponentType, boolean bool) Constructor parameters in net.minecraft.component with type arguments of type DataComponentTypeModifierConstructorDescriptionAddedRemovedPair(ComponentMap componentMap, Set<DataComponentType<?>> set) (package private)ComponentChanges(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) privateComponentMapImpl(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) (package private)SimpleComponentMap(Reference2ObjectMap<DataComponentType<?>, Object> reference2ObjectMap) -
Uses of DataComponentType in net.minecraft.component.type
Methods in net.minecraft.component.type with parameters of type DataComponentTypeModifier and TypeMethodDescriptionNbtComponent.createPredicate(DataComponentType<NbtComponent> type, NbtCompound nbt) static voidNbtComponent.set(DataComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static voidNbtComponent.set(DataComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) -
Uses of DataComponentType in net.minecraft.enchantment
Methods in net.minecraft.enchantment that return DataComponentTypeModifier and TypeMethodDescriptionprivate static DataComponentType<ItemEnchantmentsComponent> EnchantmentHelper.getEnchantmentsComponentType(ItemStack stack) -
Uses of DataComponentType in net.minecraft.item
Methods in net.minecraft.item with parameters of type DataComponentTypeModifier and TypeMethodDescriptionprivate <T extends TooltipAppender>
voidItemStack.appendTooltip(DataComponentType<T> componentType, Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type) <T> TItemStack.apply(DataComponentType<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(DataComponentType<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(DataComponentType<T> type, T value) <T> TItemStack.remove(DataComponentType<? extends T> type) Removes the componenttype.<T> TItemStack.set(DataComponentType<? super T> type, T value) Sets the componenttypefor this item stack tovalue. -
Uses of DataComponentType in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final Map<DataComponentType<?>, ContainerComponentModifier<?>> ContainerComponentModifiers.TYPE_TO_MODIFIERMethods in net.minecraft.loot that return DataComponentType -
Uses of DataComponentType in net.minecraft.loot.function
Fields in net.minecraft.loot.function declared as DataComponentTypeModifier and TypeFieldDescriptionprivate final DataComponentType<T> ToggleTooltipsLootFunction.Toggle.typeThe field for thetyperecord component.Fields in net.minecraft.loot.function with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionprivate Optional<ImmutableList.Builder<DataComponentType<?>>> CopyComponentsLootFunction.Builder.excludeprivate final Optional<List<DataComponentType<?>>> CopyComponentsLootFunction.excludeprivate final Predicate<DataComponentType<?>> CopyComponentsLootFunction.filterprivate Optional<ImmutableList.Builder<DataComponentType<?>>> CopyComponentsLootFunction.Builder.includeprivate final Optional<List<DataComponentType<?>>> CopyComponentsLootFunction.includeprivate static final Map<DataComponentType<?>, ToggleTooltipsLootFunction.Toggle<?>> ToggleTooltipsLootFunction.TOGGLESMethods in net.minecraft.loot.function that return DataComponentTypeModifier and TypeMethodDescriptionSetNameLootFunction.Target.getComponentType()ToggleTooltipsLootFunction.Toggle.type()Returns the value of thetyperecord component.Methods in net.minecraft.loot.function with parameters of type DataComponentTypeModifier and TypeMethodDescriptionstatic <T> ConditionalLootFunction.Builder<?> SetComponentsLootFunction.builder(DataComponentType<T> componentType, T value) CopyComponentsLootFunction.Builder.exclude(DataComponentType<?> type) CopyComponentsLootFunction.Builder.include(DataComponentType<?> type) Constructors in net.minecraft.loot.function with parameters of type DataComponentTypeModifierConstructorDescription(package private)Toggle(DataComponentType<T> dataComponentType, ToggleTooltipsLootFunction.TooltipSetter<T> tooltipSetter) Constructor parameters in net.minecraft.loot.function with type arguments of type DataComponentTypeModifierConstructorDescription(package private)CopyComponentsLootFunction(List<LootCondition> conditions, CopyComponentsLootFunction.Source source, Optional<List<DataComponentType<?>>> include, Optional<List<DataComponentType<?>>> exclude) -
Uses of DataComponentType in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type DataComponentTypeModifier and TypeMethodDescriptionComponentPredicate.Builder.add(DataComponentType<? super T> type, T value) -
Uses of DataComponentType in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item that return DataComponentTypeModifier and TypeMethodDescriptionAttributeModifiersPredicate.getComponentType()BundleContentsPredicate.getComponentType()ComponentSubPredicate.getComponentType()ContainerPredicate.getComponentType()DamagePredicate.getComponentType()EnchantmentsPredicate.Enchantments.getComponentType()EnchantmentsPredicate.StoredEnchantments.getComponentType()FireworkExplosionPredicate.getComponentType()FireworksPredicate.getComponentType()PotionContentsPredicate.getComponentType()TrimPredicate.getComponentType()WritableBookContentPredicate.getComponentType()WrittenBookContentPredicate.getComponentType() -
Uses of DataComponentType in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type DataComponentTypeModifier and TypeFieldDescriptionstatic final Registry<DataComponentType<?>> Registries.DATA_COMPONENT_TYPEstatic final RegistryKey<Registry<DataComponentType<?>>> RegistryKeys.DATA_COMPONENT_TYPE