Uses of Class
net.minecraft.network.chat.MutableComponent
Packages that use MutableComponent
Package
Description
-
Uses of MutableComponent in net.minecraft.advancements
Methods in net.minecraft.advancements that return MutableComponentModifier and TypeMethodDescriptionAdvancementType.createAnnouncement
(AdvancementHolder advancement, ServerPlayer player) -
Uses of MutableComponent in net.minecraft.client.gui.components
Fields in net.minecraft.client.gui.components with type parameters of type MutableComponentModifier and TypeFieldDescriptionprivate Function
<CycleButton<T>, MutableComponent> CycleButton.Builder.narrationProvider
private final Function
<CycleButton<T>, MutableComponent> CycleButton.narrationProvider
Methods in net.minecraft.client.gui.components that return MutableComponentModifier and TypeMethodDescriptionCycleButton.createDefaultNarrationMessage()
private MutableComponent
CycleButton.createFullName
(T value) protected MutableComponent
AbstractSliderButton.createNarrationMessage()
protected MutableComponent
AbstractWidget.createNarrationMessage()
Button.CreateNarration.createNarrationMessage
(Supplier<MutableComponent> messageSupplier) protected MutableComponent
Button.createNarrationMessage()
protected MutableComponent
CycleButton.createNarrationMessage()
protected MutableComponent
EditBox.createNarrationMessage()
protected MutableComponent
LockIconButton.createNarrationMessage()
static MutableComponent
AbstractWidget.wrapDefaultNarrationMessage
(Component message) Methods in net.minecraft.client.gui.components with parameters of type MutableComponentModifier and TypeMethodDescriptionprivate Component
PlayerTabOverlay.decorateName
(PlayerInfo playerInfo, MutableComponent name) Method parameters in net.minecraft.client.gui.components with type arguments of type MutableComponentModifier and TypeMethodDescriptionButton.CreateNarration.createNarrationMessage
(Supplier<MutableComponent> messageSupplier) CycleButton.Builder.withCustomNarration
(Function<CycleButton<T>, MutableComponent> narrationProvider) -
Uses of MutableComponent in net.minecraft.client.gui.screens
Methods in net.minecraft.client.gui.screens that return MutableComponentModifier and TypeMethodDescriptionprotected static MutableComponent
ConfirmLinkScreen.confirmMessage
(boolean trusted) protected static MutableComponent
ConfirmLinkScreen.confirmMessage
(boolean trusted, String extraInfo) -
Uses of MutableComponent in net.minecraft.client.gui.screens.inventory
Methods in net.minecraft.client.gui.screens.inventory that return MutableComponentModifier and TypeMethodDescriptionprotected MutableComponent
BeaconScreen.BeaconPowerButton.createEffectDescription
(Holder<MobEffect> effect) protected MutableComponent
BeaconScreen.BeaconUpgradePowerButton.createEffectDescription
(Holder<MobEffect> effect) protected MutableComponent
BeaconScreen.BeaconPowerButton.createNarrationMessage()
-
Uses of MutableComponent in net.minecraft.client.gui.screens.social
Methods in net.minecraft.client.gui.screens.social that return MutableComponentModifier and TypeMethodDescription(package private) MutableComponent
PlayerEntry.getEntryNarationMessage
(MutableComponent p_component) Methods in net.minecraft.client.gui.screens.social with parameters of type MutableComponentModifier and TypeMethodDescription(package private) MutableComponent
PlayerEntry.getEntryNarationMessage
(MutableComponent p_component) -
Uses of MutableComponent in net.minecraft.client.gui.screens.telemetry
Fields in net.minecraft.client.gui.screens.telemetry declared as MutableComponentModifier and TypeFieldDescriptionprivate final MutableComponent
TelemetryEventWidget.ContentBuilder.narration
-
Uses of MutableComponent in net.minecraft.client.gui.screens.worldselection
Methods in net.minecraft.client.gui.screens.worldselection that return MutableComponentModifier and TypeMethodDescriptionprivate static MutableComponent
CreateWorldScreen.WorldTab.createTypeButtonNarration
(CycleButton<WorldCreationUiState.WorldTypeEntry> button) -
Uses of MutableComponent in net.minecraft.client.telemetry
Methods in net.minecraft.client.telemetry that return MutableComponentModifier and TypeMethodDescriptionTelemetryEventType.description()
private MutableComponent
TelemetryEventType.makeTranslation
(String key) TelemetryEventType.title()
TelemetryProperty.title()
-
Uses of MutableComponent in net.minecraft.nbt
Fields in net.minecraft.nbt declared as MutableComponent -
Uses of MutableComponent in net.minecraft.network.chat
Methods in net.minecraft.network.chat that return MutableComponentModifier and TypeMethodDescriptionAdd the given text to this component's siblings.Add the given component to this component's siblings.default MutableComponent
Component.copy()
static MutableComponent
ComponentUtils.copyOnClickText
(String text) static MutableComponent
MutableComponent.create
(ComponentContents contents) private static MutableComponent
ComponentSerialization.createFromList
(List<Component> components) static MutableComponent
CommonComponents.days
(long days) (package private) static MutableComponent
Component.Serializer.deserialize
(com.google.gson.JsonElement json, HolderLookup.Provider provider) Component.SerializerAdapter.deserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) static MutableComponent
Component.empty()
static <T> MutableComponent
ComponentUtils.formatList
(Collection<? extends T> elements, Optional<? extends Component> optionalSeparator, Function<T, Component> componentExtractor) static <T> MutableComponent
ComponentUtils.formatList
(Collection<? extends T> elements, Component separator, Function<T, Component> componentExtractor) static MutableComponent
Component.Serializer.fromJson
(com.google.gson.JsonElement json, HolderLookup.Provider registries) static MutableComponent
Component.Serializer.fromJson
(String json, HolderLookup.Provider registries) static MutableComponent
Component.Serializer.fromJsonLenient
(String json, HolderLookup.Provider registries) static MutableComponent
CommonComponents.hours
(long hours) static MutableComponent
CommonComponents.joinForNarration
(Component... components) static MutableComponent
static MutableComponent
static MutableComponent
ComponentUtils.mergeStyles
(MutableComponent component, Style p_style) Merge the component's styles with the given Style.static MutableComponent
CommonComponents.minutes
(long minutes) static MutableComponent
Component.nbt
(String nbtPathPattern, boolean interpreting, Optional<Component> separator, DataSource dataSource) static MutableComponent
CommonComponents.optionNameValue
(Component caption, Component valueMessage) static MutableComponent
CommonComponents.optionStatus
(Component message, boolean composed) default MutableComponent
Component.plainCopy()
default MutableComponent
ComponentContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) static MutableComponent
static MutableComponent
Sets the style for this component and returns the component itself.static MutableComponent
CommonComponents.space()
static MutableComponent
Component.translatable
(String key) static MutableComponent
Component.translatable
(String key, Object... args) static MutableComponent
Component.translatableEscape
(String key, Object... args) static MutableComponent
Component.translatableWithFallback
(String key, String fallback) static MutableComponent
Component.translatableWithFallback
(String key, String fallback, Object... args) static MutableComponent
ComponentUtils.updateForEntity
(CommandSourceStack commandSourceStack, Component p_component, Entity entity, int recursionDepth) MutableComponent.withColor
(int color) MutableComponent.withStyle
(UnaryOperator<Style> modifyFunc) MutableComponent.withStyle
(ChatFormatting format) MutableComponent.withStyle
(ChatFormatting... formats) static MutableComponent
ComponentUtils.wrapInSquareBrackets
(Component toWrap) Wraps the text with square brackets.Methods in net.minecraft.network.chat that return types with arguments of type MutableComponentModifier and TypeMethodDescriptionstatic Optional
<MutableComponent> ComponentUtils.updateForEntity
(CommandSourceStack commandSourceStack, Optional<Component> optionalComponent, Entity entity, int recursionDepth) Methods in net.minecraft.network.chat with parameters of type MutableComponentModifier and TypeMethodDescriptionstatic MutableComponent
ComponentUtils.mergeStyles
(MutableComponent component, Style p_style) Merge the component's styles with the given Style. -
Uses of MutableComponent in net.minecraft.network.chat.contents
Methods in net.minecraft.network.chat.contents that return MutableComponentModifier and TypeMethodDescriptionprivate MutableComponent
ScoreContents.getScore
(ScoreHolder scoreHolder, CommandSourceStack source) NbtContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) ScoreContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) SelectorContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) TranslatableContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) -
Uses of MutableComponent in net.minecraft.network.chat.numbers
Methods in net.minecraft.network.chat.numbers that return MutableComponent -
Uses of MutableComponent in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return MutableComponentModifier and TypeMethodDescriptionstatic MutableComponent
PublishCommand.getSuccessMessage
(int port) -
Uses of MutableComponent in net.minecraft.util.worldupdate
Fields in net.minecraft.util.worldupdate declared as MutableComponentModifier and TypeFieldDescriptionprivate final MutableComponent
WorldUpgrader.AbstractUpgrader.finishedStatus
(package private) static final MutableComponent
WorldUpgrader.STATUS_FINISHED_CHUNKS
(package private) static final MutableComponent
WorldUpgrader.STATUS_FINISHED_ENTITIES
(package private) static final MutableComponent
WorldUpgrader.STATUS_FINISHED_POI
(package private) static final MutableComponent
WorldUpgrader.STATUS_UPGRADING_CHUNKS
(package private) static final MutableComponent
WorldUpgrader.STATUS_UPGRADING_ENTITIES
(package private) static final MutableComponent
WorldUpgrader.STATUS_UPGRADING_POI
private final MutableComponent
WorldUpgrader.AbstractUpgrader.upgradingStatus
Constructors in net.minecraft.util.worldupdate with parameters of type MutableComponentModifierConstructorDescription(package private)
AbstractUpgrader
(DataFixTypes dataFixType, String type, String folderName, MutableComponent upgradingStatus, MutableComponent finishedStatus) (package private)
SimpleRegionStorageUpgrader
(DataFixTypes dataFixType, String type, MutableComponent upgradingStatus, MutableComponent finishedStatus) -
Uses of MutableComponent in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player with type parameters of type MutableComponentModifier and TypeFieldDescriptionprivate final Collection
<MutableComponent> Player.prefixes
private final Collection
<MutableComponent> Player.suffixes
Methods in net.minecraft.world.entity.player that return MutableComponentModifier and TypeMethodDescriptionprivate MutableComponent
Player.decorateDisplayNameComponent
(MutableComponent displayName) Methods in net.minecraft.world.entity.player that return types with arguments of type MutableComponentMethods in net.minecraft.world.entity.player with parameters of type MutableComponentModifier and TypeMethodDescriptionprivate MutableComponent
Player.decorateDisplayNameComponent
(MutableComponent displayName) -
Uses of MutableComponent in net.minecraft.world.item
Methods in net.minecraft.world.item that return MutableComponentModifier and TypeMethodDescriptionBannerPatternItem.getDisplayName()
DiscFragmentItem.getDisplayName()
-
Uses of MutableComponent in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component that return MutableComponentMethods in net.minecraft.world.item.component with parameters of type MutableComponentModifier and TypeMethodDescriptionprivate static Component
FireworkExplosion.appendColors
(MutableComponent component, it.unimi.dsi.fastutil.ints.IntList colors) -
Uses of MutableComponent in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment with type parameters of type MutableComponentModifier and TypeFieldDescriptionprotected UnaryOperator
<MutableComponent> Enchantment.Builder.nameFactory
Neo: Allow customizing or changing theComponent
created by the enchantment builder.Method parameters in net.minecraft.world.item.enchantment with type arguments of type MutableComponentModifier and TypeMethodDescriptionEnchantment.Builder.withCustomName
(UnaryOperator<MutableComponent> nameFactory) Allows specifying an operator that can customize the defaultComponent
created byEnchantment.Builder.build(ResourceLocation)
. -
Uses of MutableComponent in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return MutableComponent -
Uses of MutableComponent in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return MutableComponent -
Uses of MutableComponent in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage that return MutableComponent -
Uses of MutableComponent in net.minecraft.world.scores
Methods in net.minecraft.world.scores that return MutableComponentModifier and TypeMethodDescriptionstatic MutableComponent
PlayerTeam.formatNameForTeam
(Team playerTeam, Component playerName) PlayerScoreEntry.formatValue
(NumberFormat format) default MutableComponent
ReadOnlyScoreInfo.formatValue
(NumberFormat format) PlayerTeam.getFormattedDisplayName()
PlayerTeam.getFormattedName
(Component formattedName) abstract MutableComponent
Team.getFormattedName
(Component formattedName) static MutableComponent
ReadOnlyScoreInfo.safeFormatValue
(ReadOnlyScoreInfo scoreInfo, NumberFormat format) -
Uses of MutableComponent in net.neoforged.neoforge.client.gui
Fields in net.neoforged.neoforge.client.gui declared as MutableComponentModifier and TypeFieldDescriptionprivate static final MutableComponent
ConfigurationScreen.EMPTY_LINE
A literal to create an empty line in a tooltip.Methods in net.neoforged.neoforge.client.gui that return MutableComponentModifier and TypeMethodDescriptionprotected MutableComponent
ConfigurationScreen.ConfigurationSectionScreen.getTranslationComponent
(String key) private MutableComponent
ModMismatchDisconnectedScreen.MismatchInfoPanel.toChannelComponent
(List<ResourceLocation> ids, ChatFormatting color) Formats the given list of channel ids to a component which, depending on the current display mode of the list, will list either the first or all channel ids.Methods in net.neoforged.neoforge.client.gui with parameters of type MutableComponentModifier and TypeMethodDescriptionprivate List
<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, FormattedCharSequence>> ModMismatchDisconnectedScreen.MismatchInfoPanel.splitLineToWidth
(MutableComponent name, MutableComponent reason) Splits the raw channel namespace and mismatch reason strings, making them use multiple lines if needed, to fit within the table dimensions. -
Uses of MutableComponent in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return MutableComponentModifier and TypeMethodDescriptionBooleanAttribute.toComponent
(AttributeModifier modif, TooltipFlag flag) BooleanAttribute.toValueComponent
(@Nullable AttributeModifier.Operation op, double value, TooltipFlag flag) PercentageAttribute.toValueComponent
(AttributeModifier.Operation op, double value, TooltipFlag flag) -
Uses of MutableComponent in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return MutableComponentModifier and TypeMethodDescriptiondefault MutableComponent
IAttributeExtension.toBaseComponent
(double value, double entityBase, boolean merged, TooltipFlag flag) Converts a "base" attribute modifier (as dictated byIAttributeExtension.getBaseId()
) into a text component.default MutableComponent
IAttributeExtension.toComponent
(AttributeModifier modif, TooltipFlag flag) Converts an attribute modifier into its tooltip representation.default MutableComponent
IAttributeExtension.toValueComponent
(@Nullable AttributeModifier.Operation op, double value, TooltipFlag flag) Converts the value of an attribute modifier to the value that will be displayed. -
Uses of MutableComponent in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return MutableComponentModifier and TypeMethodDescriptionprivate static MutableComponent
AttributeUtil.listHeader()
Creates a mutable component starting with the char used to represent a drop-down list. -
Uses of MutableComponent in net.neoforged.neoforge.server.command
Methods in net.neoforged.neoforge.server.command that return MutableComponentModifier and TypeMethodDescriptionprivate static MutableComponent
TagsCommand.createMessage
(MutableComponent header, String containsText, String copyHoverText, long count, long currentPage, ChatFormatting elementColor, Supplier<Stream<String>> names) static MutableComponent
CommandUtils.makeTranslatableWithFallback
(String key) static MutableComponent
CommandUtils.makeTranslatableWithFallback
(String key, Object... args) Methods in net.neoforged.neoforge.server.command with parameters of type MutableComponentModifier and TypeMethodDescriptionprivate static MutableComponent
TagsCommand.createMessage
(MutableComponent header, String containsText, String copyHoverText, long count, long currentPage, ChatFormatting elementColor, Supplier<Stream<String>> names)