Uses of Class
net.minecraft.network.chat.MutableComponent
Package
Description
-
Uses of MutableComponent in net.minecraft.client.gui.components
Modifier and TypeFieldDescriptionprivate Function<CycleButton<T>,
MutableComponent> CycleButton.Builder.narrationProvider
private final Function<CycleButton<T>,
MutableComponent> CycleButton.narrationProvider
Modifier 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_) Modifier and TypeMethodDescriptionprivate Component
PlayerTabOverlay.decorateName
(PlayerInfo p_94552_, MutableComponent p_94553_) Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionprotected MutableComponent
BeaconScreen.BeaconPowerButton.createEffectDescription
(MobEffect p_169652_) protected MutableComponent
BeaconScreen.BeaconUpgradePowerButton.createEffectDescription
(MobEffect p_169681_) protected MutableComponent
BeaconScreen.BeaconPowerButton.createNarrationMessage()
-
Uses of MutableComponent in net.minecraft.client.gui.screens.social
Modifier and TypeMethodDescription(package private) MutableComponent
PlayerEntry.getEntryNarationMessage
(MutableComponent p_100595_) Modifier and TypeMethodDescription(package private) MutableComponent
PlayerEntry.getEntryNarationMessage
(MutableComponent p_100595_) -
Uses of MutableComponent in net.minecraft.client.gui.screens.telemetry
Modifier and TypeFieldDescriptionprivate final MutableComponent
TelemetryEventWidget.ContentBuilder.narration
-
Uses of MutableComponent in net.minecraft.client.gui.screens.worldselection
Modifier and TypeMethodDescriptionprivate static MutableComponent
CreateWorldScreen.WorldTab.createTypeButtonNarration
(CycleButton<WorldCreationUiState.WorldTypeEntry> p_268292_) -
Uses of MutableComponent in net.minecraft.client.telemetry
Modifier and TypeMethodDescriptionTelemetryEventType.description()
private MutableComponent
TelemetryEventType.makeTranslation
(String p_261909_) TelemetryEventType.title()
TelemetryProperty.title()
-
Uses of MutableComponent in net.minecraft.network.chat
Modifier and TypeMethodDescriptiondefault MutableComponent
Component.copy()
static MutableComponent
ComponentUtils.copyOnClickText
(String p_260039_) static MutableComponent
MutableComponent.create
(ComponentContents p_237205_) static MutableComponent
CommonComponents.days
(long p_239423_) Component.Serializer.deserialize
(com.google.gson.JsonElement p_130694_, Type p_130695_, com.google.gson.JsonDeserializationContext p_130696_) 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_) static MutableComponent
Component.Serializer.fromJson
(com.mojang.brigadier.StringReader p_130700_) static MutableComponent
static MutableComponent
Component.Serializer.fromJsonLenient
(String p_130715_) 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
static MutableComponent
CommonComponents.space()
static MutableComponent
Component.translatable
(String p_237116_) static MutableComponent
Component.translatable
(String p_237111_, Object... p_237112_) 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.withStyle
(UnaryOperator<Style> p_130939_) MutableComponent.withStyle
(ChatFormatting p_130941_) MutableComponent.withStyle
(ChatFormatting... p_130945_) static MutableComponent
ComponentUtils.wrapInSquareBrackets
(Component p_130749_) Modifier and TypeMethodDescriptionstatic Optional<MutableComponent>
ComponentUtils.updateForEntity
(CommandSourceStack p_178425_, Optional<Component> p_178426_, Entity p_178427_, int p_178428_) Modifier and TypeMethodDescriptionstatic MutableComponent
ComponentUtils.mergeStyles
(MutableComponent p_130751_, Style p_130752_) -
Uses of MutableComponent in net.minecraft.network.chat.contents
Modifier and TypeMethodDescriptionNbtContents.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.server.commands
Modifier and TypeMethodDescriptionstatic MutableComponent
PublishCommand.getSuccessMessage
(int p_259532_) -
Uses of MutableComponent in net.minecraft.world.entity.player
Modifier and TypeFieldDescriptionprivate final Collection<MutableComponent>
Player.prefixes
private final Collection<MutableComponent>
Player.suffixes
Modifier and TypeMethodDescriptionprivate MutableComponent
Player.decorateDisplayNameComponent
(MutableComponent p_36219_) Modifier and TypeMethodDescriptionprivate MutableComponent
Player.decorateDisplayNameComponent
(MutableComponent p_36219_) -
Uses of MutableComponent in net.minecraft.world.item
Modifier and TypeMethodDescriptionBannerPatternItem.getDisplayName()
DiscFragmentItem.getDisplayName()
RecordItem.getDisplayName()
Modifier and TypeMethodDescriptionprivate static Component
FireworkStarItem.appendColors
(MutableComponent p_41260_, int[] p_41261_) -
Uses of MutableComponent in net.minecraft.world.level.block
-
Uses of MutableComponent in net.minecraft.world.level.storage
-
Uses of MutableComponent in net.minecraft.world.scores
Modifier and TypeMethodDescriptionstatic MutableComponent
PlayerTeam.formatNameForTeam
(Team p_83349_, Component p_83350_) PlayerTeam.getFormattedDisplayName()
PlayerTeam.getFormattedName
(Component p_83369_) abstract MutableComponent
Team.getFormattedName
(Component p_83538_) -
Uses of MutableComponent in net.neoforged.neoforge.client.gui
Modifier and TypeMethodDescriptionprivate MutableComponent
ModMismatchDisconnectedScreen.MismatchInfoPanel.toModNameComponent
(ResourceLocation id, String modName, int color) Adds a style information to the given mod name string.Modifier and TypeMethodDescriptionprivate List<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence,
org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, FormattedCharSequence>>> ModMismatchDisconnectedScreen.MismatchInfoPanel.splitLineToWidth
(MutableComponent name, org.apache.commons.lang3.tuple.Pair<String, String> versions) Splits the raw name and version strings, making them use multiple lines if needed, to fit within the table dimensions. -
Uses of MutableComponent in net.neoforged.neoforge.server.command
Modifier and TypeMethodDescriptionstatic MutableComponent
TextComponentHelper.createComponentTranslation
(CommandSource source, String translation, Object... args) Detects when sending to a vanilla client and falls back to sending english, since they don't have the lang data necessary to translate on the client.private static MutableComponent
TagsCommand.createMessage
(MutableComponent header, String containsText, String copyHoverText, long count, long currentPage, ChatFormatting elementColor, Supplier<Stream<String>> names) ChunkGenWorker.getStartMessage
(CommandSourceStack sender) Modifier and TypeMethodDescriptionprivate static MutableComponent
TagsCommand.createMessage
(MutableComponent header, String containsText, String copyHoverText, long count, long currentPage, ChatFormatting elementColor, Supplier<Stream<String>> names)