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 p_311791_, ServerPlayer p_312517_) -
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 p_168913_) protected MutableComponent
AbstractSliderButton.createNarrationMessage()
protected MutableComponent
AbstractWidget.createNarrationMessage()
Button.CreateNarration.createNarrationMessage
(Supplier<MutableComponent> p_253695_) protected MutableComponent
Button.createNarrationMessage()
protected MutableComponent
CycleButton.createNarrationMessage()
protected MutableComponent
EditBox.createNarrationMessage()
protected MutableComponent
LockIconButton.createNarrationMessage()
static MutableComponent
AbstractWidget.wrapDefaultNarrationMessage
(Component p_168800_) Methods in net.minecraft.client.gui.components with parameters of type MutableComponentModifier and TypeMethodDescriptionprivate Component
PlayerTabOverlay.decorateName
(PlayerInfo p_94552_, MutableComponent p_94553_) Method parameters in net.minecraft.client.gui.components with type arguments of type MutableComponentModifier and TypeMethodDescriptionButton.CreateNarration.createNarrationMessage
(Supplier<MutableComponent> p_253695_) CycleButton.Builder.withCustomNarration
(Function<CycleButton<T>, MutableComponent> p_168960_) -
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 p_240014_) protected static MutableComponent
ConfirmLinkScreen.confirmMessage
(boolean p_239180_, String p_239181_) -
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> p_316880_) protected MutableComponent
BeaconScreen.BeaconUpgradePowerButton.createEffectDescription
(Holder<MobEffect> p_316391_) 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_100595_) Methods in net.minecraft.client.gui.screens.social with parameters of type MutableComponentModifier and TypeMethodDescription(package private) MutableComponent
PlayerEntry.getEntryNarationMessage
(MutableComponent p_100595_) -
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> p_268292_) -
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 p_261909_) TelemetryEventType.title()
TelemetryProperty.title()
-
Uses of MutableComponent in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that return MutableComponentModifier and TypeMethodDescriptionprotected MutableComponent
GameTestInstance.describeType()
protected MutableComponent
GameTestInstance.descriptionRow
(String p_397304_, String p_397169_) protected MutableComponent
GameTestInstance.descriptionRow
(String p_397979_, MutableComponent p_397599_) protected MutableComponent
BlockBasedTestInstance.typeDescription()
protected MutableComponent
FunctionGameTestInstance.typeDescription()
protected abstract MutableComponent
GameTestInstance.typeDescription()
Methods in net.minecraft.gametest.framework with parameters of type MutableComponentModifier and TypeMethodDescriptionprotected MutableComponent
GameTestInstance.descriptionRow
(String p_397979_, MutableComponent p_397599_) -
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 TypeMethodDescriptiondefault MutableComponent
Component.copy()
static MutableComponent
ComponentUtils.copyOnClickText
(String p_260039_) static MutableComponent
MutableComponent.create
(ComponentContents p_237205_) private static MutableComponent
ComponentSerialization.createFromList
(List<Component> p_304405_) static MutableComponent
CommonComponents.days
(long p_239423_) (package private) static MutableComponent
Component.Serializer.deserialize
(com.google.gson.JsonElement p_130720_, HolderLookup.Provider p_330752_) Component.SerializerAdapter.deserialize
(com.google.gson.JsonElement p_304644_, Type p_304861_, com.google.gson.JsonDeserializationContext p_304563_) static MutableComponent
Component.empty()
static <T> MutableComponent
ComponentUtils.formatList
(Collection<? extends T> p_178430_, Optional<? extends Component> p_178431_, Function<T, Component> p_178432_) static <T> MutableComponent
ComponentUtils.formatList
(Collection<? extends T> p_178437_, Component p_178438_, Function<T, Component> p_178439_) static MutableComponent
Component.Serializer.fromJson
(com.google.gson.JsonElement p_130692_, HolderLookup.Provider p_330725_) static MutableComponent
Component.Serializer.fromJson
(String p_130702_, HolderLookup.Provider p_331632_) static MutableComponent
Component.Serializer.fromJsonLenient
(String p_130715_, HolderLookup.Provider p_331029_) static MutableComponent
CommonComponents.hours
(long p_240042_) static MutableComponent
CommonComponents.joinForNarration
(Component... p_267948_) static MutableComponent
static MutableComponent
static MutableComponent
ComponentUtils.mergeStyles
(MutableComponent p_130751_, Style p_130752_) static MutableComponent
CommonComponents.minutes
(long p_239878_) static MutableComponent
Component.nbt
(String p_237106_, boolean p_237107_, Optional<Component> p_237108_, DataSource p_237109_) static MutableComponent
CommonComponents.optionNameValue
(Component p_178394_, Component p_178395_) static MutableComponent
CommonComponents.optionStatus
(Component p_130664_, boolean p_130665_) default MutableComponent
Component.plainCopy()
default MutableComponent
ComponentContents.resolve
(CommandSourceStack p_237126_, Entity p_237127_, int p_237128_) static MutableComponent
static MutableComponent
Component.score
(SelectorPattern p_363804_, String p_362439_) static MutableComponent
Component.selector
(SelectorPattern p_362718_, Optional<Component> p_237104_) static MutableComponent
CommonComponents.space()
static MutableComponent
Component.translatable
(String p_237116_) static MutableComponent
Component.translatable
(String p_237111_, Object... p_237112_) static MutableComponent
Component.translatableEscape
(String p_304683_, Object... p_304399_) static MutableComponent
Component.translatableWithFallback
(String p_265747_, String p_265287_) static MutableComponent
Component.translatableWithFallback
(String p_265449_, String p_265281_, Object... p_265785_) static MutableComponent
ComponentUtils.updateForEntity
(CommandSourceStack p_130732_, Component p_130733_, Entity p_130734_, int p_130735_) MutableComponent.withColor
(int p_307552_) MutableComponent.withStyle
(UnaryOperator<Style> p_130939_) MutableComponent.withStyle
(ChatFormatting p_130941_) MutableComponent.withStyle
(ChatFormatting... p_130945_) static MutableComponent
ComponentUtils.wrapInSquareBrackets
(Component p_130749_) Methods in net.minecraft.network.chat that return types with arguments of type MutableComponentModifier and TypeMethodDescriptionstatic Optional
<MutableComponent> ComponentUtils.updateForEntity
(CommandSourceStack p_178425_, Optional<Component> p_178426_, Entity p_178427_, int p_178428_) Methods in net.minecraft.network.chat with parameters of type MutableComponentModifier and TypeMethodDescriptionstatic MutableComponent
ComponentUtils.mergeStyles
(MutableComponent p_130751_, Style p_130752_) -
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 p_313863_, CommandSourceStack p_237451_) NbtContents.resolve
(CommandSourceStack p_237401_, Entity p_237402_, int p_237403_) ScoreContents.resolve
(CommandSourceStack p_237444_, Entity p_237445_, int p_237446_) SelectorContents.resolve
(CommandSourceStack p_237468_, Entity p_237469_, int p_237470_) TranslatableContents.resolve
(CommandSourceStack p_237512_, Entity p_237513_, int p_237514_) -
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 p_259532_) -
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 p_36219_) 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 p_36219_) -
Uses of MutableComponent in net.minecraft.world.item
Methods in net.minecraft.world.item that return MutableComponent -
Uses of MutableComponent in net.minecraft.world.item.alchemy
Methods in net.minecraft.world.item.alchemy that return MutableComponentModifier and TypeMethodDescriptionstatic MutableComponent
PotionContents.getPotionDescription
(Holder<MobEffect> p_397215_, int p_397091_) -
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 p_331806_, it.unimi.dsi.fastutil.ints.IntList p_330350_) -
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 p_83349_, Component p_83350_) PlayerScoreEntry.formatValue
(NumberFormat p_313792_) default MutableComponent
ReadOnlyScoreInfo.formatValue
(NumberFormat p_313924_) PlayerTeam.getFormattedDisplayName()
PlayerTeam.getFormattedName
(Component p_83369_) abstract MutableComponent
Team.getFormattedName
(Component p_83538_) static MutableComponent
ReadOnlyScoreInfo.safeFormatValue
(ReadOnlyScoreInfo p_313916_, NumberFormat p_313801_) -
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)