Uses of Interface
net.minecraft.network.chat.Component
Packages that use Component
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of Component in com.mojang.blaze3d.platform
Fields in com.mojang.blaze3d.platform with type parameters of type ComponentModifier and TypeFieldDescriptionprivate final LazyLoadedValue
<Component> InputConstants.Key.displayName
(package private) final BiFunction
<Integer, String, Component> InputConstants.Type.displayTextSupplier
Methods in com.mojang.blaze3d.platform that return ComponentConstructor parameters in com.mojang.blaze3d.platform with type arguments of type Component -
Uses of Component in com.mojang.realmsclient
Fields in com.mojang.realmsclient declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
RealmsMainScreen.CONFIGURE_SERVER_TEXT
private static final Component
RealmsMainScreen.INCOMPATIBLE_POPUP_TITLE
private static final Component
RealmsMainScreen.INCOMPATIBLE_RELEASE_TYPE_POPUP_MESSAGE
private static final Component
RealmsMainScreen.LEAVE_SERVER_TEXT
private static final Component
RealmsMainScreen.LOADING_TEXT
private static final Component
RealmsMainScreen.NO_PENDING_INVITES
private static final Component
RealmsMainScreen.NO_REALMS_TEXT
private static final Component
RealmsMainScreen.ServerEntry.ONLINE_PLAYERS_TOOLTIP_HEADER
private static final Component
RealmsMainScreen.PENDING_INVITES
private static final Component
RealmsMainScreen.PLAY_TEXT
(package private) static final Component
RealmsMainScreen.SERVER_CLOSED_TOOLTIP
(package private) static final Component
RealmsMainScreen.SERVER_EXPIRED_TOOLTIP
(package private) static final Component
RealmsMainScreen.SERVER_EXPIRES_IN_DAY_TOOLTIP
(package private) static final Component
RealmsMainScreen.SERVER_EXPIRES_SOON_TOOLTIP
(package private) static final Component
RealmsMainScreen.SERVER_OPEN_TOOLTIP
(package private) static final Component
RealmsMainScreen.SERVER_UNITIALIZED_TEXT
private static final Component
RealmsMainScreen.AvailableSnapshotEntry.START_SNAPSHOT_REALM
(package private) static final Component
RealmsMainScreen.SUBSCRIPTION_EXPIRED_TEXT
private static final Component
RealmsMainScreen.SUBSCRIPTION_RENEW_TEXT
private final Component
RealmsMainScreen.NotificationMessageEntry.text
private static final Component
RealmsMainScreen.TITLE
(package private) static final Component
RealmsMainScreen.TRIAL_EXPIRED_TEXT
(package private) static final Component
RealmsMainScreen.UNITIALIZED_WORLD_NARRATION
Methods in com.mojang.realmsclient that return ComponentModifier and TypeMethodDescriptionRealmsMainScreen.AvailableSnapshotEntry.getNarration()
RealmsMainScreen.ButtonEntry.getNarration()
RealmsMainScreen.EmptyEntry.getNarration()
RealmsMainScreen.NotificationMessageEntry.getNarration()
RealmsMainScreen.ParentEntry.getNarration()
RealmsMainScreen.ServerEntry.getNarration()
RealmsMainScreen.getNarrationMessage()
static Component
RealmsMainScreen.getVersionComponent
(String version, boolean compatible) static Component
RealmsMainScreen.getVersionComponent
(String version, int color) Methods in com.mojang.realmsclient with parameters of type ComponentModifier and TypeMethodDescriptionprivate static void
RealmsMainScreen.confirmToPlay
(RealmsServer realmsServer, Screen lastScreen, Component title, Component message, Component confirmButton) protected int
RealmsMainScreen.Entry.versionTextX
(int left, int width, Component versionComponent) Method parameters in com.mojang.realmsclient with type arguments of type ComponentModifier and TypeMethodDescriptionprivate void
RealmsMainScreen.Entry.drawRealmStatus
(GuiGraphics guiGraphics, int x, int y, int mouseX, int mouseY, ResourceLocation spriteLocation, Supplier<Component> tooltipSupplier) Constructors in com.mojang.realmsclient with parameters of type ComponentModifierConstructorDescriptionprotected
CrossButton
(Button.OnPress onPress, Component message) NotificationButton
(Component message, ResourceLocation sprite, Button.OnPress onPress) NotificationMessageEntry
(Component text, int frameItemHeight, RealmsNotification notification) -
Uses of Component in com.mojang.realmsclient.client
Fields in com.mojang.realmsclient.client declared as ComponentModifier and TypeFieldDescriptionstatic final Component
RealmsError.NO_MESSAGE
private final Component
RealmsError.CustomError.payload
The field for thepayload
record component.static final Component
RealmsError.CustomError.RETRY_MESSAGE
Methods in com.mojang.realmsclient.client that return ComponentModifier and TypeMethodDescriptionRealmsError.AuthenticationError.errorMessage()
RealmsError.CustomError.errorMessage()
RealmsError.errorMessage()
RealmsError.ErrorWithJsonPayload.errorMessage()
RealmsError.ErrorWithRawPayload.errorMessage()
RealmsError.CustomError.payload()
Returns the value of thepayload
record component.Constructors in com.mojang.realmsclient.client with parameters of type ComponentModifierConstructorDescriptionCustomError
(int httpCode, Component payload) Creates an instance of aCustomError
record class. -
Uses of Component in com.mojang.realmsclient.dto
Fields in com.mojang.realmsclient.dto declared as ComponentModifier and TypeFieldDescription(package private) static final Component
RealmsNotification.BUTTON_TEXT_FALLBACK
Methods in com.mojang.realmsclient.dto that return ComponentModifier and TypeMethodDescriptionRealmsText.createComponent()
RealmsText.createComponent
(Component defaultValue) RealmsNotification.VisitUrl.getMessage()
Methods in com.mojang.realmsclient.dto with parameters of type Component -
Uses of Component in com.mojang.realmsclient.gui
Fields in com.mojang.realmsclient.gui declared as ComponentModifier and TypeFieldDescription(package private) static final Component
RealmsWorldSlotButton.MINIGAME
private static final Component
RealmsWorldSlotButton.SLOT_ACTIVE_TOOLTIP
private static final Component
RealmsWorldSlotButton.SWITCH_TO_MINIGAME_SLOT_TOOLTIP
private static final Component
RealmsWorldSlotButton.SWITCH_TO_WORLD_SLOT_TOOLTIP
-
Uses of Component in com.mojang.realmsclient.gui.screens
Fields in com.mojang.realmsclient.gui.screens declared as ComponentModifier and TypeFieldDescription(package private) static final Component
RealmsPendingInvitesScreen.ACCEPT_INVITE
private static final Component
RealmsResetWorldScreen.ADVENTURES_TITLE
private final Component
RealmsResetNormalWorldScreen.buttonTitle
private static final Component
AddRealmPopupScreen.CLOSE_TEXT
private static final Component
RealmsSelectFileToUploadScreen.COMMANDS_TEXT
private static final Component
RealmsResetWorldScreen.CREATE_REALM_SUBTITLE
private static final Component
RealmsCreateRealmScreen.CREATE_REALM_TEXT
private static final Component
RealmsResetWorldScreen.CREATE_REALM_TITLE
static final Component
RealmsResetWorldScreen.CREATE_WORLD_RESET_TASK_TITLE
private static final Component
RealmsResetWorldScreen.CREATE_WORLD_SUBTITLE
private static final Component
RealmsResetWorldScreen.CREATE_WORLD_TITLE
private static final Component
RealmsSubscriptionInfoScreen.DAYS_LEFT_LABEL
private Component
RealmsSubscriptionInfoScreen.daysLeft
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.DESCRIPTION
private static final Component
RealmsCreateRealmScreen.DESCRIPTION_LABEL
private static final Component
RealmsSettingsScreen.DESCRIPTION_LABEL
private final Component
RealmsGenericErrorScreen.ErrorMessage.detail
The field for thedetail
record component.private static final Component
RealmsBackupScreen.DOWNLOAD_LATEST
private final Component
RealmsDownloadLatestWorldScreen.downloadTitle
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.ENABLED_PACK
private Component
RealmsDownloadLatestWorldScreen.errorMessage
private Component[]
RealmsUploadScreen.errorMessage
private static final Component
RealmsResetWorldScreen.EXPERIENCES_TITLE
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.GAME_DIFFICULTY
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.GAME_MODE
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.GAME_SERVER_VERSION
private static final Component
RealmsSelectFileToUploadScreen.HARDCORE_TEXT
(package private) static final Component
RealmsBackupScreen.HAS_CHANGES_TOOLTIP
private final Component
RealmsSelectFileToUploadScreen.Entry.id
private static final Component
RealmsClientOutdatedScreen.INCOMPATIBLE_CLIENT_VERSION
private static final Component
RealmsClientOutdatedScreen.INCOMPATIBLE_TITLE
private final Component
RealmsSelectFileToUploadScreen.Entry.info
private static final Component
RealmsPopups.INFO
private static final Component
RealmsResetWorldScreen.INSPIRATION_TITLE
private static final Component
RealmsInviteScreen.INVITING_PLAYER_TEXT
private final Component[]
RealmsBrokenWorldScreen.message
private Component
RealmsInviteScreen.message
private static final Component
RealmsParentalConsentScreen.MESSAGE
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.NAME
private static final Component
RealmsCreateRealmScreen.NAME_LABEL
private static final Component
RealmsInviteScreen.NAME_LABEL
private static final Component
RealmsSettingsScreen.NAME_LABEL
private static final Component
RealmsSlotOptionsScreen.NAME_LABEL
private static final Component
RealmsBackupScreen.NO_BACKUPS_LABEL
private static final Component
RealmsPendingInvitesScreen.NO_PENDING_INVITES_TEXT
private static final Component
RealmsInviteScreen.NO_SUCH_PLAYER_ERROR_TEXT
private static final Component
RealmsPlayerScreen.Entry.NORMAL_USER_TEXT
private static final Component
RealmsPlayerScreen.Entry.OP_TEXT
private static final Component
RealmsClientOutdatedScreen.OUTDATED_STABLE_VERSION
private static final Component
AddRealmPopupScreen.POPUP_TEXT
private static final Component
RealmsSelectWorldTemplateScreen.PUBLISHER_BUTTON_NAME
private static final Component
RealmsSelectWorldTemplateScreen.Entry.PUBLISHER_LINK_TOOLTIP
(package private) static final Component
RealmsPlayerScreen.QUESTION_TITLE
private static final Component
RealmsSubscriptionInfoScreen.RECURRING_INFO
(package private) static final Component
RealmsPendingInvitesScreen.REJECT_INVITE
private static final Component
RealmsPlayerScreen.Entry.REMOVE_TEXT
private static final Component
RealmsResetWorldScreen.RESET_WORLD_RESET_TASK_TITLE
private static final Component
RealmsResetWorldScreen.RESET_WORLD_SUBTITLE
private static final Component
RealmsResetWorldScreen.RESET_WORLD_TITLE
private final Component
RealmsResetWorldScreen.resetTaskTitle
(package private) static final Component
RealmsBackupScreen.RESTORE_TOOLTIP
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.SEED
private static final Component
RealmsResetNormalWorldScreen.SEED_LABEL
private static final Component
RealmsSelectWorldTemplateScreen.SELECT_BUTTON_NAME
private static final Component
RealmsConfigureWorldScreen.SERVER_CLOSED_TOOLTIP
private static final Component
RealmsConfigureWorldScreen.SERVER_EXPIRED_TOOLTIP
private static final Component
RealmsConfigureWorldScreen.SERVER_EXPIRING_IN_DAY_TOOLTIP
private static final Component
RealmsConfigureWorldScreen.SERVER_EXPIRING_SOON_TOOLTIP
private static final Component
RealmsConfigureWorldScreen.SERVER_OPEN_TOOLTIP
(package private) static final Component
RealmsSlotOptionsScreen.SPAWN_PROTECTION_TEXT
private Component
RealmsSubscriptionInfoScreen.startDate
private Component
RealmsDownloadLatestWorldScreen.status
private Component
RealmsUploadScreen.status
private static final Component
RealmsSubscriptionInfoScreen.SUBSCRIPTION_EXPIRED_TEXT
private static final Component
RealmsSubscriptionInfoScreen.SUBSCRIPTION_LESS_THAN_A_DAY_TEXT
private static final Component
RealmsSubscriptionInfoScreen.SUBSCRIPTION_START_LABEL
private static final Component
RealmsSubscriptionInfoScreen.SUBSCRIPTION_TITLE
private final Component
RealmsResetWorldScreen.subtitle
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.TEMPLATE_NAME
private static final Component
RealmsTermsScreen.TERMS_LINK_TEXT
private static final Component
RealmsTermsScreen.TERMS_STATIC_TEXT
private static final Component
RealmsSubscriptionInfoScreen.TIME_LEFT_LABEL
private final Component
RealmsGenericErrorScreen.ErrorMessage.title
The field for thetitle
record component.private Component
RealmsLongRunningMcoTaskScreen.title
private static final Component
RealmsBackupInfoScreen.TITLE
private static final Component
RealmsBackupScreen.TITLE
private static final Component
RealmsConfigureWorldScreen.TITLE
private static final Component
RealmsInviteScreen.TITLE
private static final Component
RealmsPlayerScreen.TITLE
static final Component
RealmsResetNormalWorldScreen.TITLE
static final Component
RealmsSelectFileToUploadScreen.TITLE
private static final Component
RealmsTermsScreen.TITLE
private final Component
RealmsConfirmScreen.title1
private final Component
RealmsConfirmScreen.title2
private Component
RealmsConfigureWorldScreen.toolTip
(package private) Component
RealmsPendingInvitesScreen.toolTip
private static final Component
RealmsSelectWorldTemplateScreen.TRAILER_BUTTON_NAME
private static final Component
RealmsSelectWorldTemplateScreen.Entry.TRAILER_LINK_TOOLTIP
private static final Component
RealmsSelectFileToUploadScreen.UNABLE_TO_LOAD_WORLD
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.UNDEFINED
private static final Component
RealmsBackupInfoScreen.UNKNOWN
private static final Component
RealmsSubscriptionInfoScreen.UNKNOWN
private static final Component
RealmsClientOutdatedScreen.UNSUPPORTED_SNAPSHOT_VERSION
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.UPLOADED
private static final Component
RealmsUploadScreen.VERIFYING_TEXT
private Component[]
RealmsSelectWorldTemplateScreen.warning
private static final Component
RealmsPopups.WARNING
private static final Component
RealmsConfigureWorldScreen.WORLD_LIST_TITLE
private static final Component
RealmsResetWorldScreen.WORLD_TEMPLATES_TITLE
(package private) static final Component
RealmsSelectFileToUploadScreen.WORLD_TEXT
private static final Component
RealmsBackupInfoScreen.BackupInfoListEntry.WORLD_TYPE
Methods in com.mojang.realmsclient.gui.screens that return ComponentModifier and TypeMethodDescription(package private) Component
RealmsBackupInfoScreen.checkForSpecificMetadata
(String key, String value) private Component
RealmsDownloadLatestWorldScreen.createProgressNarrationMessage()
private Component
RealmsUploadScreen.createProgressNarrationMessage()
private Component
RealmsSubscriptionInfoScreen.daysLeftPresentation
(int daysLeft) RealmsGenericErrorScreen.ErrorMessage.detail()
Returns the value of thedetail
record component.private Component
RealmsBackupInfoScreen.gameDifficultyMetadata
(String value) private Component
RealmsBackupInfoScreen.gameModeMetadata
(String value) (package private) static Component
RealmsSelectFileToUploadScreen.gameModeName
(LevelSummary levelSummary) private Component
RealmsClientOutdatedScreen.getErrorMessage()
RealmsBackupInfoScreen.BackupInfoListEntry.getNarration()
RealmsPendingInvitesScreen.Entry.getNarration()
RealmsSelectFileToUploadScreen.Entry.getNarration()
RealmsSelectWorldTemplateScreen.Entry.getNarration()
RealmsBrokenWorldScreen.getNarrationMessage()
RealmsGenericErrorScreen.getNarrationMessage()
RealmsParentalConsentScreen.getNarrationMessage()
RealmsResetWorldScreen.getNarrationMessage()
RealmsSelectFileToUploadScreen.getNarrationMessage()
RealmsSelectWorldTemplateScreen.getNarrationMessage()
RealmsSlotOptionsScreen.getNarrationMessage()
RealmsSubscriptionInfoScreen.getNarrationMessage()
RealmsTermsScreen.getNarrationMessage()
private static Component
RealmsSubscriptionInfoScreen.localPresentation
(long time) RealmsGenericErrorScreen.ErrorMessage.title()
Returns the value of thetitle
record component.private Component
RealmsBackupInfoScreen.BackupInfoListEntry.translateKey
(String key) Methods in com.mojang.realmsclient.gui.screens with parameters of type ComponentModifier and TypeMethodDescriptionprivate CycleButton.OnValueChange
<Boolean> RealmsSlotOptionsScreen.confirmDangerousOption
(Component question, Consumer<Boolean> onPress) private static RealmsGenericErrorScreen.ErrorMessage
RealmsGenericErrorScreen.errorMessage
(Component message) private static RealmsGenericErrorScreen.ErrorMessage
RealmsGenericErrorScreen.errorMessage
(Component title, Component message) static PopupScreen
RealmsPopups.infoPopupScreen
(Screen backgroundScreen, Component message, Consumer<PopupScreen> onContinue) private void
RealmsUploadScreen.setErrorMessage
(Component... errorMessage) void
void
RealmsSelectWorldTemplateScreen.setWarning
(Component... warning) private void
RealmsInviteScreen.showMessage
(Component message) static PopupScreen
RealmsPopups.warningAcknowledgePopupScreen
(Screen backgroundScreen, Component message, Consumer<PopupScreen> onContinue) static PopupScreen
RealmsPopups.warningPopupScreen
(Screen backgroundScreen, Component message, Consumer<PopupScreen> onContinue) Method parameters in com.mojang.realmsclient.gui.screens with type arguments of type ComponentModifier and TypeMethodDescriptionprivate void
RealmsConfigureWorldScreen.drawRealmStatus
(GuiGraphics guiGraphics, int x, int y, int mouseX, int mouseY, ResourceLocation sprite, Supplier<Component> tooltipSupplier) Constructors in com.mojang.realmsclient.gui.screens with parameters of type ComponentModifierConstructorDescription(package private)
ErrorMessage
(Component title, Component detail) Creates an instance of aErrorMessage
record class.(package private)
FrameButton
(Font font, Component message, ResourceLocation image, Button.OnPress onPress) RealmsConfirmScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title1, Component title2) RealmsGenericErrorScreen
(Component message, Screen nextScreen) RealmsGenericErrorScreen
(Component title, Component line2, Screen message) RealmsPendingInvitesScreen
(Screen lastScreen, Component title) RealmsResetNormalWorldScreen
(Consumer<WorldGenerationInfo> callback, Component buttonTitle) RealmsResetWorldScreen
(Screen lastScreen, RealmsServer serverData, int slot, Component title, Component subtitle, int subtitleColor, Component resetTaskTitle, RealmCreationTask realmCreationTask, Runnable resetWorldRunnable) private
RealmsResetWorldScreen
(Screen lastScreen, RealmsServer serverData, int slot, Component title, Component subtitle, int subtitleColor, Component resetTaskTitle, Runnable resetWorldRunnable) RealmsSelectWorldTemplateScreen
(Component title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType) RealmsSelectWorldTemplateScreen
(Component title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType, WorldTemplatePaginatedList worldTemplatePaginatedList) -
Uses of Component in com.mojang.realmsclient.util
Fields in com.mojang.realmsclient.util declared as ComponentModifier and TypeFieldDescriptionprivate final Component
LevelType.name
private static final Component
RealmsUtil.RIGHT_NOW
Methods in com.mojang.realmsclient.util that return ComponentModifier and TypeMethodDescriptionstatic Component
RealmsUtil.convertToAgePresentation
(long millis) static Component
RealmsUtil.convertToAgePresentationFromInstant
(Date date) LevelType.getName()
-
Uses of Component in com.mojang.realmsclient.util.task
Fields in com.mojang.realmsclient.util.task declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
GetServerDetailsTask.APPLYING_PACK_TEXT
private final Component
ResettingWorldTask.title
private static final Component
CloseServerTask.TITLE
private static final Component
ConnectTask.TITLE
private static final Component
CreateSnapshotRealmTask.TITLE
private static final Component
DownloadTask.TITLE
private static final Component
GetServerDetailsTask.TITLE
private static final Component
OpenServerTask.TITLE
private static final Component
RealmCreationTask.TITLE
private static final Component
RestoreTask.TITLE
private static final Component
SwitchMinigameTask.TITLE
private static final Component
SwitchSlotTask.TITLE
Methods in com.mojang.realmsclient.util.task that return ComponentModifier and TypeMethodDescriptionCloseServerTask.getTitle()
ConnectTask.getTitle()
CreateSnapshotRealmTask.getTitle()
DownloadTask.getTitle()
GetServerDetailsTask.getTitle()
abstract Component
LongRunningTask.getTitle()
OpenServerTask.getTitle()
RealmCreationTask.getTitle()
ResettingWorldTask.getTitle()
RestoreTask.getTitle()
SwitchMinigameTask.getTitle()
SwitchSlotTask.getTitle()
Methods in com.mojang.realmsclient.util.task with parameters of type ComponentConstructors in com.mojang.realmsclient.util.task with parameters of type ComponentModifierConstructorDescriptionResettingGeneratedWorldTask
(WorldGenerationInfo generationInfo, long serverId, Component title, Runnable callback) ResettingTemplateWorldTask
(WorldTemplate template, long serverId, Component title, Runnable callback) ResettingWorldTask
(long serverId, Component title, Runnable callback) -
Uses of Component in net.minecraft.advancements
Fields in net.minecraft.advancements declared as ComponentModifier and TypeFieldDescriptionprivate final Component
DisplayInfo.description
private final Component
AdvancementType.displayName
private final Component
DisplayInfo.title
Fields in net.minecraft.advancements with type parameters of type ComponentMethods in net.minecraft.advancements that return ComponentModifier and TypeMethodDescriptionprivate static Component
Advancement.decorateName
(DisplayInfo display) DisplayInfo.getDescription()
AdvancementType.getDisplayName()
AdvancementProgress.getProgressText()
DisplayInfo.getTitle()
static Component
Advancement.name
(AdvancementHolder advancement) Methods in net.minecraft.advancements that return types with arguments of type ComponentModifier and TypeMethodDescriptionAdvancement.name()
Returns the value of thename
record component.Methods in net.minecraft.advancements with parameters of type ComponentModifier and TypeMethodDescriptionAdvancement.Builder.display
(ItemStack icon, Component title, Component description, ResourceLocation background, AdvancementType type, boolean showToast, boolean announceChat, boolean hidden) Advancement.Builder.display
(ItemLike icon, Component title, Component description, ResourceLocation background, AdvancementType type, boolean showToast, boolean announceChat, boolean hidden) Constructors in net.minecraft.advancements with parameters of type ComponentModifierConstructorDescriptionDisplayInfo
(ItemStack icon, Component title, Component description, Optional<ResourceLocation> background, AdvancementType type, boolean showToast, boolean announceChat, boolean hidden) -
Uses of Component in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon declared as ComponentModifier and TypeFieldDescriptionprivate final Component
ItemWrittenBookPredicate.PagePredicate.contents
The field for thecontents
record component.Fields in net.minecraft.advancements.critereon with type parameters of type ComponentModifier and TypeFieldDescriptionprivate final Optional
<CollectionPredicate<Filterable<Component>, ItemWrittenBookPredicate.PagePredicate>> ItemWrittenBookPredicate.pages
The field for thepages
record component.Methods in net.minecraft.advancements.critereon that return ComponentModifier and TypeMethodDescriptionItemWrittenBookPredicate.PagePredicate.contents()
Returns the value of thecontents
record component.Methods in net.minecraft.advancements.critereon that return types with arguments of type ComponentModifier and TypeMethodDescriptionItemWrittenBookPredicate.pages()
Returns the value of thepages
record component.Method parameters in net.minecraft.advancements.critereon with type arguments of type ComponentModifier and TypeMethodDescriptionboolean
ItemWrittenBookPredicate.PagePredicate.test
(Filterable<Component> contents) Constructors in net.minecraft.advancements.critereon with parameters of type ComponentModifierConstructorDescriptionPagePredicate
(Component contents) Creates an instance of aPagePredicate
record class.Constructor parameters in net.minecraft.advancements.critereon with type arguments of type ComponentModifierConstructorDescriptionItemWrittenBookPredicate
(Optional<CollectionPredicate<Filterable<Component>, ItemWrittenBookPredicate.PagePredicate>> pages, Optional<String> author, Optional<String> title, MinMaxBounds.Ints generation, Optional<Boolean> resolved) Creates an instance of aItemWrittenBookPredicate
record class. -
Uses of Component in net.minecraft.client
Fields in net.minecraft.client declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
private static final Component
private static final Component
private static final Component
private static final Component
Options.ACCESSIBILITY_TOOLTIP_FOV_EFFECT
private static final Component
private static final Component
private static final Component
private static final Component
private static final Component
private static final Component
private static final Component
Options.ALLOW_SERVER_LISTING_TOOLTIP
final Component
OptionInstance.caption
private static final Component
GuiMessageTag.CHAT_ERROR_TEXT
private static final Component
GuiMessageTag.CHAT_MODIFIED_TEXT
private static final Component
GuiMessageTag.CHAT_NOT_SECURE_TEXT
private static final Component
Options.CHAT_TOOLTIP_HIDE_MATCHED_NAMES
private static final Component
Options.CHAT_TOOLTIP_ONLY_SHOW_SECURE
private final Component
GuiMessage.content
The field for thecontent
record component.private static final Component
Options.DIRECTIONAL_AUDIO_TOOLTIP_OFF
private static final Component
Options.DIRECTIONAL_AUDIO_TOOLTIP_ON
private static final Component
Options.GRAPHICS_TOOLTIP_FABULOUS
private static final Component
Options.GRAPHICS_TOOLTIP_FANCY
private static final Component
Options.GRAPHICS_TOOLTIP_FAST
(package private) static final Component
Minecraft.ChatStatus.INFO_DISABLED_BY_PROFILE
private static final Component
private final Component
Minecraft.ChatStatus.message
private static final Component
Options.MOVEMENT_HOLD
private static final Component
Options.MOVEMENT_TOGGLE
private final Component
NarratorStatus.name
static final Component
GameNarrator.NO_TITLE
private static final Component
Options.PRIORITIZE_CHUNK_TOOLTIP_NEARBY
private static final Component
Options.PRIORITIZE_CHUNK_TOOLTIP_NONE
private static final Component
private static final Component
Options.REALMS_NOTIFICATIONS_TOOLTIP
private static final Component
Minecraft.SOCIAL_INTERACTIONS_NOT_AVAILABLE
private static final Component
GuiMessageTag.SYSTEM_TEXT
private static final Component
GuiMessageTag.SYSTEM_TEXT_SINGLE_PLAYER
private static final Component
Options.TELEMETRY_TOOLTIP
private final Component
GuiMessageTag.text
The field for thetext
record component.Fields in net.minecraft.client with type parameters of type ComponentMethods in net.minecraft.client that return ComponentModifier and TypeMethodDescriptionGuiMessage.content()
Returns the value of thecontent
record component.static Component
Options.genericValueLabel
(Component text, int value) static Component
Options.genericValueLabel
(Component text, Component value) static Component
Options.genericValueOrOffLabel
(Component text, int value) Minecraft.ChatStatus.getMessage()
NarratorStatus.getName()
KeyMapping.getTranslatedKeyMessage()
private Component
Minecraft.grabHugeScreenshot
(File gameDirectory, int columnWidth, int rowHeight, int width, int height) Minecraft.grabPanoramixScreenshot
(File gameDirectory, int width, int height) private static Component
Options.percentValueLabel
(Component text, double value) private static Component
Options.percentValueOrOffLabel
(Component text, double value) private static Component
Options.pixelValueLabel
(Component text, int value) GuiMessageTag.text()
Returns the value of thetext
record component.Methods in net.minecraft.client that return types with arguments of type ComponentModifier and TypeMethodDescriptionKeyMapping.createNameSupplier
(String key) Returns a supplier which gets a keybind's current binding (eg,key.forward
returns W by default), or the keybind's name if no such keybind exists (eg,key.invalid
returns key.invalid)Methods in net.minecraft.client with parameters of type ComponentModifier and TypeMethodDescriptionprivate void
Minecraft.addResourcePackLoadFailToast
(Component message) static <T> OptionInstance.TooltipSupplier
<T> OptionInstance.cachedConstantTooltip
(Component message) void
Minecraft.clearResourcePacksOnError
(Throwable throwable, Component errorMessage, Minecraft.GameLoadCookie gameLoadCookie) private void
KeyboardHandler.debugComponent
(ChatFormatting formatting, Component message) private void
KeyboardHandler.debugFeedbackComponent
(Component message) static Component
Options.genericValueLabel
(Component text, int value) static Component
Options.genericValueLabel
(Component text, Component value) static Component
Options.genericValueOrOffLabel
(Component text, int value) private static Component
Options.percentValueLabel
(Component text, double value) private static Component
Options.percentValueOrOffLabel
(Component text, double value) private static Component
Options.pixelValueLabel
(Component text, int value) void
void
void
Method parameters in net.minecraft.client with type arguments of type ComponentModifier and TypeMethodDescriptionprivate static void
Screenshot._grab
(File gameDirectory, String screenshotName, RenderTarget buffer, Consumer<Component> messageConsumer) boolean
Minecraft.debugClientMetricsStart
(Consumer<Component> logger) static void
Screenshot.grab
(File gameDirectory, RenderTarget buffer, Consumer<Component> messageConsumer) Saves a screenshot in the game directory with a time-stamped filename.static void
Screenshot.grab
(File gameDirectory, String screenshotName, RenderTarget buffer, Consumer<Component> messageConsumer) Saves a screenshot in the game directory with the given file name (or null to generate a time-stamped name).Constructors in net.minecraft.client with parameters of type ComponentModifierConstructorDescriptionprivate
ChatStatus
(Component message) GuiMessage
(int addedTime, Component content, MessageSignature signature, GuiMessageTag tag) Creates an instance of aGuiMessage
record class.GuiMessageTag
(int indicatorColor, GuiMessageTag.Icon icon, Component text, String logTag) Creates an instance of aGuiMessageTag
record class. -
Uses of Component in net.minecraft.client.gui
Fields in net.minecraft.client.gui declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
private Component
private static final Component
Gui.SAVING_TEXT
private Component
Gui.subtitle
The current sub-title displayedprivate Component
Gui.title
The current title displayedMethods in net.minecraft.client.gui with parameters of type ComponentModifier and TypeMethodDescriptionvoid
GuiGraphics.drawCenteredString
(Font font, Component text, int x, int y, int color) Draws a centered string at the specified coordinates using the given font, text component, and color.int
Font.drawInBatch
(Component text, float x, float y, int color, boolean dropShadow, org.joml.Matrix4f matrix, MultiBufferSource buffer, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) int
GuiGraphics.drawString
(Font font, Component text, int x, int y, int color) Draws a component's visual order text at the specified coordinates using the given font, text component, and color.int
GuiGraphics.drawString
(Font font, Component text, int x, int y, int color, boolean dropShadow) Draws a component's visual order text at the specified coordinates using the given font, text component, color, and drop shadow.int
GuiGraphics.drawStringWithBackdrop
(Font font, Component text, int x, int y, int xOffset, int color) void
GuiGraphics.renderTooltip
(Font font, Component text, int mouseX, int mouseY) Renders a tooltip with a single line of text at the specified mouse coordinates.void
Gui.setNowPlaying
(Component displayName) Sets the currently playing record display name and updates the overlay message.void
Gui.setOverlayMessage
(Component component, boolean animateColor) Sets the overlay message to be displayed on the screen.void
Gui.setSubtitle
(Component subtitle) Sets the subtitle to be displayed in the title screen.void
Sets the title to be displayed in the title screen.Method parameters in net.minecraft.client.gui with type arguments of type ComponentModifier and TypeMethodDescriptionvoid
GuiGraphics.renderComponentTooltip
(Font font, List<Component> tooltipLines, int mouseX, int mouseY) Renders a tooltip with multiple lines of component-based text at the specified mouse coordinates.void
GuiGraphics.renderTooltip
(Font font, List<Component> tooltipLines, Optional<TooltipComponent> visualTooltipComponent, int mouseX, int mouseY) Renders a tooltip with customizable components at the specified mouse coordinates.void
GuiGraphics.renderTooltip
(Font font, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, ItemStack stack, int mouseX, int mouseY) -
Uses of Component in net.minecraft.client.gui.components
Fields in net.minecraft.client.gui.components declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
ChatComponent.DELETED_CHAT_MESSAGE
private Component
PlayerTabOverlay.footer
private final Component
PlayerTabOverlay.ScoreDisplayEntry.formattedScore
The field for theformattedScore
record component.private Component
PlayerTabOverlay.header
private Component
EditBox.hint
private Component
AbstractWidget.message
private final Component
Button.Builder.message
private final Component
Checkbox.Builder.message
private final Component
MultiLineTextWidget.CacheKey.message
The field for themessage
record component.private final Component
PlainTextButton.message
private Component
PopupScreen.Builder.message
private final Component
PopupScreen.ButtonOption.message
The field for themessage
record component.private final Component
PopupScreen.message
private final Component
SpriteIconButton.Builder.message
private final Component
Tooltip.message
private final Component
CycleButton.name
private final Component
PlayerTabOverlay.ScoreDisplayEntry.name
The field for thename
record component.private final Component
Tooltip.narration
private final Component
MultiLineEditBox.placeholder
private final Component
SubtitleOverlay.Subtitle.text
private final Component
PopupScreen.Builder.title
private final Component
PlainTextButton.underlinedMessage
private static final Component
ObjectSelectionList.USAGE_NARRATION
Fields in net.minecraft.client.gui.components with type parameters of type ComponentModifier and TypeFieldDescriptionCycleButton.Builder.valueStringifier
CycleButton.valueStringifier
Methods in net.minecraft.client.gui.components that return ComponentModifier and TypeMethodDescriptionprivate Component
CycleButton.createLabelForValue
(T value) private Component
PlayerTabOverlay.decorateName
(PlayerInfo playerInfo, MutableComponent name) PlayerTabOverlay.ScoreDisplayEntry.formattedScore()
Returns the value of theformattedScore
record component.AbstractWidget.getMessage()
PlayerTabOverlay.getNameForDisplay
(PlayerInfo playerInfo) abstract Component
ObjectSelectionList.Entry.getNarration()
CommandSuggestions.getNarrationMessage()
(package private) Component
CommandSuggestions.SuggestionsList.getNarrationMessage()
PopupScreen.getNarrationMessage()
SubtitleOverlay.Subtitle.getText()
CommandSuggestions.getUsageNarration()
MultiLineTextWidget.CacheKey.message()
Returns the value of themessage
record component.PopupScreen.ButtonOption.message()
Returns the value of themessage
record component.PlayerTabOverlay.ScoreDisplayEntry.name()
Returns the value of thename
record component.Methods in net.minecraft.client.gui.components with parameters of type ComponentModifier and TypeMethodDescriptionPopupScreen.Builder.addButton
(Component message, Consumer<PopupScreen> action) void
ChatComponent.addMessage
(Component chatComponent) void
ChatComponent.addMessage
(Component chatComponent, MessageSignature headerSignature, GuiMessageTag tag) static CycleButton.Builder
<Boolean> CycleButton.booleanBuilder
(Component componentOn, Component componentOff) static Button.Builder
Button.builder
(Component message, Button.OnPress onPress) static Checkbox.Builder
static SpriteIconButton.Builder
SpriteIconButton.builder
(Component message, Button.OnPress onPress, boolean iconOnly) private FormattedCharSequence
CycleButton.Builder.create
(int x, int y, int width, int height, Component name, CycleButton.OnValueChange<T> onValueChange) CycleButton.Builder.create
(Component message, CycleButton.OnValueChange<T> onValueChange) static MultiLineLabel
static MultiLineLabel
static MultiLineLabel
static MultiLineLabel
static Tooltip
static Tooltip
private int
Checkbox.getAdjustedWidth
(int maxWidth, Component message, Font font) (package private) static int
Checkbox.getDefaultWidth
(Component message, Font font) static void
AbstractWidget.renderScrollingString
(GuiGraphics guiGraphics, Font font, Component text, int minX, int minY, int maxX, int maxY, int color) static void
AbstractWidget.renderScrollingString
(GuiGraphics guiGraphics, Font font, Component text, int centerX, int minX, int minY, int maxX, int maxY, int color) void
void
void
void
AbstractWidget.setMessage
(Component message) PopupScreen.Builder.setMessage
(Component message) static List
<FormattedCharSequence> Tooltip.splitTooltip
(Minecraft minecraft, Component message) static MutableComponent
AbstractWidget.wrapDefaultNarrationMessage
(Component message) Method parameters in net.minecraft.client.gui.components with type arguments of type ComponentConstructors in net.minecraft.client.gui.components with parameters of type ComponentModifierConstructorDescriptionAbstractButton
(int x, int y, int width, int height, Component message) AbstractContainerWidget
(int p_313730_, int p_313819_, int p_313847_, int p_313718_, Component p_313894_) AbstractScrollWidget
(int x, int y, int width, int height, Component message) AbstractSliderButton
(int x, int y, int width, int height, Component message, double value) AbstractStringWidget
(int x, int y, int width, int height, Component message, Font font) AbstractWidget
(int x, int y, int width, int height, Component message) Builder
(Component message, Button.OnPress onPress) (package private)
Builder
(Component message, Button.OnPress onPress, boolean iconOnly) protected
Button
(int x, int y, int width, int height, Component message, Button.OnPress onPress, Button.CreateNarration createNarration) (package private)
ButtonOption
(Component message, Consumer<PopupScreen> action) Creates an instance of aButtonOption
record class.(package private)
CacheKey
(Component message, int maxWidth, OptionalInt maxRows) Creates an instance of aCacheKey
record class.protected
CenteredIcon
(int p_295914_, int p_294852_, Component p_295609_, int p_294922_, int p_296462_, ResourceLocation p_295554_, Button.OnPress p_294427_, Button.CreateNarration p_330653_) (package private)
Checkbox
(int x, int y, int maxWidth, Component message, Font font, boolean selected, Checkbox.OnValueChange onValueChange) (package private)
CycleButton
(int x, int y, int width, int height, Component message, Component name, int index, T value, CycleButton.ValueListSupplier<T> values, Function<T, Component> valueStringifier, Function<CycleButton<T>, MutableComponent> narrationProvider, CycleButton.OnValueChange<T> onValueChange, OptionInstance.TooltipSupplier<T> tooltipSupplier, boolean displayOnlyValue) FittingMultiLineTextWidget
(int x, int y, int width, int height, Component message, Font font) FocusableTextWidget
(int maxWidth, Component message, Font font) FocusableTextWidget
(int maxWidth, Component message, Font font, boolean alwaysShowBorder, int padding) FocusableTextWidget
(int maxWidth, Component message, Font font, int padding) ImageButton
(int x, int y, int width, int height, WidgetSprites sprites, Button.OnPress onPress, Component message) ImageButton
(int width, int height, WidgetSprites sprites, Button.OnPress onPress, Component message) LerpingBossEvent
(UUID id, Component name, float progress, BossEvent.BossBarColor color, BossEvent.BossBarOverlay overlay, boolean darkenScreen, boolean bossMusic, boolean worldFog) LoadingDotsWidget
(Font font, Component message) MultiLineEditBox
(Font font, int x, int y, int width, int height, Component placeholder, Component message) MultiLineTextWidget
(int x, int y, Component message, Font font) MultiLineTextWidget
(Component message, Font font) PlainTextButton
(int x, int y, int width, int height, Component message, Button.OnPress onPress, Font font) (package private)
PopupScreen
(Screen backgroundScreen, int width, ResourceLocation image, Component title, Component message, List<PopupScreen.ButtonOption> buttons, Runnable onClose) (package private)
ScoreDisplayEntry
(Component name, int score, Component formattedScore, int scoreWidth) Creates an instance of aScoreDisplayEntry
record class.(package private)
SpriteIconButton
(int width, int height, Component message, int spriteWidth, int spriteHeight, ResourceLocation sprite, Button.OnPress onPress, Button.CreateNarration createNarration) StringWidget
(int x, int y, int width, int height, Component message, Font font) StringWidget
(int width, int height, Component message, Font font) StringWidget
(Component message, Font font) protected
TextAndIcon
(int p_296442_, int p_294340_, Component p_296265_, int p_294900_, int p_295900_, ResourceLocation p_296097_, Button.OnPress p_295566_, Button.CreateNarration p_330735_) private
Constructor parameters in net.minecraft.client.gui.components with type arguments of type ComponentModifierConstructorDescription(package private)
CycleButton
(int x, int y, int width, int height, Component message, Component name, int index, T value, CycleButton.ValueListSupplier<T> values, Function<T, Component> valueStringifier, Function<CycleButton<T>, MutableComponent> narrationProvider, CycleButton.OnValueChange<T> onValueChange, OptionInstance.TooltipSupplier<T> tooltipSupplier, boolean displayOnlyValue) -
Uses of Component in net.minecraft.client.gui.components.tabs
Fields in net.minecraft.client.gui.components.tabs declared as ComponentModifier and TypeFieldDescriptionprivate final Component
GridLayoutTab.title
private static final Component
TabNavigationBar.USAGE_NARRATION
Methods in net.minecraft.client.gui.components.tabs that return ComponentConstructors in net.minecraft.client.gui.components.tabs with parameters of type Component -
Uses of Component in net.minecraft.client.gui.components.toasts
Fields in net.minecraft.client.gui.components.toasts declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
RecipeToast.DESCRIPTION_TEXT
private final Component
TutorialToast.message
private Component
SystemToast.title
private final Component
TutorialToast.title
private static final Component
RecipeToast.TITLE_TEXT
Methods in net.minecraft.client.gui.components.toasts with parameters of type ComponentModifier and TypeMethodDescriptionstatic void
SystemToast.add
(ToastComponent toastComponent, SystemToast.SystemToastId id, Component title, Component message) static void
SystemToast.addOrUpdate
(ToastComponent toastComponent, SystemToast.SystemToastId id, Component title, Component message) static SystemToast
SystemToast.multiline
(Minecraft minecraft, SystemToast.SystemToastId id, Component title, Component message) private static com.google.common.collect.ImmutableList
<FormattedCharSequence> SystemToast.nullToEmpty
(Component message) void
Constructors in net.minecraft.client.gui.components.toasts with parameters of type ComponentModifierConstructorDescriptionprivate
SystemToast
(SystemToast.SystemToastId id, Component title, List<FormattedCharSequence> messageLines, int width) SystemToast
(SystemToast.SystemToastId id, Component title, Component message) TutorialToast
(TutorialToast.Icons icon, Component title, Component message, boolean progressable) -
Uses of Component in net.minecraft.client.gui.layouts
Methods in net.minecraft.client.gui.layouts with parameters of type ComponentModifier and TypeMethodDescriptionvoid
HeaderAndFooterLayout.addTitleHeader
(Component message, Font font) static Layout
CommonLayouts.labeledElement
(Font font, LayoutElement element, Component label) static Layout
CommonLayouts.labeledElement
(Font font, LayoutElement element, Component label, Consumer<LayoutSettings> layoutSettings) -
Uses of Component in net.minecraft.client.gui.narration
Methods in net.minecraft.client.gui.narration with parameters of type ComponentModifier and TypeMethodDescriptiondefault void
NarrationElementOutput.add
(NarratedElementType type, Component contents) default void
NarrationElementOutput.add
(NarratedElementType type, Component... contents) static NarrationThunk
<?> Method parameters in net.minecraft.client.gui.narration with type arguments of type Component -
Uses of Component in net.minecraft.client.gui.screens
Fields in net.minecraft.client.gui.screens declared as ComponentModifier and TypeFieldDescriptionstatic final Component
ConnectScreen.ABORT_CONNECTION
private static final Component
PauseScreen.ADVANCEMENTS
private static final Component
ShareToLanScreen.ALLOW_COMMANDS_LABEL
private static final Component
CreditsAndAttributionScreen.ATTRIBUTION_BUTTON
private static final Component
CreateBuffetWorldScreen.BIOME_SELECT_INFO
private static final Component
RecoverWorldDataScreen.BUGTRACKER_BUTTON
private final Component
GenericWaitingScreen.buttonLabel
private final Component
DisconnectedScreen.buttonText
private final Component
DeathScreen.causeOfDeath
private Component
CreateFlatWorldScreen.columnHeight
The text used to identify the height of a layerprivate Component
CreateFlatWorldScreen.columnType
The text used to identify the material for a layer(package private) final Component
ConnectScreen.connectFailedTitle
private static final Component
ConfirmLinkScreen.COPY_BUTTON_TEXT
private static final Component
TitleScreen.COPYRIGHT_TEXT
private static final Component
CreditsAndAttributionScreen.CREDITS_BUTTON
private Component
DeathScreen.deathScore
private final Component
BackupConfirmScreen.description
private static final Component
RecoverWorldDataScreen.DONE_FAILED
private static final Component
RecoverWorldDataScreen.DONE_SUCCESS
private static final Component
RecoverWorldDataScreen.DONE_TITLE
private static final Component
ReceivingLevelScreen.DOWNLOADING_TERRAIN_TEXT
private static final Component
DirectJoinServerScreen.ENTER_IP_LABEL
private static final Component
PauseScreen.FEEDBACK_SUBSCREEN
private static final Component
PauseScreen.GAME
private static final Component
ShareToLanScreen.GAME_MODE_LABEL
private Component
ProgressScreen.header
private static final Component
ShareToLanScreen.INFO_TEXT
private static final Component
ShareToLanScreen.INVALID_PORT
private static final Component
EditServerScreen.IP_LABEL
private static final Component
CreditsAndAttributionScreen.LICENSES_BUTTON
private Component
PresetFlatWorldScreen.listText
private final Component
ConfirmScreen.message
private final Component
ErrorScreen.message
private final Component
NoticeWithLinkScreen.message
private final Component
RecoverWorldDataScreen.message
private static final Component
OutOfMemoryScreen.MESSAGE
private final Component
AlertScreen.messageText
private final Component
GenericWaitingScreen.messageText
private static final Component
RecoverWorldDataScreen.MISSING_FILE
(package private) final Component
CreateBuffetWorldScreen.BiomeList.Entry.name
private final Component
PresetFlatWorldScreen.PresetsList.Entry.name
static final Component
BanNoticeScreens.NAME_BAN_TITLE
private static final Component
EditServerScreen.NAME_LABEL
private static final Component
RecoverWorldDataScreen.NO_FALLBACK_TOOLTIP
private static final Component
RecoverWorldDataScreen.NO_ISSUES
protected Component
ConfirmScreen.noButton
The text shown for the second button in GuiYesNoprivate final Component
AlertScreen.okButton
private static final Component
AccessibilityOnboardingScreen.ONBOARDING_NARRATOR_MESSAGE
private static final Component
DisconnectedScreen.OPEN_REPORT_DIR_TITLE
private static final Component
PauseScreen.OPTIONS
private static final Component
PauseScreen.PAUSED
private static final Component
BanNoticeScreens.PERMANENT_BAN_TITLE
private static final Component
PauseScreen.PLAYER_REPORTING
private static final Component
ShareToLanScreen.PORT_INFO_TEXT
private static final Component
ShareToLanScreen.PORT_UNAVAILABLE
private static final Component
PauseScreen.REPORT_BUGS
private static final Component
DisconnectedScreen.REPORT_TO_SERVER_TITLE
private static final Component
RecoverWorldDataScreen.RESTORE_BUTTON
private static final Component
PauseScreen.RETURN_TO_GAME
private static final Component
PauseScreen.RETURN_TO_MENU
private static final Component
PauseScreen.SAVING_LEVEL
private static final Component
WinScreen.SECTION_HEADING
private static final Component
PauseScreen.SEND_FEEDBACK
private static final Component
PauseScreen.SERVER_LINKS
private static final Component
PauseScreen.SHARE_TO_LAN
private Component
PresetFlatWorldScreen.shareText
private static final Component
BanNoticeScreens.SKIN_BAN_DESCRIPTION
private static final Component
BanNoticeScreens.SKIN_BAN_TITLE
private Component
ProgressScreen.stage
private static final Component
PauseScreen.STATS
private Component
ConnectScreen.status
private static final Component
NoticeWithLinkScreen.SYMLINK_PACK_MESSAGE_TEXT
private static final Component
NoticeWithLinkScreen.SYMLINK_PACK_TITLE
private static final Component
NoticeWithLinkScreen.SYMLINK_WORLD_MESSAGE_TEXT
private static final Component
NoticeWithLinkScreen.SYMLINK_WORLD_TITLE
private static final Component
BanNoticeScreens.TEMPORARY_BAN_TITLE
protected final Component
Screen.title
private static final Component
AccessibilityOnboardingScreen.TITLE
private static final Component
CreditsAndAttributionScreen.TITLE
private static final Component
OutOfMemoryScreen.TITLE
private static final Component
PauseScreen.FeedbackSubScreen.TITLE
private static final Component
RecoverWorldDataScreen.TITLE
private static final Component
TitleScreen.TITLE
private static final Component
DisconnectedScreen.TO_SERVER_LIST
private static final Component
DisconnectedScreen.TO_TITLE
static final Component
ConnectScreen.UNKNOWN_HOST_MESSAGE
static final Component
PresetFlatWorldScreen.UNKNOWN_PRESET
private static final Component
Screen.USAGE_NARRATION
private static final Component
ChatScreen.USAGE_TEXT
private static final Component
ConfirmLinkScreen.WARNING_TEXT
protected Component
ConfirmScreen.yesButton
The text shown for the first button in GuiYesNoMethods in net.minecraft.client.gui.screens that return ComponentModifier and TypeMethodDescriptionprivate Component
RecoverWorldDataScreen.buildInfo
(LevelStorageSource.LevelStorageAccess level, boolean useFallback, Exception exception) private static Component
BanNoticeScreens.getBanDurationText
(com.mojang.authlib.minecraft.BanDetails banDetails) private static Component
BanNoticeScreens.getBannedScreenText
(com.mojang.authlib.minecraft.BanDetails banDetails) private static Component
BanNoticeScreens.getBannedTitle
(com.mojang.authlib.minecraft.BanDetails banDetails) private static Component
BanNoticeScreens.getBanReasonText
(com.mojang.authlib.minecraft.BanDetails banDetails) private static Component
BanNoticeScreens.getBanStatusText
(com.mojang.authlib.minecraft.BanDetails banDetails) private Component
LevelLoadingScreen.getFormattedProgress()
private Component
TitleScreen.getMultiplayerDisabledReason()
CreateBuffetWorldScreen.BiomeList.Entry.getNarration()
CreateFlatWorldScreen.DetailsList.Entry.getNarration()
PresetFlatWorldScreen.PresetsList.Entry.getNarration()
AlertScreen.getNarrationMessage()
ConfirmScreen.getNarrationMessage()
DisconnectedScreen.getNarrationMessage()
GenericWaitingScreen.getNarrationMessage()
NoticeWithLinkScreen.getNarrationMessage()
RecoverWorldDataScreen.getNarrationMessage()
Screen.getNarrationMessage()
Screen.getTitle()
protected Component
Screen.getUsageNarration()
private Component
ShareToLanScreen.tryParsePort
(String port) Methods in net.minecraft.client.gui.screens that return types with arguments of type ComponentMethods in net.minecraft.client.gui.screens with parameters of type ComponentModifier and TypeMethodDescriptionprivate void
WinScreen.addCreditsLine
(Component creditsLine, boolean centered) static <T extends AbstractContainerMenu>
voidstatic GenericWaitingScreen
GenericWaitingScreen.createCompleted
(Component title, Component messageText, Component buttonLabel, Runnable buttonCallback) static GenericWaitingScreen
GenericWaitingScreen.createWaiting
(Component title, Component buttonLabel, Runnable buttonCallback) default void
MenuScreens.ScreenConstructor.fromPacket
(Component title, MenuType<T> type, Minecraft mc, int windowId) private static Button
PauseScreen.openLinkButton
(Screen lastScreen, Component buttonText, URI uri) private Button
PauseScreen.openScreenButton
(Component message, Supplier<Screen> screenSupplier) void
ProgressScreen.progressStage
(Component component) void
ProgressScreen.progressStart
(Component component) void
ProgressScreen.progressStartNoAbort
(Component component) void
Screen.setTooltipForNextRenderPass
(Component tooltip) private void
ConnectScreen.updateStatus
(Component status) Constructors in net.minecraft.client.gui.screens with parameters of type ComponentModifierConstructorDescriptionAlertScreen
(Runnable callback, Component title, Component text) AlertScreen
(Runnable callback, Component title, Component messageText, Component okButton, boolean shouldCloseOnEsc) BackupConfirmScreen
(Runnable onCancel, BackupConfirmScreen.Listener onProceed, Component title, Component description, boolean promptForCacheErase) ConfirmLinkScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, String url, boolean trusted) ConfirmLinkScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, URI uri, boolean trusted) ConfirmLinkScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, Component message, String url, Component noButton, boolean trusted) ConfirmLinkScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, Component message, URI uri, Component noButton, boolean trusted) ConfirmScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, Component message) ConfirmScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, Component message, Component yesButton, Component noButton) private
ConnectScreen
(Screen parent, Component connectFailedTitle) DeathScreen
(Component causeOfDeath, boolean hardcore) DisconnectedScreen
(Screen parent, Component title, Component reason) DisconnectedScreen
(Screen parent, Component title, Component reason, Component buttonText) DisconnectedScreen
(Screen parent, Component title, DisconnectionDetails details) DisconnectedScreen
(Screen parent, Component title, DisconnectionDetails details, Component buttonText) ErrorScreen
(Component title, Component message) GenericMessageScreen
(Component p_331916_) protected
GenericWaitingScreen
(Component title, Component messageText, Component buttonLabel, Runnable buttonCallback, int disableButtonTicks) NoticeWithLinkScreen
(Component title, Component message, URI uri, Runnable onClose) protected
TitleConfirmScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer p_273707_, Component p_273255_, Component p_273747_, Component p_273434_, Component p_273416_) -
Uses of Component in net.minecraft.client.gui.screens.achievement
Fields in net.minecraft.client.gui.screens.achievement declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
StatsScreen.GENERAL_BUTTON
private static final Component
StatsScreen.ITEMS_BUTTON
private final Component
StatsScreen.MobsStatisticsList.MobRow.killedBy
private final Component
StatsScreen.MobsStatisticsList.MobRow.kills
private final Component
StatsScreen.MobsStatisticsList.MobRow.mobName
private static final Component
StatsScreen.MOBS_BUTTON
(package private) static final Component
StatsScreen.NO_VALUE_DISPLAY
private static final Component
StatsScreen.PENDING_TEXT
private final Component
StatsScreen.GeneralStatisticsList.Entry.statDisplay
private static final Component
StatsScreen.TITLE
Methods in net.minecraft.client.gui.screens.achievement that return ComponentModifier and TypeMethodDescriptionStatsScreen.GeneralStatisticsList.Entry.getNarration()
StatsScreen.ItemStatisticsList.ItemRow.getNarration()
StatsScreen.MobsStatisticsList.MobRow.getNarration()
-
Uses of Component in net.minecraft.client.gui.screens.advancements
Fields in net.minecraft.client.gui.screens.advancements declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
AdvancementsScreen.NO_ADVANCEMENTS_LABEL
private final Component
AdvancementTab.title
private static final Component
AdvancementsScreen.TITLE
private static final Component
AdvancementsScreen.VERY_SAD_LABEL
Methods in net.minecraft.client.gui.screens.advancements that return ComponentMethods in net.minecraft.client.gui.screens.advancements with parameters of type ComponentModifier and TypeMethodDescriptionprivate List
<FormattedText> AdvancementWidget.findOptimalLines
(Component component, int maxWidth) -
Uses of Component in net.minecraft.client.gui.screens.debug
Fields in net.minecraft.client.gui.screens.debug declared as ComponentModifier and TypeFieldDescription(package private) final Component
GameModeSwitcherScreen.GameModeIcon.name
private static final Component
GameModeSwitcherScreen.SELECT_KEY
Methods in net.minecraft.client.gui.screens.debug that return ComponentModifier and TypeMethodDescription(package private) Component
GameModeSwitcherScreen.GameModeIcon.getName()
Constructors in net.minecraft.client.gui.screens.debug with parameters of type ComponentModifierConstructorDescriptionprivate
GameModeIcon
(Component name, String command, ItemStack renderStack) -
Uses of Component in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as ComponentModifier and TypeFieldDescription(package private) final Component
BookEditScreen.LineInfo.asComponent
private static final Component
AbstractCommandBlockEditScreen.COMMAND_LABEL
private static final Component
StructureBlockEditScreen.CUSTOM_DATA_LABEL
private static final Component
MerchantScreen.DEPRECATED_TOOLTIP
private static final Component
StructureBlockEditScreen.DETECT_SIZE_LABEL
private static final Component
CrafterScreen.DISABLED_SLOT_TOOLTIP
private static final Component
BookEditScreen.EDIT_TITLE_LABEL
private static final Component
SmithingScreen.ERROR_TOOLTIP
private static final Component
JigsawBlockEditScreen.FINAL_STATE_LABEL
private static final Component
BookEditScreen.FINALIZE_WARNING_LABEL
private static final Component
StructureBlockEditScreen.INCLUDE_ENTITIES_LABEL
private static final Component
StructureBlockEditScreen.INTEGRITY_LABEL
private static final Component
JigsawBlockEditScreen.JOINT_LABEL
private static final Component
SmithingScreen.MISSING_TEMPLATE_TOOLTIP
private static final Component
JigsawBlockEditScreen.NAME_LABEL
private static final Component
StructureBlockEditScreen.NAME_LABEL
private final Component
BookEditScreen.ownerText
private Component
BookEditScreen.pageMsg
private Component
BookViewScreen.pageMsg
private static final Component
JigsawBlockEditScreen.PLACEMENT_PRIORITY_LABEL
private static final Component
JigsawBlockEditScreen.PLACEMENT_PRIORITY_TOOLTIP
protected final Component
AbstractContainerScreen.playerInventoryTitle
private static final Component
JigsawBlockEditScreen.POOL_LABEL
private static final Component
StructureBlockEditScreen.POSITION_LABEL
private static final Component
AbstractCommandBlockEditScreen.PREVIOUS_OUTPUT_LABEL
private static final Component
BeaconScreen.PRIMARY_EFFECT_LABEL
private static final Component
BeaconScreen.SECONDARY_EFFECT_LABEL
private static final Component
JigsawBlockEditScreen.SELECTION_PRIORITY_LABEL
private static final Component
JigsawBlockEditScreen.SELECTION_PRIORITY_TOOLTIP
private static final Component
AbstractCommandBlockEditScreen.SET_COMMAND_LABEL
private static final Component
StructureBlockEditScreen.SHOW_AIR_LABEL
private static final Component
StructureBlockEditScreen.SHOW_BOUNDING_BOX_LABEL
private static final Component
StructureBlockEditScreen.SIZE_LABEL
private static final Component
JigsawBlockEditScreen.TARGET_LABEL
private static final Component
AnvilScreen.TOO_EXPENSIVE_TEXT
private static final Component
MerchantScreen.TRADES_LABEL
private static final Component
CreativeModeInventoryScreen.TRASH_SLOT_TOOLTIP
Fields in net.minecraft.client.gui.screens.inventory with type parameters of type ComponentModifier and TypeFieldDescriptionBookViewScreen.BookAccess.pages
The field for thepages
record component.Methods in net.minecraft.client.gui.screens.inventory that return ComponentModifier and TypeMethodDescriptionprivate Component
EffectRenderingInventoryScreen.getEffectName
(MobEffectInstance effect) protected Component
AbstractCommandBlockEditScreen.getUsageNarration()
Methods in net.minecraft.client.gui.screens.inventory that return types with arguments of type ComponentModifier and TypeMethodDescriptionAbstractContainerScreen.getTooltipFromContainerItem
(ItemStack stack) CreativeModeInventoryScreen.getTooltipFromContainerItem
(ItemStack stack) BookViewScreen.BookAccess.pages()
Returns the value of thepages
record component.Constructors in net.minecraft.client.gui.screens.inventory with parameters of type ComponentModifierConstructorDescriptionAbstractContainerScreen
(T menu, Inventory playerInventory, Component title) AbstractFurnaceScreen
(T menu, AbstractFurnaceRecipeBookComponent recipeBookComponent, Inventory playerInventory, Component title, ResourceLocation texture, ResourceLocation listProgressSprite, ResourceLocation burnProgressSprite) AbstractSignEditScreen
(SignBlockEntity sign, boolean isFrontText, boolean isFiltered, Component title) AnvilScreen
(AnvilMenu menu, Inventory playerInventory, Component title) BeaconScreen
(BeaconMenu menu, Inventory playerInventory, Component title) protected
BeaconScreenButton
(int x, int y, Component message) protected
BeaconSpriteScreenButton
(int x, int y, ResourceLocation sprite, Component message) BlastFurnaceScreen
(BlastFurnaceMenu menu, Inventory playerInventory, Component title) BrewingStandScreen
(BrewingStandMenu menu, Inventory playerInventory, Component title) CartographyTableScreen
(CartographyTableMenu menu, Inventory playerInventory, Component title) ContainerScreen
(ChestMenu menu, Inventory playerInventory, Component title) CrafterScreen
(CrafterMenu menu, Inventory playerInventory, Component title) CraftingScreen
(CraftingMenu menu, Inventory playerInventory, Component title) DispenserScreen
(DispenserMenu menu, Inventory playerInventory, Component title) EffectRenderingInventoryScreen
(T menu, Inventory playerInventory, Component title) EnchantmentScreen
(EnchantmentMenu menu, Inventory playerInventory, Component title) FurnaceScreen
(FurnaceMenu menu, Inventory playerInventory, Component title) GrindstoneScreen
(GrindstoneMenu menu, Inventory playerInventory, Component title) HopperScreen
(HopperMenu menu, Inventory playerInventory, Component title) ItemCombinerScreen
(T menu, Inventory playerInventory, Component title, ResourceLocation menuResource) LecternScreen
(LecternMenu menu, Inventory playerInventory, Component title) LoomScreen
(LoomMenu menu, Inventory playerInventory, Component title) MerchantScreen
(MerchantMenu menu, Inventory playerInventory, Component title) ShulkerBoxScreen
(ShulkerBoxMenu menu, Inventory playerInventory, Component title) SmithingScreen
(SmithingMenu menu, Inventory playerInventory, Component title) SmokerScreen
(SmokerMenu menu, Inventory playerInventory, Component title) StonecutterScreen
(StonecutterMenu menu, Inventory playerInventory, Component title) Constructor parameters in net.minecraft.client.gui.screens.inventory with type arguments of type ComponentModifierConstructorDescriptionBookAccess
(List<Component> pages) Creates an instance of aBookAccess
record class. -
Uses of Component in net.minecraft.client.gui.screens.multiplayer
Fields in net.minecraft.client.gui.screens.multiplayer declared as ComponentModifier and TypeFieldDescription(package private) static final Component
ServerSelectionList.CANT_CONNECT_TEXT
(package private) static final Component
ServerSelectionList.CANT_RESOLVE_TEXT
private final Component
WarningScreen.check
private static final Component
SafetyScreen.CHECK
private static final Component
SafetyScreen.CONTENT
private static final Component
ServerSelectionList.NetworkServerEntry.HIDDEN_ADDRESS_TEXT
(package private) static final Component
ServerSelectionList.INCOMPATIBLE_STATUS
private static final Component
ServerSelectionList.NetworkServerEntry.LAN_SERVER_HEADER
private final Component
WarningScreen.message
private final Component
WarningScreen.narration
private static final Component
SafetyScreen.NARRATION
(package private) static final Component
ServerSelectionList.NO_CONNECTION_STATUS
(package private) static final Component
ServerSelectionList.ONLINE_STATUS
(package private) static final Component
ServerSelectionList.PINGING_STATUS
(package private) static final Component
ServerSelectionList.SCANNING_LABEL
private Component
ServerSelectionList.OnlineServerEntry.statusIconTooltip
private static final Component
SafetyScreen.TITLE
private static final Component
ServerLinksScreen.TITLE
Fields in net.minecraft.client.gui.screens.multiplayer with type parameters of type ComponentMethods in net.minecraft.client.gui.screens.multiplayer that return ComponentModifier and TypeMethodDescriptionServerSelectionList.LANHeader.getNarration()
ServerSelectionList.NetworkServerEntry.getNarration()
ServerSelectionList.OnlineServerEntry.getNarration()
WarningScreen.getNarrationMessage()
ServerSelectionList.NetworkServerEntry.getServerNarration()
Constructors in net.minecraft.client.gui.screens.multiplayer with parameters of type ComponentModifierConstructorDescriptionServerReconfigScreen
(Component title, Connection connection) protected
WarningScreen
(Component title, Component content, Component narration) protected
WarningScreen
(Component title, Component content, Component check, Component narration) -
Uses of Component in net.minecraft.client.gui.screens.options
Fields in net.minecraft.client.gui.screens.options declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
OptionsScreen.ACCESSIBILITY
private static final Component
VideoSettingsScreen.BUTTON_ACCEPT
private static final Component
VideoSettingsScreen.BUTTON_CANCEL
private static final Component
OptionsScreen.CHAT
private static final Component
OptionsScreen.CONTROLS
private static final Component
OptionsScreen.CREDITS_AND_ATTRIBUTION
private static final Component
VideoSettingsScreen.FABULOUS
private final Component
LanguageSelectScreen.LanguageSelectionList.Entry.language
private static final Component
OptionsScreen.LANGUAGE
(package private) final Component
UnsupportedGraphicsWarningScreen.ButtonOption.message
private final Component
UnsupportedGraphicsWarningScreen.narrationMessage
private static final Component
OptionsScreen.RESOURCEPACK
private static final Component
OptionsScreen.SKIN_CUSTOMIZATION
private static final Component
OptionsScreen.SOUNDS
private static final Component
OptionsScreen.TELEMETRY
static final Component
AccessibilityOptionsScreen.TITLE
private static final Component
ChatOptionsScreen.TITLE
private static final Component
MouseSettingsScreen.TITLE
private static final Component
OnlineOptionsScreen.TITLE
private static final Component
OptionsScreen.TITLE
private static final Component
SkinCustomizationScreen.TITLE
private static final Component
SoundOptionsScreen.TITLE
private static final Component
VideoSettingsScreen.TITLE
private static final Component
OptionsScreen.VIDEO
private static final Component
LanguageSelectScreen.WARNING_LABEL
private static final Component
VideoSettingsScreen.WARNING_MESSAGE
private static final Component
VideoSettingsScreen.WARNING_TITLE
Fields in net.minecraft.client.gui.screens.options with type parameters of type ComponentMethods in net.minecraft.client.gui.screens.options that return ComponentModifier and TypeMethodDescriptionLanguageSelectScreen.LanguageSelectionList.Entry.getNarration()
UnsupportedGraphicsWarningScreen.getNarrationMessage()
Methods in net.minecraft.client.gui.screens.options with parameters of type ComponentModifier and TypeMethodDescriptionprivate Button
OptionsScreen.openScreenButton
(Component name, Supplier<Screen> screenSupplier) Constructors in net.minecraft.client.gui.screens.options with parameters of type ComponentModifierConstructorDescriptionButtonOption
(Component message, Button.OnPress onPress) OptionsSubScreen
(Screen lastScreen, Options options, Component title) protected
UnsupportedGraphicsWarningScreen
(Component title, List<Component> message, com.google.common.collect.ImmutableList<UnsupportedGraphicsWarningScreen.ButtonOption> buttonOptions) Constructor parameters in net.minecraft.client.gui.screens.options with type arguments of type ComponentModifierConstructorDescriptionprotected
UnsupportedGraphicsWarningScreen
(Component title, List<Component> message, com.google.common.collect.ImmutableList<UnsupportedGraphicsWarningScreen.ButtonOption> buttonOptions) -
Uses of Component in net.minecraft.client.gui.screens.options.controls
Fields in net.minecraft.client.gui.screens.options.controls declared as ComponentModifier and TypeFieldDescription(package private) final Component
KeyBindsList.CategoryEntry.name
private final Component
KeyBindsList.KeyEntry.name
private static final Component
KeyBindsList.KeyEntry.RESET_BUTTON_TITLE
private static final Component
ControlsScreen.TITLE
private static final Component
KeyBindsScreen.TITLE
Constructors in net.minecraft.client.gui.screens.options.controls with parameters of type ComponentModifierConstructorDescriptionCategoryEntry
(Component name) (package private)
KeyEntry
(KeyMapping key, Component name) -
Uses of Component in net.minecraft.client.gui.screens.packs
Fields in net.minecraft.client.gui.screens.packs declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
PackSelectionScreen.AVAILABLE_TITLE
private static final Component
PackSelectionScreen.DIRECTORY_BUTTON_TOOLTIP
private static final Component
PackSelectionScreen.DRAG_AND_DROP
(package private) static final Component
TransferableSelectionList.INCOMPATIBLE_CONFIRM_TITLE
(package private) static final Component
TransferableSelectionList.INCOMPATIBLE_TITLE
private static final Component
PackSelectionScreen.OPEN_PACK_FOLDER_TITLE
private static final Component
PackSelectionScreen.SELECTED_TITLE
private final Component
TransferableSelectionList.title
Methods in net.minecraft.client.gui.screens.packs that return ComponentModifier and TypeMethodDescriptionPackSelectionModel.Entry.getDescription()
PackSelectionModel.EntryBase.getDescription()
default Component
PackSelectionModel.Entry.getExtendedDescription()
TransferableSelectionList.PackEntry.getNarration()
PackSelectionModel.Entry.getTitle()
PackSelectionModel.EntryBase.getTitle()
Methods in net.minecraft.client.gui.screens.packs with parameters of type ComponentModifier and TypeMethodDescriptionprivate static MultiLineLabel
TransferableSelectionList.PackEntry.cacheDescription
(Minecraft minecraft, Component text) private static FormattedCharSequence
Constructors in net.minecraft.client.gui.screens.packs with parameters of type ComponentModifierConstructorDescriptionPackSelectionScreen
(PackRepository repository, Consumer<PackRepository> output, Path packDir, Component title) TransferableSelectionList
(Minecraft minecraft, PackSelectionScreen screen, int width, int height, Component title) -
Uses of Component in net.minecraft.client.gui.screens.recipebook
Fields in net.minecraft.client.gui.screens.recipebook declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
RecipeBookComponent.ALL_RECIPES_TOOLTIP
private static final Component
BlastingRecipeBookComponent.FILTER_NAME
private static final Component
SmeltingRecipeBookComponent.FILTER_NAME
private static final Component
SmokingRecipeBookComponent.FILTER_NAME
private static final Component
RecipeButton.MORE_RECIPES_TOOLTIP
private static final Component
RecipeBookComponent.ONLY_CRAFTABLES_TOOLTIP
private static final Component
RecipeBookComponent.SEARCH_HINT
Methods in net.minecraft.client.gui.screens.recipebook that return ComponentModifier and TypeMethodDescriptionprotected Component
BlastingRecipeBookComponent.getRecipeFilterName()
protected Component
RecipeBookComponent.getRecipeFilterName()
protected Component
SmeltingRecipeBookComponent.getRecipeFilterName()
protected Component
SmokingRecipeBookComponent.getRecipeFilterName()
Methods in net.minecraft.client.gui.screens.recipebook that return types with arguments of type Component -
Uses of Component in net.minecraft.client.gui.screens.reporting
Fields in net.minecraft.client.gui.screens.reporting declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
AbstractReportScreen.ATTESTATION_CHECKBOX
private static final Component
ChatSelectionScreen.CONTEXT_INFO
private static final Component
AbstractReportScreen.DESCRIBE_PLACEHOLDER
private static final Component
AbstractReportScreen.DiscardReportWarningScreen.DISCARD
private static final Component
AbstractReportScreen.DiscardReportWarningScreen.DRAFT
private final Component
ChatSelectionScreen.ChatSelectionList.MessageHeadingEntry.heading
private static final Component
AbstractReportScreen.DiscardReportWarningScreen.MESSAGE
private static final Component
ReportPlayerScreen.MESSAGE
protected static final Component
AbstractReportScreen.MORE_COMMENTS_LABEL
private static final Component
AbstractReportScreen.MORE_COMMENTS_NARRATION
private final Component
ChatSelectionScreen.ChatSelectionList.MessageEntry.narration
protected static final Component
AbstractReportScreen.OBSERVED_WHAT_LABEL
private static final Component
ReportReasonSelectionScreen.READ_INFO_LABEL
private static final Component
ReportReasonSelectionScreen.REASON_DESCRIPTION
private static final Component
ReportReasonSelectionScreen.REASON_TITLE
private static final Component
ReportPlayerScreen.REPORT_CHAT
private static final Component
AbstractReportScreen.REPORT_ERROR_TITLE
private static final Component
ReportPlayerScreen.REPORT_NAME
private static final Component
AbstractReportScreen.REPORT_SEND_GENERIC_ERROR
private static final Component
AbstractReportScreen.REPORT_SENDING_TITLE
private static final Component
AbstractReportScreen.REPORT_SENT_MESSAGE
private static final Component
AbstractReportScreen.REPORT_SENT_TITLE
private static final Component
ReportPlayerScreen.REPORT_SKIN
private static final Component
AbstractReportScreen.DiscardReportWarningScreen.RETURN
private static final Component
ChatReportScreen.SELECT_CHAT_MESSAGE
protected static final Component
AbstractReportScreen.SELECT_REASON
protected static final Component
AbstractReportScreen.SEND_REPORT
private final Component
ChatSelectionScreen.ChatSelectionList.DividerEntry.text
private static final Component
AbstractReportScreen.DiscardReportWarningScreen.TITLE
private static final Component
ChatReportScreen.TITLE
private static final Component
ChatSelectionScreen.TITLE
private static final Component
NameReportScreen.TITLE
private static final Component
ReportPlayerScreen.TITLE
private static final Component
SkinReportScreen.TITLE
Methods in net.minecraft.client.gui.screens.reporting that return ComponentModifier and TypeMethodDescriptionChatSelectionScreen.ChatSelectionList.DividerEntry.getNarration()
ChatSelectionScreen.ChatSelectionList.Entry.getNarration()
ChatSelectionScreen.ChatSelectionList.MessageEntry.getNarration()
ReportReasonSelectionScreen.ReasonSelectionList.Entry.getNarration()
ChatSelectionScreen.getNarrationMessage()
ReportPlayerScreen.getNarrationMessage()
Methods in net.minecraft.client.gui.screens.reporting with parameters of type ComponentModifier and TypeMethodDescriptionvoid
ChatSelectionLogFiller.Output.acceptDivider
(Component text) void
ChatSelectionScreen.ChatSelectionList.acceptDivider
(Component text) private void
AbstractReportScreen.displayReportSendError
(Component error) Constructors in net.minecraft.client.gui.screens.reporting with parameters of type ComponentModifierConstructorDescriptionprotected
AbstractReportScreen
(Component title, Screen lastScreen, ReportingContext reportingContext, B reportBuilder) DividerEntry
(Component text) MessageEntry
(int chatId, Component text, Component narration, GuiMessageTag tagIcon, boolean canReport, boolean playerMessage) MessageHeadingEntry
(com.mojang.authlib.GameProfile profile, Component heading, boolean canReport) -
Uses of Component in net.minecraft.client.gui.screens.social
Fields in net.minecraft.client.gui.screens.social declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
PlayerEntry.BLOCKED
private static final Component
PlayerEntry.BLOCKED_OFFLINE
private static final Component
SocialInteractionsScreen.BLOCKING_HINT
private static final Component
SocialInteractionsScreen.EMPTY_BLOCKED
private static final Component
SocialInteractionsScreen.EMPTY_HIDDEN
(package private) static final Component
SocialInteractionsScreen.EMPTY_SEARCH
private static final Component
PlayerEntry.HIDDEN
private static final Component
PlayerEntry.HIDDEN_OFFLINE
private static final Component
PlayerEntry.HIDE_TEXT_TOOLTIP
private static final Component
PlayerEntry.OFFLINE
private static final Component
PlayerEntry.REPORT_DISABLED_TOOLTIP
private static final Component
PlayerEntry.REPORT_PLAYER_TOOLTIP
private static final Component
SocialInteractionsScreen.SEARCH_HINT
private Component
SocialInteractionsScreen.serverLabel
private static final Component
PlayerEntry.SHOW_TEXT_TOOLTIP
private static final Component
SocialInteractionsScreen.TAB_ALL
private static final Component
SocialInteractionsScreen.TAB_ALL_SELECTED
private static final Component
SocialInteractionsScreen.TAB_BLOCKED
private static final Component
SocialInteractionsScreen.TAB_BLOCKED_SELECTED
private static final Component
SocialInteractionsScreen.TAB_HIDDEN
private static final Component
SocialInteractionsScreen.TAB_HIDDEN_SELECTED
private static final Component
SocialInteractionsScreen.TITLE
Methods in net.minecraft.client.gui.screens.social that return ComponentModifier and TypeMethodDescriptionSocialInteractionsScreen.getNarrationMessage()
private Component
PlayerEntry.getStatusComponent()
Methods in net.minecraft.client.gui.screens.social with parameters of type ComponentModifier and TypeMethodDescriptionprivate void
PlayerEntry.onHiddenOrShown
(boolean visible, Component message) -
Uses of Component in net.minecraft.client.gui.screens.telemetry
Fields in net.minecraft.client.gui.screens.telemetry declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
TelemetryInfoScreen.BUTTON_GIVE_FEEDBACK
private static final Component
TelemetryInfoScreen.BUTTON_PRIVACY_STATEMENT
private static final Component
TelemetryInfoScreen.BUTTON_VIEW_DATA
private static final Component
TelemetryInfoScreen.CHECKBOX_OPT_IN
private static final Component
TelemetryInfoScreen.DESCRIPTION
private final Component
TelemetryEventWidget.Content.narration
The field for thenarration
record component.private static final Component
TelemetryEventWidget.PROPERTY_TITLE
private static final Component
TelemetryInfoScreen.TITLE
Methods in net.minecraft.client.gui.screens.telemetry that return ComponentModifier and TypeMethodDescriptionTelemetryInfoScreen.getNarrationMessage()
private Component
TelemetryEventWidget.grayOutIfDisabled
(Component component, boolean disabled) TelemetryEventWidget.Content.narration()
Returns the value of thenarration
record component.Methods in net.minecraft.client.gui.screens.telemetry with parameters of type ComponentModifier and TypeMethodDescriptionvoid
void
void
private Component
TelemetryEventWidget.grayOutIfDisabled
(Component component, boolean disabled) Constructors in net.minecraft.client.gui.screens.telemetry with parameters of type Component -
Uses of Component in net.minecraft.client.gui.screens.worldselection
Fields in net.minecraft.client.gui.screens.worldselection declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
CreateWorldScreen.GameTab.ALLOW_COMMANDS
(package private) static final Component
CreateWorldScreen.ALLOW_COMMANDS_INFO
private static final Component
CreateWorldScreen.WorldTab.AMPLIFIED_HELP_TEXT
private static final Component
EditWorldScreen.BACKUP_BUTTON
private static final Component
EditWorldScreen.BACKUP_FOLDER_BUTTON
private static final Component
CreateWorldScreen.WorldTab.BONUS_CHEST
private static final Component
WorldCreationUiState.WorldTypeEntry.CUSTOM_WORLD_DESCRIPTION
private static final Component
CreateWorldScreen.MoreTab.DATA_PACKS_LABEL
private static final Component
WorldCreationUiState.DEFAULT_WORLD_NAME
private static final Component
ConfirmExperimentalFeaturesScreen.DETAILS_BUTTON
final Component
WorldCreationUiState.SelectedGameMode.displayName
(package private) static final Component
CreateWorldScreen.EXPERIMENTS_LABEL
private static final Component
EditWorldScreen.FOLDER_BUTTON
(package private) static final Component
WorldSelectionList.FROM_NEWER_TOOLTIP_1
(package private) static final Component
WorldSelectionList.FROM_NEWER_TOOLTIP_2
(package private) static final Component
CreateWorldScreen.GAME_MODEL_LABEL
private static final Component
CreateWorldScreen.MoreTab.GAME_RULES_LABEL
private static final Component
CreateWorldScreen.WorldTab.GENERATE_STRUCTURES
private static final Component
CreateWorldScreen.WorldTab.GENERATE_STRUCTURES_INFO
(package private) static final Component
WorldSelectionList.INCOMPATIBLE_VERSION_TOOLTIP
private Component
SwitchGrid.SwitchBuilder.info
private final Component
WorldCreationUiState.SelectedGameMode.info
protected static final Component
ExperimentsScreen.INFO
(package private) final Component
EditGameRulesScreen.CategoryRuleEntry.label
private final Component
SwitchGrid.SwitchBuilder.label
private static final Component
WorldSelectionList.LoadingHeader.LOADING_LABEL
private final Component
ConfirmExperimentalFeaturesScreen.DetailsScreen.PackListEntry.message
private static final Component
ConfirmExperimentalFeaturesScreen.MESSAGE
(package private) static final Component
CreateWorldScreen.NAME_LABEL
private static final Component
EditWorldScreen.NAME_LABEL
private static final Component
EditWorldScreen.OPTIMIIZE_DESCRIPTION
private static final Component
EditWorldScreen.OPTIMIZE_BUTTON
private static final Component
EditWorldScreen.OPTIMIZE_TITLE
private final Component
ConfirmExperimentalFeaturesScreen.DetailsScreen.PackListEntry.packId
private static final Component
CreateWorldScreen.PREPARING_WORLD_DATA
private static final Component
EditWorldScreen.RESET_ICON_BUTTON
private static final Component
EditWorldScreen.SAVE_BUTTON
(package private) static final Component
CreateWorldScreen.WorldTab.SEED_EMPTY_HINT
private static final Component
CreateWorldScreen.WorldTab.SEED_LABEL
(package private) static final Component
WorldSelectionList.SNAPSHOT_TOOLTIP_1
(package private) static final Component
WorldSelectionList.SNAPSHOT_TOOLTIP_2
private static final Component
ConfirmExperimentalFeaturesScreen.DetailsScreen.TITLE
private static final Component
ConfirmExperimentalFeaturesScreen.TITLE
private static final Component
CreateWorldScreen.GameTab.TITLE
private static final Component
CreateWorldScreen.MoreTab.TITLE
private static final Component
CreateWorldScreen.WorldTab.TITLE
private static final Component
EditGameRulesScreen.TITLE
protected static final Component
ExperimentsScreen.TITLE
(package private) static final Component
WorldSelectionList.WORLD_EXPERIMENTAL
(package private) static final Component
WorldSelectionList.WORLD_LOCKED_TOOLTIP
(package private) static final Component
WorldSelectionList.WORLD_REQUIRES_CONVERSION
Methods in net.minecraft.client.gui.screens.worldselection that return ComponentModifier and TypeMethodDescriptionWorldCreationUiState.WorldTypeEntry.describePreset()
protected static Component
ExperimentsScreen.getHumanReadableTitle
(Pack pack) WorldCreationUiState.SelectedGameMode.getInfo()
ConfirmExperimentalFeaturesScreen.DetailsScreen.PackListEntry.getNarration()
WorldSelectionList.LoadingHeader.getNarration()
WorldSelectionList.WorldListEntry.getNarration()
ConfirmExperimentalFeaturesScreen.getNarrationMessage()
ExperimentsScreen.getNarrationMessage()
Methods in net.minecraft.client.gui.screens.worldselection with parameters of type ComponentModifier and TypeMethodDescriptionSwitchGrid.Builder.addSwitch
(Component label, BooleanSupplier stateSupplier, Consumer<Boolean> onClicked) EditGameRulesScreen.EntryFactory.create
(Component label, List<FormattedCharSequence> tooltip, String p_101157_, T p_101158_) private void
WorldSelectionList.handleLevelLoadFailure
(Component exceptionMessage) private static void
CreateWorldScreen.queueLoadScreen
(Minecraft minecraft, Component title) Constructors in net.minecraft.client.gui.screens.worldselection with parameters of type ComponentModifierConstructorDescriptionBooleanRuleEntry
(Component label, List<FormattedCharSequence> tooltip, String p_101103_, GameRules.BooleanValue value) CategoryRuleEntry
(Component label) GameRuleEntry
(List<FormattedCharSequence> tooltip, Component label) IntegerRuleEntry
(Component label, List<FormattedCharSequence> tooltip, String p_101177_, GameRules.IntegerValue value) (package private)
PackListEntry
(Component packId, Component message, MultiLineLabel splitMessage) (package private)
SwitchBuilder
(Component label, BooleanSupplier stateSupplier, Consumer<Boolean> onClicked, int buttonWidth) -
Uses of Component in net.minecraft.client.gui.spectator
Fields in net.minecraft.client.gui.spectator declared as ComponentModifier and TypeFieldDescription(package private) static final Component
SpectatorMenu.CLOSE_MENU_TEXT
private final Component
PlayerMenuItem.name
(package private) static final Component
SpectatorMenu.NEXT_PAGE_TEXT
(package private) static final Component
SpectatorMenu.PREVIOUS_PAGE_TEXT
private static final Component
RootSpectatorMenuCategory.PROMPT_TEXT
Methods in net.minecraft.client.gui.spectator that return Component -
Uses of Component in net.minecraft.client.gui.spectator.categories
Fields in net.minecraft.client.gui.spectator.categories declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
TeleportToPlayerMenuCategory.TELEPORT_PROMPT
private static final Component
TeleportToTeamMenuCategory.TELEPORT_PROMPT
private static final Component
TeleportToPlayerMenuCategory.TELEPORT_TEXT
private static final Component
TeleportToTeamMenuCategory.TELEPORT_TEXT
Methods in net.minecraft.client.gui.spectator.categories that return Component -
Uses of Component in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
ServerStatusPinger.CANT_CONNECT_MESSAGE
private static final Component
ClientPacketListener.CHAT_VALIDATION_FAILED_ERROR
private static final Component
ClientCommonPacketListenerImpl.GENERIC_DISCONNECT_MESSAGE
private static final Component
ClientPacketListener.INVALID_PACKET
(package private) final Component
ClientHandshakePacketListenerImpl.State.message
ServerData.motd
private final Component
ServerData.ServerPackStatus.name
private static final Component
ClientPacketListener.RECONFIGURE_SCREEN_MESSAGE
ServerData.status
private Component
PlayerInfo.tabListDisplayName
When this is non-null, it is displayed instead of the player's real nameprivate static final Component
ClientPacketListener.UNSECURE_SERVER_TOAST_TITLE
private static final Component
ClientPacketListener.UNSERURE_SERVER_TOAST
ServerData.version
Fields in net.minecraft.client.multiplayer with type parameters of type ComponentModifier and TypeFieldDescriptionprivate Map
<ResourceLocation, Component> ClientConfigurationPacketListenerImpl.failureReasons
ServerData.playerList
ClientHandshakePacketListenerImpl.updateStatus
Methods in net.minecraft.client.multiplayer that return ComponentModifier and TypeMethodDescriptionprivate Component
ClientHandshakePacketListenerImpl.authenticateServer
(String serverHash) static Component
ServerStatusPinger.formatPlayerCount
(int players, int capacity) ServerData.ServerPackStatus.getName()
PlayerInfo.getTabListDisplayName()
(package private) static Component
ClientCommonPacketListenerImpl.preparePackPrompt
(Component line1, Component line2) Methods in net.minecraft.client.multiplayer with parameters of type ComponentModifier and TypeMethodDescriptionprivate Screen
ClientCommonPacketListenerImpl.addOrUpdatePackPrompt
(UUID id, URL url, String hash, boolean required, Component prompt) ClientCommonPacketListenerImpl.createDisconnectionInfo
(Component reason, Throwable error) (package private) void
ServerStatusPinger.onPingFailed
(Component reason, ServerData serverData) (package private) static Component
ClientCommonPacketListenerImpl.preparePackPrompt
(Component line1, Component line2) void
PlayerInfo.setTabListDisplayName
(Component displayName) ClientCommonPacketListenerImpl.PackConfirmScreen.update
(Minecraft minecraft, UUID id, URL url, String hash, boolean required, Component prompt) Constructors in net.minecraft.client.multiplayer with parameters of type ComponentModifierConstructorDescription(package private)
PackConfirmScreen
(Minecraft minecraft, Screen parentScreen, List<ClientCommonPacketListenerImpl.PackConfirmScreen.PendingRequest> requests, boolean required, Component prompt) private
State
(Component message, Set<ClientHandshakePacketListenerImpl.State> fromStates) Constructor parameters in net.minecraft.client.multiplayer with type arguments of type ComponentModifierConstructorDescriptionClientHandshakePacketListenerImpl
(Connection connection, Minecraft minecraft, ServerData serverData, Screen parent, boolean newWorld, Duration worldLoadDuration, Consumer<Component> updateStatus, TransferState cookies) -
Uses of Component in net.minecraft.client.multiplayer.chat
Fields in net.minecraft.client.multiplayer.chat declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
ChatListener.CHAT_VALIDATION_ERROR
private final Component
LoggedChatMessage.System.message
The field for themessage
record component.Methods in net.minecraft.client.multiplayer.chat that return ComponentModifier and TypeMethodDescriptionprivate Component
LoggedChatMessage.Player.getTimeComponent()
LoggedChatMessage.System.message()
Returns the value of themessage
record component.LoggedChatMessage.Player.toContentComponent()
LoggedChatMessage.System.toContentComponent()
LoggedChatMessage.toContentComponent()
LoggedChatMessage.Player.toHeadingComponent()
LoggedChatMessage.Player.toNarrationComponent()
default Component
LoggedChatMessage.toNarrationComponent()
Methods in net.minecraft.client.multiplayer.chat with parameters of type ComponentModifier and TypeMethodDescriptionprivate static boolean
ChatTrustLevel.containsModifiedStyle
(Component chatMessage) static ChatTrustLevel
ChatTrustLevel.evaluate
(PlayerChatMessage chatMessage, Component decoratedServerContent, Instant timestamp) private ChatTrustLevel
ChatListener.evaluateTrustLevel
(PlayerChatMessage chatMessage, Component decoratedServerContent, Instant timestamp) private UUID
ChatListener.guessChatUUID
(Component message) void
ChatListener.handleDisguisedChatMessage
(Component message, ChatType.Bound boundChatType) void
ChatListener.handleSystemMessage
(Component message, boolean isOverlay) private static boolean
ChatTrustLevel.isModified
(PlayerChatMessage chatMessage, Component decoratedServerContent) private void
ChatListener.logSystemMessage
(Component message, Instant timestamp) private void
ChatListener.narrateChatMessage
(ChatType.Bound boundChatType, Component message) private boolean
ChatListener.showMessageToPlayer
(ChatType.Bound boundChatType, PlayerChatMessage chatMessage, Component decoratedServerContent, com.mojang.authlib.GameProfile gameProfile, boolean onlyShowSecureChat, Instant timestamp) static LoggedChatMessage.System
Constructors in net.minecraft.client.multiplayer.chat with parameters of type Component -
Uses of Component in net.minecraft.client.multiplayer.chat.report
Fields in net.minecraft.client.multiplayer.chat.report declared as ComponentModifier and TypeFieldDescriptionprivate final Component
ReportReason.description
private static final Component
AbuseReportSender.Services.HTTP_ERROR_TEXT
private static final Component
AbuseReportSender.Services.JSON_ERROR_TEXT
private final Component
Report.CannotBuildReason.message
The field for themessage
record component.private static final Component
AbuseReportSender.Services.SERVICE_UNAVAILABLE_TEXT
private final Component
BanReason.title
private final Component
ReportReason.title
Methods in net.minecraft.client.multiplayer.chat.report that return ComponentModifier and TypeMethodDescriptionReportReason.description()
private Component
AbuseReportSender.Services.getErrorDescription
(com.mojang.authlib.exceptions.MinecraftClientException exception) private Component
AbuseReportSender.Services.getHttpErrorDescription
(com.mojang.authlib.exceptions.MinecraftClientHttpException httpException) Report.CannotBuildReason.message()
Returns the value of themessage
record component.BanReason.title()
ReportReason.title()
Constructors in net.minecraft.client.multiplayer.chat.report with parameters of type ComponentModifierConstructorDescriptionCannotBuildReason
(Component message) Creates an instance of aCannotBuildReason
record class.SendException
(Component p_239646_, Throwable p_239647_) -
Uses of Component in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type ComponentModifier and TypeMethodDescriptionvoid
LocalPlayer.displayClientMessage
(Component chatComponent, boolean actionBar) void
LocalPlayer.sendSystemMessage
(Component component) void
RemotePlayer.sendSystemMessage
(Component component) -
Uses of Component in net.minecraft.client.quickplay
Fields in net.minecraft.client.quickplay declared as ComponentModifier and TypeFieldDescriptionstatic final Component
QuickPlay.ERROR_TITLE
private static final Component
QuickPlay.INVALID_IDENTIFIER
private static final Component
QuickPlay.REALM_CONNECT
private static final Component
QuickPlay.REALM_PERMISSION
private static final Component
QuickPlay.TO_REALMS_LIST
private static final Component
QuickPlay.TO_TITLE
private static final Component
QuickPlay.TO_WORLD_LIST
-
Uses of Component in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type ComponentModifier and TypeMethodDescriptionprotected void
EntityRenderer.renderNameTag
(T entity, Component displayName, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float partialTick) protected void
ItemFrameRenderer.renderNameTag
(T entity, Component displayName, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float partialTick) private Display.TextDisplay.CachedInfo
DisplayRenderer.TextDisplayRenderer.splitLines
(Component text, int maxWidth) -
Uses of Component in net.minecraft.client.renderer.entity.player
Methods in net.minecraft.client.renderer.entity.player with parameters of type ComponentModifier and TypeMethodDescriptionprotected void
PlayerRenderer.renderNameTag
(AbstractClientPlayer entity, Component displayName, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float partialTick) -
Uses of Component in net.minecraft.client.resources
Fields in net.minecraft.client.resources with type parameters of type ComponentMethods in net.minecraft.client.resources that return ComponentMethods in net.minecraft.client.resources with parameters of type ComponentModifier and TypeMethodDescriptionprotected Pack
ClientPackSource.createBuiltinPack
(String id, Pack.ResourcesSupplier resources, Component title) private static PackLocationInfo
ClientPackSource.createBuiltInPackLocation
(String id, Component title) -
Uses of Component in net.minecraft.client.resources.language
Fields in net.minecraft.client.resources.language with type parameters of type ComponentMethods in net.minecraft.client.resources.language that return ComponentModifier and TypeMethodDescriptionClientLanguage.getComponent
(String key) LanguageInfo.toComponent()
-
Uses of Component in net.minecraft.client.resources.server
Fields in net.minecraft.client.resources.server declared as Component -
Uses of Component in net.minecraft.client.server
Methods in net.minecraft.client.server that return ComponentModifier and TypeMethodDescriptionIntegratedPlayerList.canPlayerLogin
(SocketAddress socketAddress, com.mojang.authlib.GameProfile gameProfile) -
Uses of Component in net.minecraft.client.sounds
Fields in net.minecraft.client.sounds declared as ComponentMethods in net.minecraft.client.sounds that return Component -
Uses of Component in net.minecraft.client.tutorial
Fields in net.minecraft.client.tutorial declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
CraftPlanksTutorialStep.CRAFT_DESCRIPTION
private static final Component
CraftPlanksTutorialStep.CRAFT_TITLE
private static final Component
FindTreeTutorialStepInstance.DESCRIPTION
private static final Component
OpenInventoryTutorialStep.DESCRIPTION
private static final Component
PunchTreeTutorialStepInstance.DESCRIPTION
private static final Component
MovementTutorialStepInstance.LOOK_DESCRIPTION
private static final Component
MovementTutorialStepInstance.LOOK_TITLE
private static final Component
MovementTutorialStepInstance.MOVE_DESCRIPTION
private static final Component
MovementTutorialStepInstance.MOVE_TITLE
private static final Component
FindTreeTutorialStepInstance.TITLE
private static final Component
OpenInventoryTutorialStep.TITLE
private static final Component
PunchTreeTutorialStepInstance.TITLE
Methods in net.minecraft.client.tutorial that return Component -
Uses of Component in net.minecraft.commands
Fields in net.minecraft.commands declared as ComponentModifier and TypeFieldDescriptionprivate final Component
CommandSourceStack.displayName
private final Component
FunctionInstantiationException.messageComponent
Methods in net.minecraft.commands that return ComponentModifier and TypeMethodDescriptionCommandSourceStack.getDisplayName()
FunctionInstantiationException.messageComponent()
Methods in net.minecraft.commands with parameters of type ComponentModifier and TypeMethodDescriptionprivate void
CommandSourceStack.broadcastToAdmins
(Component message) void
CommandSourceStack.sendFailure
(Component message) void
CommandSource.sendSystemMessage
(Component component) void
CommandSourceStack.sendSystemMessage
(Component message) Method parameters in net.minecraft.commands with type arguments of type ComponentModifier and TypeMethodDescriptionvoid
CommandSourceStack.sendSuccess
(Supplier<Component> messageSupplier, boolean allowLogging) Constructors in net.minecraft.commands with parameters of type ComponentModifierConstructorDescriptionCommandSourceStack
(CommandSource source, Vec3 worldPosition, Vec2 rotation, ServerLevel level, int permissionLevel, String textName, Component displayName, MinecraftServer server, Entity entity) protected
CommandSourceStack
(CommandSource source, Vec3 worldPosition, Vec2 rotation, ServerLevel level, int permissionLevel, String textName, Component displayName, MinecraftServer server, Entity entity, boolean silent, CommandResultCallback resultCallback, EntityAnchorArgument.Anchor anchor, CommandSigningContext signingContext, TaskChainer chatMessageChainer) FunctionInstantiationException
(Component messageComponent) -
Uses of Component in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return ComponentModifier and TypeMethodDescriptionstatic Component
ComponentArgument.getComponent
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static Component
MessageArgument.getMessage
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) ComponentArgument.parse
(com.mojang.brigadier.StringReader reader) (package private) Component
MessageArgument.Message.resolveComponent
(CommandSourceStack source) MessageArgument.Message.toComponent
(CommandSourceStack source, boolean allowSelectors) Converts this message into a text component, replacing any selectors in the text with the actual evaluated selector.MessageArgument.Part.toComponent
(CommandSourceStack source) Runs the selector and returns the component produced by it. -
Uses of Component in net.minecraft.commands.arguments.selector
Methods in net.minecraft.commands.arguments.selector that return Component -
Uses of Component in net.minecraft.commands.arguments.selector.options
Fields in net.minecraft.commands.arguments.selector.options declared as ComponentModifier and TypeFieldDescriptionprivate final Component
EntitySelectorOptions.Option.description
The field for thedescription
record component.Methods in net.minecraft.commands.arguments.selector.options that return ComponentModifier and TypeMethodDescriptionEntitySelectorOptions.Option.description()
Returns the value of thedescription
record component.Methods in net.minecraft.commands.arguments.selector.options with parameters of type ComponentModifier and TypeMethodDescriptionstatic void
EntitySelectorOptions.register
(String id, EntitySelectorOptions.Modifier handler, Predicate<EntitySelectorParser> predicate, Component tooltip) Constructors in net.minecraft.commands.arguments.selector.options with parameters of type ComponentModifierConstructorDescription(package private)
Option
(EntitySelectorOptions.Modifier modifier, Predicate<EntitySelectorParser> canUse, Component description) Creates an instance of aOption
record class. -
Uses of Component in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type ComponentModifier and TypeFieldDescriptionstatic final DataComponentType
<Component> DataComponents.CUSTOM_NAME
static final DataComponentType
<Component> DataComponents.ITEM_NAME
-
Uses of Component in net.minecraft.data.metadata
Methods in net.minecraft.data.metadata with parameters of type ComponentModifier and TypeMethodDescriptionstatic PackMetadataGenerator
PackMetadataGenerator.forFeaturePack
(PackOutput output, Component description) static PackMetadataGenerator
PackMetadataGenerator.forFeaturePack
(PackOutput output, Component description, FeatureFlagSet flags) -
Uses of Component in net.minecraft.locale
Methods in net.minecraft.locale that return Component -
Uses of Component in net.minecraft.nbt
Fields in net.minecraft.nbt declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
TextComponentTagVisitor.BYTE_ARRAY_TYPE
private static final Component
TextComponentTagVisitor.BYTE_TYPE
private static final Component
TextComponentTagVisitor.DOUBLE_TYPE
private static final Component
TextComponentTagVisitor.FLOAT_TYPE
private static final Component
TextComponentTagVisitor.FOLDED
private static final Component
TextComponentTagVisitor.INT_TYPE
private static final Component
TextComponentTagVisitor.LONG_TYPE
private static final Component
TextComponentTagVisitor.SHORT_TYPE
Methods in net.minecraft.nbt that return ComponentModifier and TypeMethodDescriptionprotected static Component
TextComponentTagVisitor.handleEscapePretty
(String text) static Component
NbtUtils.toPrettyComponent
(Tag tag) -
Uses of Component in net.minecraft.network
Fields in net.minecraft.network declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
RateKickingConnection.EXCEED_REASON
private final Component
DisconnectionDetails.reason
The field for thereason
record component.Methods in net.minecraft.network that return ComponentModifier and TypeMethodDescriptionDisconnectionDetails.reason()
Returns the value of thereason
record component.Methods in net.minecraft.network with parameters of type ComponentModifier and TypeMethodDescriptiondefault DisconnectionDetails
PacketListener.createDisconnectionInfo
(Component reason, Throwable error) void
Connection.disconnect
(Component message) Closes the channel with a given reason.Constructors in net.minecraft.network with parameters of type ComponentModifierConstructorDescriptionDisconnectionDetails
(Component p_350943_) Creates an instance of aDisconnectionDetails
record class. -
Uses of Component in net.minecraft.network.chat
Classes in net.minecraft.network.chat that implement ComponentModifier and TypeClassDescriptionclass
A Component which can have its Style and siblings modified.Fields in net.minecraft.network.chat declared as ComponentModifier and TypeFieldDescription(package private) static final Component
SignedMessageChain.DecodeException.CHAIN_BROKEN
private final Component
ThrowingComponent.component
static final Component
CommonComponents.CONNECT_FAILED
private final Component
OutgoingChatMessage.Disguised.content
The field for thecontent
record component.static final Component
ComponentUtils.DEFAULT_NO_STYLE_SEPARATOR
static final Component
ComponentUtils.DEFAULT_SEPARATOR
static final Component
CommonComponents.ELLIPSIS
static final Component
CommonComponents.EMPTY
(package private) static final Component
SignedMessageChain.DecodeException.EXPIRED_PROFILE_KEY
static final Component
CommonComponents.GUI_ACKNOWLEDGE
static final Component
CommonComponents.GUI_BACK
static final Component
CommonComponents.GUI_CANCEL
static final Component
CommonComponents.GUI_CONTINUE
static final Component
CommonComponents.GUI_COPY_LINK_TO_CLIPBOARD
static final Component
CommonComponents.GUI_DISCONNECT
static final Component
CommonComponents.GUI_DONE
static final Component
CommonComponents.GUI_NO
static final Component
CommonComponents.GUI_OK
static final Component
CommonComponents.GUI_OPEN_IN_BROWSER
static final Component
CommonComponents.GUI_PROCEED
static final Component
CommonComponents.GUI_TO_TITLE
static final Component
CommonComponents.GUI_YES
(package private) static final Component
SignedMessageChain.DecodeException.INVALID_SIGNATURE
(package private) static final Component
SignedMessageChain.DecodeException.MISSING_PROFILE_KEY
private final Component
ChatType.Bound.name
The field for thename
record component.static final Component
CommonComponents.NARRATION_SEPARATOR
static final Component
CommonComponents.NEW_LINE
static final Component
CommonComponents.OPTION_OFF
static final Component
CommonComponents.OPTION_ON
(package private) static final Component
SignedMessageChain.DecodeException.OUT_OF_ORDER_CHAT
static final Component
CommonComponents.SPACE
static final Component
CommonComponents.TRANSFER_CONNECT_FAILED
private final Component
PlayerChatMessage.unsignedContent
The field for theunsignedContent
record component.Fields in net.minecraft.network.chat with type parameters of type ComponentModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Component> ComponentSerialization.CODEC
static final com.mojang.serialization.Codec
<Component> ComponentSerialization.FLAT_CODEC
HoverEvent.EntityTooltipInfo.linesCache
HoverEvent.EntityTooltipInfo.name
static final StreamCodec
<RegistryFriendlyByteBuf, Optional<Component>> ComponentSerialization.OPTIONAL_STREAM_CODEC
static final HoverEvent.Action
<Component> HoverEvent.Action.SHOW_TEXT
MutableComponent.siblings
static final StreamCodec
<RegistryFriendlyByteBuf, Component> ComponentSerialization.STREAM_CODEC
ChatType.Bound.targetName
The field for thetargetName
record component.static final StreamCodec
<io.netty.buffer.ByteBuf, Component> ComponentSerialization.TRUSTED_CONTEXT_FREE_STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Optional<Component>> ComponentSerialization.TRUSTED_OPTIONAL_STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Component> ComponentSerialization.TRUSTED_STREAM_CODEC
Methods in net.minecraft.network.chat that return ComponentModifier and TypeMethodDescriptionFilterMask.applyWithFormatting
(String text) OutgoingChatMessage.content()
OutgoingChatMessage.Disguised.content()
Returns the value of thecontent
record component.OutgoingChatMessage.Player.content()
ChatDecorator.decorate
(ServerPlayer player, Component message) ChatTypeDecoration.decorate
(Component content, ChatType.Bound boundChatType) PlayerChatMessage.decoratedContent()
ChatType.Bound.decorateNarration
(Component content) static <T extends Comparable<T>>
ComponentComponentUtils.formatAndSortList
(Collection<T> elements, Function<T, Component> componentExtractor) static Component
ComponentUtils.formatList
(Collection<? extends Component> elements, Component separator) static <T> Component
ComponentUtils.formatList
(Collection<? extends T> elements, Function<T, Component> componentExtractor) static Component
ComponentUtils.formatList
(Collection<String> elements) static Component
ComponentUtils.fromMessage
(com.mojang.brigadier.Message message) ThrowingComponent.getComponent()
static Component
CommonComponents.joinLines
(Collection<? extends Component> lines) static Component
ChatType.Bound.name()
Returns the value of thename
record component.static Component
Component.nullToEmpty
(String text) static Component
CommonComponents.optionStatus
(boolean isEnabled) private Component[]
ChatTypeDecoration.resolveParameters
(Component content, ChatType.Bound boundChatType) ChatTypeDecoration.Parameter.select
(Component content, ChatType.Bound boundChatType) ChatTypeDecoration.Parameter.Selector.select
(Component content, ChatType.Bound boundChatType) static Component
Component.translationArg
(com.mojang.brigadier.Message message) static Component
Component.translationArg
(URI uri) static Component
Component.translationArg
(Date date) static Component
Component.translationArg
(UUID uuid) static Component
Component.translationArg
(ResourceLocation location) static Component
Component.translationArg
(ChunkPos chunkPos) PlayerChatMessage.unsignedContent()
Returns the value of theunsignedContent
record component.Methods in net.minecraft.network.chat that return types with arguments of type ComponentModifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec
<Component> ComponentSerialization.createCodec
(com.mojang.serialization.Codec<Component> p_codec) static com.mojang.serialization.Codec
<Component> ComponentSerialization.flatCodec
(int maxSize) Component.getSiblings()
MutableComponent.getSiblings()
HoverEvent.EntityTooltipInfo.getTooltipLines()
ChatType.Bound.targetName()
Returns the value of thetargetName
record component.Component.toFlatList()
Component.toFlatList
(Style style) Methods in net.minecraft.network.chat with parameters of type ComponentModifier and TypeMethodDescriptionAdd the given component to this component's siblings.static ChatType.Bound
ChatType.bind
(ResourceKey<ChatType> chatTypeKey, RegistryAccess registryAccess, Component name) default boolean
ChatDecorator.decorate
(ServerPlayer player, Component message) ChatTypeDecoration.decorate
(Component content, ChatType.Bound boundChatType) ChatType.Bound.decorateNarration
(Component content) static Component
ComponentUtils.formatList
(Collection<? extends Component> elements, Component separator) static <T> MutableComponent
ComponentUtils.formatList
(Collection<? extends T> elements, Component separator, Function<T, Component> componentExtractor) static boolean
ComponentUtils.isTranslationResolvable
(Component component) static MutableComponent
CommonComponents.joinForNarration
(Component... components) static Component
static com.mojang.serialization.DataResult
<HoverEvent.EntityTooltipInfo> HoverEvent.EntityTooltipInfo.legacyCreate
(Component name, RegistryOps<?> ops) private static com.mojang.serialization.DataResult
<HoverEvent.ItemStackInfo> HoverEvent.ItemStackInfo.legacyCreate
(Component name, RegistryOps<?> ops) static MutableComponent
CommonComponents.optionNameValue
(Component caption, Component valueMessage) static MutableComponent
CommonComponents.optionStatus
(Component message, boolean composed) com.mojang.serialization.DataResult
<T> HoverEvent.LegacyConverter.parse
(Component name, RegistryOps<?> ops) private Component[]
ChatTypeDecoration.resolveParameters
(Component content, ChatType.Bound boundChatType) ChatTypeDecoration.Parameter.select
(Component content, ChatType.Bound boundChatType) ChatTypeDecoration.Parameter.Selector.select
(Component content, ChatType.Bound boundChatType) (package private) static com.google.gson.JsonElement
Component.Serializer.serialize
(Component component, HolderLookup.Provider provider) com.google.gson.JsonElement
Component.SerializerAdapter.serialize
(Component src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) static String
Component.Serializer.toJson
(Component component, HolderLookup.Provider registries) static MutableComponent
ComponentUtils.updateForEntity
(CommandSourceStack commandSourceStack, Component p_component, Entity entity, int recursionDepth) ChatType.Bound.withTargetName
(Component targetName) PlayerChatMessage.withUnsignedContent
(Component message) static MutableComponent
ComponentUtils.wrapInSquareBrackets
(Component toWrap) Wraps the text with square brackets.Method parameters in net.minecraft.network.chat with type arguments of type ComponentModifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec
<Component> ComponentSerialization.createCodec
(com.mojang.serialization.Codec<Component> p_codec) private static MutableComponent
ComponentSerialization.createFromList
(List<Component> components) static <T extends Comparable<T>>
ComponentComponentUtils.formatAndSortList
(Collection<T> elements, Function<T, Component> componentExtractor) static Component
ComponentUtils.formatList
(Collection<? extends Component> elements, Component separator) static <T> Component
ComponentUtils.formatList
(Collection<? extends T> elements, Function<T, Component> componentExtractor) 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, Optional<? extends Component> optionalSeparator, Function<T, Component> componentExtractor) static <T> MutableComponent
ComponentUtils.formatList
(Collection<? extends T> elements, Component separator, Function<T, Component> componentExtractor) static Component
CommonComponents.joinLines
(Collection<? extends Component> lines) static MutableComponent
Component.nbt
(String nbtPathPattern, boolean interpreting, Optional<Component> separator, DataSource dataSource) static MutableComponent
static Optional
<MutableComponent> ComponentUtils.updateForEntity
(CommandSourceStack commandSourceStack, Optional<Component> optionalComponent, Entity entity, int recursionDepth) Constructors in net.minecraft.network.chat with parameters of type ComponentModifierConstructorDescription(package private)
Creates an instance of aBound
record class.DecodeException
(Component p_249149_) Creates an instance of aDisguised
record class.EntityTooltipInfo
(EntityType<?> type, UUID id, Component name) PlayerChatMessage
(SignedMessageLink link, MessageSignature signature, SignedMessageBody signedBody, Component unsignedContent, FilterMask filterMask) Creates an instance of aPlayerChatMessage
record class.ThrowingComponent
(Component component) ThrowingComponent
(Component component, Throwable cause) Constructor parameters in net.minecraft.network.chat with type arguments of type ComponentModifierConstructorDescriptionCreates an instance of aBound
record class.EntityTooltipInfo
(EntityType<?> type, UUID id, Optional<Component> name) (package private)
MutableComponent
(ComponentContents contents, List<Component> siblings, Style style) -
Uses of Component in net.minecraft.network.chat.contents
Fields in net.minecraft.network.chat.contents with type parameters of type ComponentModifier and TypeFieldDescriptionKeybindResolver.keyResolver
KeybindContents.nameResolver
NbtContents.separator
SelectorContents.separator
Methods in net.minecraft.network.chat.contents that return ComponentMethods in net.minecraft.network.chat.contents that return types with arguments of type ComponentMethod parameters in net.minecraft.network.chat.contents with type arguments of type ComponentModifier and TypeMethodDescriptionstatic void
KeybindResolver.setKeyResolver
(Function<String, Supplier<Component>> p_keyResolver) Constructor parameters in net.minecraft.network.chat.contents with type arguments of type ComponentModifierConstructorDescriptionNbtContents
(String nbtPathPattern, boolean interpreting, Optional<Component> separator, DataSource dataSource) private
NbtContents
(String nbtPathPattern, NbtPathArgument.NbtPath compiledNbtPath, boolean interpreting, Optional<Component> separator, DataSource dataSource) SelectorContents
(String pattern, Optional<Component> separator) -
Uses of Component in net.minecraft.network.chat.numbers
Fields in net.minecraft.network.chat.numbers declared as ComponentConstructors in net.minecraft.network.chat.numbers with parameters of type Component -
Uses of Component in net.minecraft.network.protocol.common
Fields in net.minecraft.network.protocol.common declared as ComponentModifier and TypeFieldDescriptionprivate final Component
ClientboundDisconnectPacket.reason
The field for thereason
record component.Fields in net.minecraft.network.protocol.common with type parameters of type ComponentModifier and TypeFieldDescriptionClientboundResourcePackPushPacket.prompt
The field for theprompt
record component.Methods in net.minecraft.network.protocol.common that return ComponentModifier and TypeMethodDescriptionClientboundDisconnectPacket.reason()
Returns the value of thereason
record component.Methods in net.minecraft.network.protocol.common that return types with arguments of type ComponentModifier and TypeMethodDescriptionClientboundResourcePackPushPacket.prompt()
Returns the value of theprompt
record component.Constructors in net.minecraft.network.protocol.common with parameters of type ComponentModifierConstructorDescriptionClientboundDisconnectPacket
(Component reason) Creates an instance of aClientboundDisconnectPacket
record class.Constructor parameters in net.minecraft.network.protocol.common with type arguments of type Component -
Uses of Component in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as ComponentModifier and TypeFieldDescriptionprivate final Component
ClientboundSystemChatPacket.content
The field for thecontent
record component.private final Component
ClientboundPlayerInfoUpdatePacket.Entry.displayName
The field for thedisplayName
record component.(package private) Component
ClientboundPlayerInfoUpdatePacket.EntryBuilder.displayName
private final Component
ClientboundSetObjectivePacket.displayName
private final Component
ClientboundSetPlayerTeamPacket.Parameters.displayName
private final Component
ClientboundTabListPacket.footer
The field for thefooter
record component.private final Component
ClientboundTabListPacket.header
The field for theheader
record component.private final Component
ClientboundDisguisedChatPacket.message
The field for themessage
record component.private final Component
ClientboundPlayerCombatKillPacket.message
The field for themessage
record component.private final Component
ClientboundServerDataPacket.motd
The field for themotd
record component.private final Component
ClientboundBossEventPacket.AddOperation.name
private final Component
ClientboundBossEventPacket.UpdateNameOperation.name
The field for thename
record component.private final Component
ClientboundSetPlayerTeamPacket.Parameters.playerPrefix
private final Component
ClientboundSetPlayerTeamPacket.Parameters.playerSuffix
private final Component
ClientboundSetActionBarTextPacket.text
The field for thetext
record component.private final Component
ClientboundSetSubtitleTextPacket.text
The field for thetext
record component.private final Component
ClientboundSetTitleTextPacket.text
The field for thetext
record component.private final Component
ClientboundOpenScreenPacket.title
private final Component
ClientboundPlayerChatPacket.unsignedContent
The field for theunsignedContent
record component.Fields in net.minecraft.network.protocol.game with type parameters of type ComponentModifier and TypeFieldDescriptionClientboundSetScorePacket.display
The field for thedisplay
record component.ClientboundCommandSuggestionsPacket.Entry.tooltip
The field for thetooltip
record component.Methods in net.minecraft.network.protocol.game that return ComponentModifier and TypeMethodDescriptionClientboundSystemChatPacket.content()
Returns the value of thecontent
record component.ClientboundPlayerInfoUpdatePacket.Entry.displayName()
Returns the value of thedisplayName
record component.ClientboundTabListPacket.footer()
Returns the value of thefooter
record component.ClientboundSetObjectivePacket.getDisplayName()
ClientboundSetPlayerTeamPacket.Parameters.getDisplayName()
ClientboundSetPlayerTeamPacket.Parameters.getPlayerPrefix()
ClientboundSetPlayerTeamPacket.Parameters.getPlayerSuffix()
ClientboundOpenScreenPacket.getTitle()
ClientboundTabListPacket.header()
Returns the value of theheader
record component.ClientboundDisguisedChatPacket.message()
Returns the value of themessage
record component.ClientboundPlayerCombatKillPacket.message()
Returns the value of themessage
record component.ClientboundServerDataPacket.motd()
Returns the value of themotd
record component.ClientboundBossEventPacket.UpdateNameOperation.name()
Returns the value of thename
record component.ClientboundSetActionBarTextPacket.text()
Returns the value of thetext
record component.ClientboundSetSubtitleTextPacket.text()
Returns the value of thetext
record component.ClientboundSetTitleTextPacket.text()
Returns the value of thetext
record component.ClientboundPlayerChatPacket.unsignedContent()
Returns the value of theunsignedContent
record component.Methods in net.minecraft.network.protocol.game that return types with arguments of type ComponentModifier and TypeMethodDescriptionClientboundSetScorePacket.display()
Returns the value of thedisplay
record component.ClientboundCommandSuggestionsPacket.Entry.tooltip()
Returns the value of thetooltip
record component.Methods in net.minecraft.network.protocol.game with parameters of type ComponentModifier and TypeMethodDescriptiondefault void
ClientboundBossEventPacket.Handler.add
(UUID id, Component name, float progress, BossEvent.BossBarColor color, BossEvent.BossBarOverlay overlay, boolean darkenScreen, boolean playMusic, boolean createWorldFog) default void
ClientboundBossEventPacket.Handler.updateName
(UUID id, Component name) Constructors in net.minecraft.network.protocol.game with parameters of type ComponentModifierConstructorDescriptionClientboundDisguisedChatPacket
(Component message, ChatType.Bound chatType) Creates an instance of aClientboundDisguisedChatPacket
record class.ClientboundOpenScreenPacket
(int containerId, MenuType<?> menuType, Component title) ClientboundPlayerChatPacket
(UUID sender, int index, MessageSignature signature, SignedMessageBody.Packed body, Component unsignedContent, FilterMask filterMask, ChatType.Bound chatType) Creates an instance of aClientboundPlayerChatPacket
record class.ClientboundPlayerCombatKillPacket
(int playerId, Component message) Creates an instance of aClientboundPlayerCombatKillPacket
record class.ClientboundServerDataPacket
(Component motd, Optional<byte[]> iconBytes) Creates an instance of aClientboundServerDataPacket
record class.Creates an instance of aClientboundSetActionBarTextPacket
record class.Creates an instance of aClientboundSetSubtitleTextPacket
record class.Creates an instance of aClientboundSetTitleTextPacket
record class.ClientboundSystemChatPacket
(Component content, boolean overlay) Creates an instance of aClientboundSystemChatPacket
record class.ClientboundTabListPacket
(Component header, Component footer) Creates an instance of aClientboundTabListPacket
record class.Entry
(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, Component displayName, RemoteChatSession.Data chatSession) Creates an instance of aEntry
record class.(package private)
UpdateNameOperation
(Component name) Creates an instance of aUpdateNameOperation
record class.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type ComponentModifierConstructorDescriptionClientboundSetScorePacket
(String owner, String objectiveName, int score, Optional<Component> display, Optional<NumberFormat> numberFormat) Creates an instance of aClientboundSetScorePacket
record class.Creates an instance of aEntry
record class. -
Uses of Component in net.minecraft.network.protocol.login
Fields in net.minecraft.network.protocol.login declared as ComponentMethods in net.minecraft.network.protocol.login that return ComponentConstructors in net.minecraft.network.protocol.login with parameters of type Component -
Uses of Component in net.minecraft.network.protocol.status
Fields in net.minecraft.network.protocol.status declared as ComponentModifier and TypeFieldDescriptionprivate final Component
ServerStatus.description
The field for thedescription
record component.Methods in net.minecraft.network.protocol.status that return ComponentModifier and TypeMethodDescriptionServerStatus.description()
Returns the value of thedescription
record component.Constructors in net.minecraft.network.protocol.status with parameters of type ComponentModifierConstructorDescriptionServerStatus
(Component description, Optional<ServerStatus.Players> players, Optional<ServerStatus.Version> version, Optional<ServerStatus.Favicon> favicon, boolean enforcesSecureChat) Deprecated.ServerStatus
(Component description, Optional<ServerStatus.Players> players, Optional<ServerStatus.Version> version, Optional<ServerStatus.Favicon> favicon, boolean enforcesSecureChat, boolean isModded) Creates an instance of aServerStatus
record class. -
Uses of Component in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type ComponentModifier and TypeFieldDescriptionstatic final EntityDataSerializer
<Component> EntityDataSerializers.COMPONENT
static final EntityDataSerializer
<Optional<Component>> EntityDataSerializers.OPTIONAL_COMPONENT
-
Uses of Component in net.minecraft.realms
Fields in net.minecraft.realms declared as ComponentModifier and TypeFieldDescription(package private) final Component
RepeatedNarrator.Params.narration
private final Component
DisconnectedRealmsScreen.reason
private final Component
RealmsLabel.text
Methods in net.minecraft.realms that return ComponentModifier and TypeMethodDescriptionRealmsScreen.createLabelNarration()
DisconnectedRealmsScreen.getNarrationMessage()
RealmsLabel.getText()
Methods in net.minecraft.realms with parameters of type ComponentModifier and TypeMethodDescriptionvoid
RepeatedNarrator.narrate
(GameNarrator narrator, Component narration) Constructors in net.minecraft.realms with parameters of type ComponentModifierConstructorDescriptionDisconnectedRealmsScreen
(Screen parent, Component title, Component reason) (package private)
RealmsLabel
(Component text, int x, int y, int color) RealmsScreen
(Component title) -
Uses of Component in net.minecraft.server
Fields in net.minecraft.server declared as ComponentModifier and TypeFieldDescriptionprivate final Component
MinecraftServer.ServerResourcePackInfo.prompt
The field for theprompt
record component.Fields in net.minecraft.server with type parameters of type ComponentModifier and TypeFieldDescriptionprivate final com.mojang.datafixers.util.Either
<ServerLinks.KnownLinkType, Component> ServerLinks.Entry.type
The field for thetype
record component.private final com.mojang.datafixers.util.Either
<ServerLinks.KnownLinkType, Component> ServerLinks.UntrustedEntry.type
The field for thetype
record component.static final StreamCodec
<io.netty.buffer.ByteBuf, com.mojang.datafixers.util.Either<ServerLinks.KnownLinkType, Component>> ServerLinks.TYPE_STREAM_CODEC
Methods in net.minecraft.server that return ComponentModifier and TypeMethodDescriptionServerLinks.Entry.displayName()
private Component
ServerLinks.KnownLinkType.displayName()
MinecraftServer.ServerResourcePackInfo.prompt()
Returns the value of theprompt
record component.Methods in net.minecraft.server that return types with arguments of type ComponentModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either
<ServerLinks.KnownLinkType, Component> ServerLinks.Entry.type()
Returns the value of thetype
record component.com.mojang.datafixers.util.Either
<ServerLinks.KnownLinkType, Component> ServerLinks.UntrustedEntry.type()
Returns the value of thetype
record component.Methods in net.minecraft.server with parameters of type ComponentModifier and TypeMethodDescriptionstatic ServerLinks.Entry
void
MinecraftServer.logChatMessage
(Component content, ChatType.Bound boundChatType, String header) void
MinecraftServer.sendSystemMessage
(Component component) Constructors in net.minecraft.server with parameters of type ComponentModifierConstructorDescriptionServerResourcePackInfo
(UUID id, String url, String hash, boolean isRequired, Component prompt) Creates an instance of aServerResourcePackInfo
record class.Constructor parameters in net.minecraft.server with type arguments of type ComponentModifierConstructorDescriptionEntry
(com.mojang.datafixers.util.Either<ServerLinks.KnownLinkType, Component> type, URI link) Creates an instance of aEntry
record class.UntrustedEntry
(com.mojang.datafixers.util.Either<ServerLinks.KnownLinkType, Component> type, String link) Creates an instance of aUntrustedEntry
record class. -
Uses of Component in net.minecraft.server.bossevents
Methods in net.minecraft.server.bossevents that return ComponentMethods in net.minecraft.server.bossevents with parameters of type ComponentConstructors in net.minecraft.server.bossevents with parameters of type Component -
Uses of Component in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return ComponentModifier and TypeMethodDescriptionprivate static Component
AttributeCommand.getAttributeDescription
(Holder<Attribute> attribute) private static Component
TeamCommand.getFirstMemberName
(Collection<ScoreHolder> scores) private static Component
ScoreboardCommand.getFirstTargetName
(Collection<ScoreHolder> scores) Methods in net.minecraft.server.commands with parameters of type ComponentModifier and TypeMethodDescriptionprivate static int
ScoreboardCommand.addObjective
(CommandSourceStack source, String name, ObjectiveCriteria criteria, Component displayName) private static int
BanIpCommands.banIp
(CommandSourceStack source, String ip, Component reason) private static int
BanIpCommands.banIpOrName
(CommandSourceStack source, String username, Component reason) private static int
BanPlayerCommands.banPlayers
(CommandSourceStack source, Collection<com.mojang.authlib.GameProfile> gameProfiles, Component reason) private static int
BossBarCommands.createBar
(CommandSourceStack source, ResourceLocation id, Component displayName) private static int
TeamCommand.createTeam
(CommandSourceStack source, String name, Component displayName) private static int
KickCommand.kickPlayers
(CommandSourceStack source, Collection<ServerPlayer> players, Component reason) private static int
RaidCommand.playSound
(CommandSourceStack source, Component type) void
DebugCommand.Tracer.sendSystemMessage
(Component component) private static int
ScoreboardCommand.setDisplayName
(CommandSourceStack source, Objective objective, Component displayName) private static int
TeamCommand.setDisplayName
(CommandSourceStack source, PlayerTeam team, Component value) private static int
BossBarCommands.setName
(CommandSourceStack source, CustomBossEvent bossbar, Component name) private static int
TeamCommand.setPrefix
(CommandSourceStack source, PlayerTeam team, Component prefix) private static int
ScoreboardCommand.setScoreDisplay
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective, Component displayName) private static int
TeamCommand.setSuffix
(CommandSourceStack source, PlayerTeam team, Component suffix) private static int
TitleCommand.showTitle
(CommandSourceStack source, Collection<ServerPlayer> targets, Component title, String titleType, Function<Component, Packet<?>> packetGetter) Method parameters in net.minecraft.server.commands with type arguments of type ComponentModifier and TypeMethodDescriptionstatic com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> FillBiomeCommand.fill
(ServerLevel level, BlockPos from, BlockPos to, Holder<Biome> biome, Predicate<Holder<Biome>> filter, Consumer<Supplier<Component>> messageOutput) private static int
ListPlayersCommand.format
(CommandSourceStack source, Function<ServerPlayer, Component> nameExtractor) private static int
TitleCommand.showTitle
(CommandSourceStack source, Collection<ServerPlayer> targets, Component title, String titleType, Function<Component, Packet<?>> packetGetter) -
Uses of Component in net.minecraft.server.commands.data
Methods in net.minecraft.server.commands.data that return ComponentModifier and TypeMethodDescriptionBlockDataAccessor.getModifiedSuccess()
DataAccessor.getModifiedSuccess()
EntityDataAccessor.getModifiedSuccess()
StorageDataAccessor.getModifiedSuccess()
BlockDataAccessor.getPrintSuccess
(NbtPathArgument.NbtPath path, double scale, int value) Gets the message used as a result of querying the given path with a scale.BlockDataAccessor.getPrintSuccess
(Tag nbt) Gets the message used as a result of querying the given NBT (both for /data get and /data get path)DataAccessor.getPrintSuccess
(NbtPathArgument.NbtPath path, double scale, int value) Gets the message used as a result of querying the given path with a scale.DataAccessor.getPrintSuccess
(Tag nbt) Gets the message used as a result of querying the given NBT (both for /data get and /data get path)EntityDataAccessor.getPrintSuccess
(NbtPathArgument.NbtPath path, double scale, int value) Gets the message used as a result of querying the given path with a scale.EntityDataAccessor.getPrintSuccess
(Tag nbt) Gets the message used as a result of querying the given NBT (both for /data get and /data get path)StorageDataAccessor.getPrintSuccess
(NbtPathArgument.NbtPath path, double scale, int value) Gets the message used as a result of querying the given path with a scale.StorageDataAccessor.getPrintSuccess
(Tag nbt) Gets the message used as a result of querying the given NBT (both for /data get and /data get path) -
Uses of Component in net.minecraft.server.dedicated
Methods in net.minecraft.server.dedicated that return ComponentModifier and TypeMethodDescriptionprivate static Component
DedicatedServerProperties.parseResourcePackPrompt
(String json) -
Uses of Component in net.minecraft.server.level
Fields in net.minecraft.server.level declared as ComponentModifier and TypeFieldDescriptionprivate Component
ServerPlayer.tabListDisplayName
private Component
ServerPlayer.tabListFooter
private Component
ServerPlayer.tabListHeader
Methods in net.minecraft.server.level that return ComponentModifier and TypeMethodDescriptionServerPlayer.getTabListDisplayName()
ServerPlayer.getTabListFooter()
ServerPlayer.getTabListHeader()
Methods in net.minecraft.server.level with parameters of type ComponentModifier and TypeMethodDescriptionvoid
ServerPlayer.displayClientMessage
(Component chatComponent, boolean actionBar) void
ServerPlayer.sendSystemMessage
(Component component) void
ServerPlayer.sendSystemMessage
(Component p_component, boolean bypassHiddenChat) void
void
ServerPlayer.setTabListFooter
(Component footer) Set the tab list footer while preserving the header.void
ServerPlayer.setTabListHeader
(Component header) Set the tab list header while preserving the footer.void
ServerPlayer.setTabListHeaderFooter
(Component header, Component footer) Set the tab list header and footer at once.Constructors in net.minecraft.server.level with parameters of type ComponentModifierConstructorDescriptionServerBossEvent
(Component name, BossEvent.BossBarColor color, BossEvent.BossBarOverlay overlay) -
Uses of Component in net.minecraft.server.network
Fields in net.minecraft.server.network declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
ServerGamePacketListenerImpl.CHAT_VALIDATION_FAILED
private static final Component
ServerStatusPacketListenerImpl.DISCONNECT_REASON
private static final Component
ServerConfigurationPacketListenerImpl.DISCONNECT_REASON_INVALID_DATA
(package private) static final Component
ServerCommonPacketListenerImpl.DISCONNECT_UNEXPECTED_QUERY
private static final Component
ServerHandshakePacketListenerImpl.IGNORE_STATUS_REASON
private static final Component
ServerGamePacketListenerImpl.INVALID_COMMAND_SIGNATURE
private static final Component
ServerCommonPacketListenerImpl.TIMEOUT_DISCONNECTION_MESSAGE
Methods in net.minecraft.server.network with parameters of type ComponentModifier and TypeMethodDescriptionvoid
ServerCommonPacketListenerImpl.disconnect
(Component reason) void
ServerLoginPacketListenerImpl.disconnect
(Component reason) void
ServerGamePacketListenerImpl.sendDisguisedChatMessage
(Component message, ChatType.Bound boundType) -
Uses of Component in net.minecraft.server.packs
Fields in net.minecraft.server.packs declared as ComponentModifier and TypeFieldDescriptionprivate final Component
PackLocationInfo.title
The field for thetitle
record component.Methods in net.minecraft.server.packs that return ComponentModifier and TypeMethodDescriptionPackLocationInfo.createChatLink
(boolean enabled, Component text) PackLocationInfo.title()
Returns the value of thetitle
record component.Methods in net.minecraft.server.packs with parameters of type ComponentModifier and TypeMethodDescriptionPackLocationInfo.createChatLink
(boolean enabled, Component text) Constructors in net.minecraft.server.packs with parameters of type ComponentModifierConstructorDescriptionPackLocationInfo
(String id, Component title, PackSource source, Optional<KnownPack> knownPackInfo) Creates an instance of aPackLocationInfo
record class. -
Uses of Component in net.minecraft.server.packs.metadata.pack
Fields in net.minecraft.server.packs.metadata.pack declared as ComponentModifier and TypeFieldDescriptionprivate final Component
PackMetadataSection.description
The field for thedescription
record component.Methods in net.minecraft.server.packs.metadata.pack that return ComponentModifier and TypeMethodDescriptionPackMetadataSection.description()
Returns the value of thedescription
record component.Constructors in net.minecraft.server.packs.metadata.pack with parameters of type ComponentModifierConstructorDescriptionPackMetadataSection
(Component description, int packVersion) PackMetadataSection
(Component description, int packFormat, Optional<InclusiveRange<Integer>> supportedFormats) Creates an instance of aPackMetadataSection
record class. -
Uses of Component in net.minecraft.server.packs.repository
Fields in net.minecraft.server.packs.repository declared as ComponentModifier and TypeFieldDescriptionprivate final Component
PackCompatibility.confirmation
private final Component
Pack.Metadata.description
The field for thedescription
record component.private final Component
PackCompatibility.description
Fields in net.minecraft.server.packs.repository with type parameters of type ComponentMethods in net.minecraft.server.packs.repository that return ComponentModifier and TypeMethodDescriptionPack.Metadata.description()
Returns the value of thedescription
record component.Pack.getChatLink
(boolean green) PackCompatibility.getConfirmation()
Pack.getDescription()
PackCompatibility.getDescription()
protected abstract Component
BuiltInPackSource.getPackTitle
(String id) protected Component
ServerPacksSource.getPackTitle
(String id) Pack.getTitle()
Methods in net.minecraft.server.packs.repository that return types with arguments of type ComponentModifier and TypeMethodDescriptionprivate static UnaryOperator
<Component> PackSource.decorateWithSource
(String translationKey) Methods in net.minecraft.server.packs.repository with parameters of type ComponentModifier and TypeMethodDescriptionprotected abstract Pack
BuiltInPackSource.createBuiltinPack
(String id, Pack.ResourcesSupplier resources, Component title) protected Pack
ServerPacksSource.createBuiltinPack
(String id, Pack.ResourcesSupplier resources, Component title) private static PackLocationInfo
ServerPacksSource.createBuiltInPackLocation
(String id, Component title) Method parameters in net.minecraft.server.packs.repository with type arguments of type ComponentModifier and TypeMethodDescriptionstatic PackSource
PackSource.create
(UnaryOperator<Component> decorator, boolean shouldAddAutomatically) Constructors in net.minecraft.server.packs.repository with parameters of type ComponentModifierConstructorDescriptionMetadata
(Component description, PackCompatibility compatibility, FeatureFlagSet requestedFeatures, List<String> overlays) Deprecated.Neo: useMetadata(Component,PackCompatibility,FeatureFlagSet,List,boolean)
insteadMetadata
(Component description, PackCompatibility compatibility, FeatureFlagSet requestedFeatures, List<String> overlays, boolean isHidden) Creates an instance of aMetadata
record class. -
Uses of Component in net.minecraft.server.players
Fields in net.minecraft.server.players declared as ComponentModifier and TypeFieldDescriptionstatic final Component
PlayerList.CHAT_FILTERED_FULL
static final Component
PlayerList.DUPLICATE_LOGIN_DISCONNECT_MESSAGE
Methods in net.minecraft.server.players that return ComponentModifier and TypeMethodDescriptionPlayerList.canPlayerLogin
(SocketAddress socketAddress, com.mojang.authlib.GameProfile gameProfile) abstract Component
BanListEntry.getDisplayName()
IpBanListEntry.getDisplayName()
UserBanListEntry.getDisplayName()
Methods in net.minecraft.server.players with parameters of type ComponentModifier and TypeMethodDescriptionvoid
PlayerList.broadcastSystemMessage
(Component message, boolean bypassHiddenChat) void
PlayerList.broadcastSystemMessage
(Component serverMessage, Function<ServerPlayer, Component> playerMessageFactory, boolean bypassHiddenChat) void
PlayerList.broadcastSystemToAllExceptTeam
(Player player, Component message) void
PlayerList.broadcastSystemToTeam
(Player player, Component message) Method parameters in net.minecraft.server.players with type arguments of type ComponentModifier and TypeMethodDescriptionvoid
PlayerList.broadcastSystemMessage
(Component serverMessage, Function<ServerPlayer, Component> playerMessageFactory, boolean bypassHiddenChat) -
Uses of Component in net.minecraft.server.rcon
Fields in net.minecraft.server.rcon declared as ComponentMethods in net.minecraft.server.rcon with parameters of type Component -
Uses of Component in net.minecraft.stats
Fields in net.minecraft.stats declared as ComponentMethods in net.minecraft.stats that return ComponentConstructors in net.minecraft.stats with parameters of type Component -
Uses of Component in net.minecraft.util
Methods in net.minecraft.util that return ComponentMethods in net.minecraft.util with parameters of type ComponentModifier and TypeMethodDescriptionvoid
ProgressListener.progressStage
(Component stage) void
ProgressListener.progressStart
(Component header) void
ProgressListener.progressStartNoAbort
(Component component) -
Uses of Component in net.minecraft.util.worldupdate
Fields in net.minecraft.util.worldupdate declared as ComponentMethods in net.minecraft.util.worldupdate that return Component -
Uses of Component in net.minecraft.world
Fields in net.minecraft.world declared as ComponentModifier and TypeFieldDescriptionprotected Component
BossEvent.name
private final Component
SimpleMenuProvider.title
Methods in net.minecraft.world that return ComponentModifier and TypeMethodDescriptiondefault Component
Nameable.getCustomName()
Difficulty.getDisplayName()
MenuProvider.getDisplayName()
default Component
Nameable.getDisplayName()
SimpleMenuProvider.getDisplayName()
Difficulty.getInfo()
BossEvent.getName()
Nameable.getName()
Methods in net.minecraft.world with parameters of type ComponentConstructors in net.minecraft.world with parameters of type ComponentModifierConstructorDescriptionBossEvent
(UUID id, Component name, BossEvent.BossBarColor color, BossEvent.BossBarOverlay overlay) SimpleMenuProvider
(MenuConstructor menuConstructor, Component title) -
Uses of Component in net.minecraft.world.damagesource
Methods in net.minecraft.world.damagesource that return ComponentModifier and TypeMethodDescriptionCombatTracker.getDeathMessage()
private static Component
CombatTracker.getDisplayName
(Entity entity) CombatTracker.getFallMessage
(CombatEntry combatEntry, Entity p_entity) DamageSource.getLocalizedDeathMessage
(LivingEntity livingEntity) Gets the death message that is displayed when the player diesprivate Component
CombatTracker.getMessageForAssistedFall
(Entity entity, Component entityDisplayName, String hasWeaponTranslationKey, String noWeaponTranslationKey) Methods in net.minecraft.world.damagesource with parameters of type Component -
Uses of Component in net.minecraft.world.effect
Methods in net.minecraft.world.effect that return ComponentModifier and TypeMethodDescriptionstatic Component
MobEffectUtil.formatDuration
(MobEffectInstance effect, float durationFactor, float ticksPerSecond) MobEffect.getDisplayName()
-
Uses of Component in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as ComponentModifier and TypeFieldDescriptionprivate Component
EntityType.description
private final Component
Display.TextDisplay.TextRenderState.text
The field for thetext
record component.Fields in net.minecraft.world.entity with type parameters of type ComponentModifier and TypeFieldDescriptionprivate static final EntityDataAccessor
<Optional<Component>> Entity.DATA_CUSTOM_NAME
private static final EntityDataAccessor
<Component> Display.TextDisplay.DATA_TEXT_ID
Methods in net.minecraft.world.entity that return ComponentModifier and TypeMethodDescriptionEntity.getCustomName()
EntityType.getDescription()
Entity.getDisplayName()
Entity.getName()
private Component
Display.TextDisplay.getText()
protected Component
Entity.getTypeName()
private static Component
Entity.removeAction
(Component name) Display.TextDisplay.TextRenderState.text()
Returns the value of thetext
record component.Methods in net.minecraft.world.entity with parameters of type ComponentModifier and TypeMethodDescriptionprivate static Component
Entity.removeAction
(Component name) void
Entity.sendSystemMessage
(Component component) void
Entity.setCustomName
(Component name) private void
Constructors in net.minecraft.world.entity with parameters of type ComponentModifierConstructorDescriptionTextRenderState
(Component text, int lineWidth, Display.IntInterpolator textOpacity, Display.IntInterpolator backgroundColor, byte flags) Creates an instance of aTextRenderState
record class. -
Uses of Component in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal declared as ComponentMethods in net.minecraft.world.entity.animal that return Component -
Uses of Component in net.minecraft.world.entity.boss.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type Component -
Uses of Component in net.minecraft.world.entity.item
Methods in net.minecraft.world.entity.item that return ComponentModifier and TypeMethodDescriptionItemEntity.getName()
protected Component
FallingBlockEntity.getTypeName()
-
Uses of Component in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type Component -
Uses of Component in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc that return Component -
Uses of Component in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player declared as ComponentModifier and TypeFieldDescriptionprivate Component
Player.displayname
static final Component
ProfilePublicKey.EXPIRED_PROFILE_PUBLIC_KEY
private static final Component
ProfilePublicKey.INVALID_SIGNATURE
private final Component
Player.BedSleepingProblem.message
private final Component
PlayerModelPart.name
Methods in net.minecraft.world.entity.player that return ComponentModifier and TypeMethodDescriptionPlayer.getDisplayName()
Player.BedSleepingProblem.getMessage()
Inventory.getName()
Player.getName()
PlayerModelPart.getName()
Methods in net.minecraft.world.entity.player with parameters of type ComponentModifier and TypeMethodDescriptionvoid
Player.displayClientMessage
(Component chatComponent, boolean actionBar) Constructors in net.minecraft.world.entity.player with parameters of type ComponentModifierConstructorDescriptionprivate
BedSleepingProblem
(Component message) ValidationException
(Component p_243378_) -
Uses of Component in net.minecraft.world.entity.raid
Fields in net.minecraft.world.entity.raid declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
private static final Component
private static final Component
private static final Component
Raid.RAID_NAME_COMPONENT
-
Uses of Component in net.minecraft.world.entity.vehicle
Fields in net.minecraft.world.entity.vehicle with type parameters of type ComponentModifier and TypeFieldDescription(package private) static final EntityDataAccessor
<Component> MinecartCommandBlock.DATA_ID_LAST_OUTPUT
Methods in net.minecraft.world.entity.vehicle that return Component -
Uses of Component in net.minecraft.world.item
Fields in net.minecraft.world.item declared as ComponentModifier and TypeFieldDescriptionprivate final Component
SmithingTemplateItem.additionsSlotDescription
private static final Component
SmithingTemplateItem.APPLIES_TO_TITLE
private final Component
SmithingTemplateItem.appliesTo
private static final Component
SmithingTemplateItem.ARMOR_TRIM_ADDITIONS_SLOT_DESCRIPTION
private static final Component
SmithingTemplateItem.ARMOR_TRIM_APPLIES_TO
private static final Component
SmithingTemplateItem.ARMOR_TRIM_BASE_SLOT_DESCRIPTION
private static final Component
SmithingTemplateItem.ARMOR_TRIM_INGREDIENTS
private final Component
SmithingTemplateItem.baseSlotDescription
static final Component
AdventureModePredicate.CAN_BREAK_HEADER
static final Component
AdventureModePredicate.CAN_PLACE_HEADER
private final Component
JukeboxSong.description
The field for thedescription
record component.private static final Component
ItemStack.DISABLED_ITEM_TOOLTIP
private Component
CreativeModeTab.Builder.displayName
private final Component
CreativeModeTab.displayName
private final Component
SmithingTemplateItem.ingredients
private static final Component
SmithingTemplateItem.INGREDIENTS_TITLE
private static final Component
SmithingTemplateItem.NETHERITE_UPGRADE
private static final Component
SmithingTemplateItem.NETHERITE_UPGRADE_ADDITIONS_SLOT_DESCRIPTION
private static final Component
SmithingTemplateItem.NETHERITE_UPGRADE_APPLIES_TO
private static final Component
SmithingTemplateItem.NETHERITE_UPGRADE_BASE_SLOT_DESCRIPTION
private static final Component
SmithingTemplateItem.NETHERITE_UPGRADE_INGREDIENTS
private static final Component
HangingEntityItem.TOOLTIP_RANDOM_VARIANT
private static final Component
AdventureModePredicate.UNKNOWN_USE
private final Component
SmithingTemplateItem.upgradeDescription
Fields in net.minecraft.world.item with type parameters of type ComponentMethods in net.minecraft.world.item that return ComponentModifier and TypeMethodDescriptionJukeboxSong.description()
Returns the value of thedescription
record component.SmithingTemplateItem.getAdditionSlotDescription()
SmithingTemplateItem.getBaseSlotDescription()
Item.getDescription()
CreativeModeTab.getDisplayName()
ItemStack.getDisplayName()
ItemStack.getHoverName()
Gets the title name of the bookstatic Component
MapItem.getTooltipForId
(MapId mapId) Methods in net.minecraft.world.item that return types with arguments of type ComponentModifier and TypeMethodDescriptionAdventureModePredicate.computeTooltip
(List<BlockPredicate> predicates) ItemStack.getTooltipLines
(Item.TooltipContext tooltipContext, Player player, TooltipFlag tooltipFlag) Methods in net.minecraft.world.item with parameters of type ComponentModifier and TypeMethodDescriptionprivate static void
Method parameters in net.minecraft.world.item with type arguments of type ComponentModifier and TypeMethodDescriptionprivate void
ItemStack.addAttributeTooltips
(Consumer<Component> tooltipAdder, Player player) Deprecated.Neo: Useinvalid @link
{@link net.neoforged.neoforge.client.util.TooltipUtil#
private void
ItemStack.addModifierTooltip
(Consumer<Component> tooltipAdder, Player player, Holder<Attribute> attribute, AttributeModifier modifier) void
AdventureModePredicate.addToTooltip
(Consumer<Component> tooltipAdder) <T extends TooltipProvider>
voidItemStack.addToTooltip
(DataComponentType<T> component, Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) void
JukeboxPlayable.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) void
AirItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
BannerItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
BannerPatternItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
BlockItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
BundleItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
CrossbowItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
DiscFragmentItem.appendHoverText
(ItemStack p_220031_, Item.TooltipContext p_339652_, List<Component> p_220033_, TooltipFlag p_220034_) void
FireworkRocketItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
FireworkStarItem.appendHoverText
(ItemStack p_41252_, Item.TooltipContext p_339685_, List<Component> p_41254_, TooltipFlag p_41255_) void
HangingEntityItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
InstrumentItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
Item.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
LingeringPotionItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
MapItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
MobBucketItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
OminousBottleItem.appendHoverText
(ItemStack p_338470_, Item.TooltipContext p_339656_, List<Component> p_338463_, TooltipFlag p_338317_) void
PotionItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
ShieldItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
SmithingTemplateItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
SuspiciousStewItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
TippedArrowItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
WrittenBookItem.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) static void
BannerItem.appendHoverTextFromBannerBlockEntityTag
(ItemStack stack, List<Component> tooltipComponents) Constructors in net.minecraft.world.item with parameters of type ComponentModifierConstructorDescription(package private)
CreativeModeTab
(CreativeModeTab.Row row, int column, CreativeModeTab.Type type, Component displayName, Supplier<ItemStack> iconGenerator, CreativeModeTab.DisplayItemsGenerator displayItemGenerator, ResourceLocation scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, ResourceLocation tabsImage, int labelColor, int slotColor, List<ResourceLocation> tabsBefore, List<ResourceLocation> tabsAfter) JukeboxSong
(Holder<SoundEvent> soundEvent, Component description, float lengthInSeconds, int comparatorOutput) Creates an instance of aJukeboxSong
record class.SmithingTemplateItem
(Component appliesTo, Component ingredients, Component upgradeDescription, Component baseSlotDescription, Component additionsSlotDescription, List<ResourceLocation> baseSlotEmptyIcons, List<ResourceLocation> additionalSlotEmptyIcons, FeatureFlag... requiredFeatures) -
Uses of Component in net.minecraft.world.item.alchemy
Fields in net.minecraft.world.item.alchemy declared as ComponentMethod parameters in net.minecraft.world.item.alchemy with type arguments of type ComponentModifier and TypeMethodDescriptionstatic void
PotionContents.addPotionTooltip
(Iterable<MobEffectInstance> effects, Consumer<Component> tooltipAdder, float durationFactor, float ticksPerSecond) void
PotionContents.addPotionTooltip
(Consumer<Component> tooltipAdder, float durationFactor, float ticksPerSecond) -
Uses of Component in net.minecraft.world.item.armortrim
Fields in net.minecraft.world.item.armortrim declared as ComponentModifier and TypeFieldDescriptionprivate final Component
TrimMaterial.description
The field for thedescription
record component.private final Component
TrimPattern.description
The field for thedescription
record component.private static final Component
ArmorTrim.UPGRADE_TITLE
Methods in net.minecraft.world.item.armortrim that return ComponentModifier and TypeMethodDescriptionTrimPattern.copyWithStyle
(Holder<TrimMaterial> trimMaterial) TrimMaterial.description()
Returns the value of thedescription
record component.TrimPattern.description()
Returns the value of thedescription
record component.Methods in net.minecraft.world.item.armortrim with parameters of type ComponentModifier and TypeMethodDescriptionstatic TrimMaterial
TrimMaterial.create
(String assetName, Item ingredient, float itemModelIndex, Component description, Map<Holder<ArmorMaterial>, String> overrideArmorMaterials) Method parameters in net.minecraft.world.item.armortrim with type arguments of type ComponentModifier and TypeMethodDescriptionvoid
ArmorTrim.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) Constructors in net.minecraft.world.item.armortrim with parameters of type ComponentModifierConstructorDescriptionTrimMaterial
(String assetName, Holder<Item> ingredient, float itemModelIndex, Map<Holder<ArmorMaterial>, String> overrideArmorMaterials, Component description) Creates an instance of aTrimMaterial
record class.TrimPattern
(ResourceLocation assetId, Holder<Item> templateItem, Component description, boolean decal) Creates an instance of aTrimPattern
record class. -
Uses of Component in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
FireworkExplosion.CUSTOM_COLOR_NAME
private static final Component
Unbreakable.TOOLTIP
Fields in net.minecraft.world.item.component with type parameters of type ComponentModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Component> WrittenBookContent.CONTENT_CODEC
ItemLore.lines
The field for thelines
record component.private final List
<Filterable<Component>> WrittenBookContent.pages
The field for thepages
record component.static final com.mojang.serialization.Codec
<List<Filterable<Component>>> WrittenBookContent.PAGES_CODEC
ItemLore.styledLines
The field for thestyledLines
record component.Methods in net.minecraft.world.item.component that return ComponentModifier and TypeMethodDescriptionprivate static Component
FireworkExplosion.appendColors
(MutableComponent component, it.unimi.dsi.fastutil.ints.IntList colors) private static Component
FireworkExplosion.getColorName
(int id) Methods in net.minecraft.world.item.component that return types with arguments of type ComponentModifier and TypeMethodDescriptionWrittenBookContent.getPages
(boolean filtered) ItemLore.lines()
Returns the value of thelines
record component.private static com.mojang.serialization.Codec
<Filterable<Component>> WrittenBookContent.pages()
Returns the value of thepages
record component.static com.mojang.serialization.Codec
<List<Filterable<Component>>> WrittenBookContent.pagesCodec
(com.mojang.serialization.Codec<Component> codec) private static Optional
<Filterable<Component>> WrittenBookContent.resolvePage
(CommandSourceStack source, Player player, Filterable<Component> pages) ItemLore.styledLines()
Returns the value of thestyledLines
record component.Methods in net.minecraft.world.item.component with parameters of type ComponentModifier and TypeMethodDescriptionprivate static boolean
WrittenBookContent.isPageTooLarge
(Component page, HolderLookup.Provider registryAccess) ItemLore.withLineAdded
(Component lines) Method parameters in net.minecraft.world.item.component with type arguments of type ComponentModifier and TypeMethodDescriptionvoid
FireworkExplosion.addAdditionalTooltip
(Consumer<Component> tooltipAdder) void
FireworkExplosion.addShapeNameTooltip
(Consumer<Component> tooltipAdder) void
DyedItemColor.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) void
FireworkExplosion.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) void
Fireworks.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) void
ItemLore.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) void
TooltipProvider.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) void
Unbreakable.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) private static com.mojang.serialization.Codec
<Filterable<Component>> static com.mojang.serialization.Codec
<List<Filterable<Component>>> WrittenBookContent.pagesCodec
(com.mojang.serialization.Codec<Component> codec) private static Optional
<Filterable<Component>> WrittenBookContent.resolvePage
(CommandSourceStack source, Player player, Filterable<Component> pages) WrittenBookContent.withReplacedPages
(List<Filterable<Component>> newPages) Constructor parameters in net.minecraft.world.item.component with type arguments of type ComponentModifierConstructorDescriptionCreates an instance of aItemLore
record class.WrittenBookContent
(Filterable<String> title, String author, int generation, List<Filterable<Component>> pages, boolean resolved) Creates an instance of aWrittenBookContent
record class. -
Uses of Component in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as ComponentModifier and TypeFieldDescriptionprivate final Component
Enchantment.description
The field for thedescription
record component.Methods in net.minecraft.world.item.enchantment that return ComponentModifier and TypeMethodDescriptionEnchantment.description()
Returns the value of thedescription
record component.static Component
Enchantment.getFullname
(Holder<Enchantment> enchantment, int level) Method parameters in net.minecraft.world.item.enchantment with type arguments of type ComponentModifier and TypeMethodDescriptionvoid
ItemEnchantments.addToTooltip
(Item.TooltipContext context, Consumer<Component> tooltipAdder, TooltipFlag tooltipFlag) Constructors in net.minecraft.world.item.enchantment with parameters of type ComponentModifierConstructorDescriptionEnchantment
(Component description, Enchantment.EnchantmentDefinition definition, HolderSet<Enchantment> exclusiveSet, DataComponentMap effects) Creates an instance of aEnchantment
record class. -
Uses of Component in net.minecraft.world.item.trading
Methods in net.minecraft.world.item.trading with parameters of type ComponentModifier and TypeMethodDescriptiondefault void
Merchant.openTradingScreen
(Player player, Component displayName, int level) -
Uses of Component in net.minecraft.world.level
Fields in net.minecraft.world.level declared as ComponentModifier and TypeFieldDescriptionprivate Component
BaseCommandBlock.customName
private static final Component
BaseCommandBlock.DEFAULT_NAME
private Component
BaseCommandBlock.lastOutput
The previously run command.private final Component
GameType.longName
private final Component
GameType.shortName
Methods in net.minecraft.world.level that return ComponentModifier and TypeMethodDescriptionBaseCommandBlock.getCustomName()
BaseCommandBlock.getLastOutput()
GameType.getLongDisplayName()
BaseCommandBlock.getName()
GameType.getShortDisplayName()
static Component
Spawner.getSpawnEntityDisplayName
(ItemStack stack, String spawnDataKey) Methods in net.minecraft.world.level with parameters of type ComponentModifier and TypeMethodDescriptionvoid
BaseCommandBlock.sendSystemMessage
(Component component) void
BaseCommandBlock.setCustomName
(Component customName) void
BaseCommandBlock.setLastOutput
(Component lastOutputMessage) Method parameters in net.minecraft.world.level with type arguments of type ComponentModifier and TypeMethodDescriptionstatic void
Spawner.appendHoverText
(ItemStack stack, List<Component> tooltipLines, String spawnDataKey) -
Uses of Component in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as ComponentModifier and TypeFieldDescriptionprivate static final Component
AnvilBlock.CONTAINER_TITLE
private static final Component
CartographyTableBlock.CONTAINER_TITLE
private static final Component
CraftingTableBlock.CONTAINER_TITLE
private static final Component
EnderChestBlock.CONTAINER_TITLE
private static final Component
GrindstoneBlock.CONTAINER_TITLE
private static final Component
LoomBlock.CONTAINER_TITLE
private static final Component
SmithingTableBlock.CONTAINER_TITLE
private static final Component
StonecutterBlock.CONTAINER_TITLE
private final Component
Mirror.symbol
private static final Component
ShulkerBoxBlock.UNKNOWN_CONTENTS
Methods in net.minecraft.world.level.block that return ComponentMethod parameters in net.minecraft.world.level.block with type arguments of type ComponentModifier and TypeMethodDescriptionvoid
Block.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
DecoratedPotBlock.appendHoverText
(ItemStack p_285238_, Item.TooltipContext p_339662_, List<Component> p_285448_, TooltipFlag p_284997_) void
ShulkerBoxBlock.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
SpawnerBlock.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) void
TrialSpawnerBlock.appendHoverText
(ItemStack p_312446_, Item.TooltipContext p_339621_, List<Component> p_312088_, TooltipFlag p_311895_) -
Uses of Component in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as ComponentModifier and TypeFieldDescriptionprivate Component
SkullBlockEntity.customName
private static final Component
BeaconBlockEntity.DEFAULT_NAME
private final Component[]
SignText.filteredMessages
private final Component[]
SignText.messages
private Component
BannerBlockEntity.name
private Component
BaseContainerBlockEntity.name
private Component
BeaconBlockEntity.name
The custom name for this beacon.private Component
EnchantingTableBlockEntity.name
Methods in net.minecraft.world.level.block.entity that return ComponentModifier and TypeMethodDescriptionprivate static Component[]
SignText.emptyMessages()
BannerBlockEntity.getCustomName()
BaseContainerBlockEntity.getCustomName()
BeaconBlockEntity.getCustomName()
EnchantingTableBlockEntity.getCustomName()
protected Component
BarrelBlockEntity.getDefaultName()
protected abstract Component
BaseContainerBlockEntity.getDefaultName()
protected Component
BlastFurnaceBlockEntity.getDefaultName()
protected Component
BrewingStandBlockEntity.getDefaultName()
protected Component
ChestBlockEntity.getDefaultName()
protected Component
CrafterBlockEntity.getDefaultName()
protected Component
DispenserBlockEntity.getDefaultName()
protected Component
DropperBlockEntity.getDefaultName()
protected Component
FurnaceBlockEntity.getDefaultName()
protected Component
HopperBlockEntity.getDefaultName()
protected Component
ShulkerBoxBlockEntity.getDefaultName()
protected Component
SmokerBlockEntity.getDefaultName()
BaseContainerBlockEntity.getDisplayName()
BeaconBlockEntity.getDisplayName()
LecternBlockEntity.getDisplayName()
SignText.getMessage
(int index, boolean isFiltered) SignText.getMessages
(boolean isFiltered) BannerBlockEntity.getName()
BaseContainerBlockEntity.getName()
BeaconBlockEntity.getName()
EnchantingTableBlockEntity.getName()
JigsawBlockEntity.JointType.getTranslatedName()
private Component
static Component
BlockEntity.parseCustomNameSafe
(String customName, HolderLookup.Provider registries) Methods in net.minecraft.world.level.block.entity with parameters of type ComponentModifier and TypeMethodDescriptionstatic boolean
private static SignText
SignText.load
(Component[] messages, Optional<Component[]> filteredMessages, DyeColor color, boolean hasGlowingText) private Component
void
BeaconBlockEntity.setCustomName
(Component name) Sets the custom name for this beacon.void
EnchantingTableBlockEntity.setCustomName
(Component customName) SignText.setMessage
(int index, Component text) SignText.setMessage
(int index, Component text, Component filteredText) Method parameters in net.minecraft.world.level.block.entity with type arguments of type ComponentModifier and TypeMethodDescriptionSignText.getRenderMessages
(boolean renderMessagesFiltered, Function<Component, FormattedCharSequence> formatter) Constructors in net.minecraft.world.level.block.entity with parameters of type Component -
Uses of Component in net.minecraft.world.level.block.state.properties
Fields in net.minecraft.world.level.block.state.properties declared as ComponentMethods in net.minecraft.world.level.block.state.properties that return Component -
Uses of Component in net.minecraft.world.level.saveddata.maps
Fields in net.minecraft.world.level.saveddata.maps with type parameters of type ComponentModifier and TypeFieldDescriptionMapBanner.name
The field for thename
record component.MapDecoration.name
The field for thename
record component.Methods in net.minecraft.world.level.saveddata.maps that return types with arguments of type ComponentModifier and TypeMethodDescriptionMapBanner.name()
Returns the value of thename
record component.MapDecoration.name()
Returns the value of thename
record component.Methods in net.minecraft.world.level.saveddata.maps with parameters of type ComponentModifier and TypeMethodDescriptionvoid
MapItemSavedData.addDecoration
(Holder<MapDecorationType> decorationType, LevelAccessor level, String id, double x, double z, double yRot, Component displayName) Constructor parameters in net.minecraft.world.level.saveddata.maps with type arguments of type ComponentModifierConstructorDescriptionCreates an instance of aMapBanner
record class.MapDecoration
(Holder<MapDecorationType> type, byte x, byte y, byte rot, Optional<Component> name) Creates an instance of aMapDecoration
record class. -
Uses of Component in net.minecraft.world.level.storage
Fields in net.minecraft.world.level.storage declared as ComponentModifier and TypeFieldDescriptionprivate Component
LevelSummary.info
private static final Component
LevelSummary.CorruptedLevelSummary.INFO
private static final Component
LevelSummary.SymlinkLevelSummary.INFO
private final Component
LevelStorageException.messageComponent
private static final Component
LevelSummary.SymlinkLevelSummary.MORE_INFO_BUTTON
static final Component
LevelSummary.PLAY_WORLD
private static final Component
LevelSummary.CorruptedLevelSummary.RECOVER
Methods in net.minecraft.world.level.storage that return ComponentModifier and TypeMethodDescriptionprivate Component
LevelSummary.createInfo()
LevelSummary.CorruptedLevelSummary.getInfo()
LevelSummary.getInfo()
LevelSummary.SymlinkLevelSummary.getInfo()
LevelStorageException.getMessageComponent()
LevelSummary.CorruptedLevelSummary.primaryActionMessage()
LevelSummary.primaryActionMessage()
LevelSummary.SymlinkLevelSummary.primaryActionMessage()
Constructors in net.minecraft.world.level.storage with parameters of type Component -
Uses of Component in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type ComponentModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder
<Component> SetLoreFunction.Builder.lore
SetLoreFunction.lore
SetNameFunction.name
static final com.mojang.serialization.Codec
<Component> SetWrittenBookPagesFunction.PAGE_CODEC
private final List
<Filterable<Component>> SetWrittenBookPagesFunction.pages
Methods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type ComponentModifier and TypeMethodDescriptionSetNameFunction.Target.component()
static UnaryOperator
<Component> SetNameFunction.createResolver
(LootContext lootContext, LootContext.EntityTarget resolutionContext) Create a UnaryOperator that resolves Components based on the given LootContext and EntityTarget.SetLoreFunction.updateLore
(ItemLore itemLore, LootContext context) Methods in net.minecraft.world.level.storage.loot.functions with parameters of type ComponentModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder
<?> SetNameFunction.setName
(Component name, SetNameFunction.Target target) static LootItemConditionalFunction.Builder
<?> SetNameFunction.setName
(Component name, SetNameFunction.Target target, LootContext.EntityTarget resolutionContext) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type ComponentModifierConstructorDescriptionprivate
SetNameFunction
(List<LootItemCondition> conditions, Optional<Component> name, Optional<LootContext.EntityTarget> resolutionContext, SetNameFunction.Target target) -
Uses of Component in net.minecraft.world.scores
Fields in net.minecraft.world.scores declared as ComponentModifier and TypeFieldDescriptionprivate final Component
PlayerScoreEntry.display
The field for thedisplay
record component.private Component
Score.display
private Component
Objective.displayName
private Component
PlayerTeam.displayName
private Component
Objective.formattedDisplayName
private Component
PlayerTeam.playerPrefix
private Component
PlayerTeam.playerSuffix
Methods in net.minecraft.world.scores that return ComponentModifier and TypeMethodDescriptionprivate Component
Objective.createFormattedDisplayName()
PlayerScoreEntry.display()
Returns the value of thedisplay
record component.Score.display()
ScoreAccess.display()
Objective.getDisplayName()
PlayerTeam.getDisplayName()
default Component
ScoreHolder.getDisplayName()
Team.CollisionRule.getDisplayName()
Team.Visibility.getDisplayName()
default Component
ScoreHolder.getFeedbackDisplayName()
Objective.getFormattedDisplayName()
PlayerTeam.getPlayerPrefix()
PlayerTeam.getPlayerSuffix()
PlayerScoreEntry.ownerName()
Methods in net.minecraft.world.scores with parameters of type ComponentModifier and TypeMethodDescriptionScoreboard.addObjective
(String name, ObjectiveCriteria criteria, Component displayName, ObjectiveCriteria.RenderType renderType, boolean displayAutoUpdate, NumberFormat numberFormat) void
void
static MutableComponent
PlayerTeam.formatNameForTeam
(Team playerTeam, Component playerName) PlayerTeam.getFormattedName
(Component formattedName) abstract MutableComponent
Team.getFormattedName
(Component formattedName) void
Objective.setDisplayName
(Component displayName) void
PlayerTeam.setDisplayName
(Component name) Sets the display name for this team.void
PlayerTeam.setPlayerPrefix
(Component playerPrefix) void
PlayerTeam.setPlayerSuffix
(Component playerSuffix) Constructors in net.minecraft.world.scores with parameters of type ComponentModifierConstructorDescriptionObjective
(Scoreboard scoreboard, String name, ObjectiveCriteria criteria, Component displayName, ObjectiveCriteria.RenderType renderType, boolean displayAutoUpdate, NumberFormat numberFormat) PlayerScoreEntry
(String owner, int value, Component display, NumberFormat numberFormatOverride) Creates an instance of aPlayerScoreEntry
record class. -
Uses of Component in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client that return ComponentModifier and TypeMethodDescriptionstatic @Nullable Component
ClientHooks.onClientChat
(ChatType.Bound boundChatType, Component message, UUID sender) static @Nullable Component
ClientHooks.onClientPlayerChat
(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender) static @Nullable Component
ClientHooks.onClientSystemChat
(Component message, boolean overlay) Methods in net.neoforged.neoforge.client that return types with arguments of type ComponentModifier and TypeMethodDescriptionClientHooks.getEffectTooltip
(EffectRenderingInventoryScreen<?> screen, MobEffectInstance effectInst, List<Component> tooltip) Fires theGatherEffectScreenTooltipsEvent
and returns the resulting tooltip lines.Methods in net.neoforged.neoforge.client with parameters of type ComponentModifier and TypeMethodDescriptionstatic @Nullable Component
ClientHooks.onClientChat
(ChatType.Bound boundChatType, Component message, UUID sender) static @Nullable Component
ClientHooks.onClientPlayerChat
(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender) static @Nullable Component
ClientHooks.onClientSystemChat
(Component message, boolean overlay) Method parameters in net.neoforged.neoforge.client with type arguments of type ComponentModifier and TypeMethodDescriptionClientHooks.getEffectTooltip
(EffectRenderingInventoryScreen<?> screen, MobEffectInstance effectInst, List<Component> tooltip) Fires theGatherEffectScreenTooltipsEvent
and returns the resulting tooltip lines.void
ClientCommandSourceStack.sendSuccess
(Supplier<Component> message, boolean sendToAdmins) Sends a success message without attempting to get the server side list of adminsConstructors in net.neoforged.neoforge.client with parameters of type ComponentModifierConstructorDescriptionClientCommandSourceStack
(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) -
Uses of Component in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as ComponentModifier and TypeFieldDescriptionprivate Component
RenderNameTagEvent.content
static final Component
ScreenshotEvent.DEFAULT_CANCEL_REASON
private Component
ClientChatReceivedEvent.message
private final Component
RenderNameTagEvent.originalContent
private @Nullable Component
ScreenshotEvent.resultMessage
Fields in net.neoforged.neoforge.client.event with type parameters of type ComponentModifier and TypeFieldDescriptionAddAttributeTooltipsEvent.tooltip
GatherEffectScreenTooltipsEvent.tooltip
Methods in net.neoforged.neoforge.client.event that return ComponentModifier and TypeMethodDescriptionScreenshotEvent.getCancelMessage()
Returns the cancellation message to be used in informing the player.RenderNameTagEvent.getContent()
Returns the text on the nameplate that will be rendered.ClientChatReceivedEvent.getMessage()
Returns the message that will be displayed in the chat message window, if the event is not cancelled.RenderNameTagEvent.getOriginalContent()
Returns the original text on the nameplate.@Nullable Component
ScreenshotEvent.getResultMessage()
Returns the custom cancellation message, ornull
if no custom message is set.Methods in net.neoforged.neoforge.client.event that return types with arguments of type ComponentMethods in net.neoforged.neoforge.client.event with parameters of type ComponentModifier and TypeMethodDescriptionvoid
AddAttributeTooltipsEvent.addTooltipLines
(Component... comps) Adds one or moreComponent
s to the tooltip.void
RenderNameTagEvent.setContent
(Component contents) Sets the new text on the nameplate.void
ClientChatReceivedEvent.setMessage
(Component message) Sets the new message to be displayed in the chat message window, if the event is not cancelled.void
ScreenshotEvent.setResultMessage
(@Nullable Component resultMessage) Sets the new custom cancellation message used to inform the player.Constructors in net.neoforged.neoforge.client.event with parameters of type ComponentModifierConstructorDescriptionClientChatReceivedEvent
(ChatType.Bound boundChatType, Component message, UUID sender) Player
(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender) RenderNameTagEvent
(Entity entity, Component content, EntityRenderer<?> entityRenderer, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick) Constructor parameters in net.neoforged.neoforge.client.event with type arguments of type ComponentModifierConstructorDescriptionAddAttributeTooltipsEvent
(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) GatherEffectScreenTooltipsEvent
(EffectRenderingInventoryScreen<?> screen, MobEffectInstance effectInst, List<Component> tooltip) -
Uses of Component in net.neoforged.neoforge.client.extensions
Methods in net.neoforged.neoforge.client.extensions that return ComponentModifier and TypeMethodDescriptiondefault Component
IKeyMappingExtension.getDisplayName()
Returns the display name of this key mapping.Methods in net.neoforged.neoforge.client.extensions with parameters of type ComponentModifier and TypeMethodDescriptiondefault int
IGuiGraphicsExtension.drawScrollingString
(Font font, Component text, int minX, int maxX, int y, int color) Draws a left-aligned string, with a scrolling effect if the string is too long. -
Uses of Component in net.neoforged.neoforge.client.gui
Fields in net.neoforged.neoforge.client.gui declared as ComponentModifier and TypeFieldDescriptionstatic final Component
ConfigurationScreen.CRUMB_SEPARATOR
The breadcrumb separator.private Component
LoadingErrorScreen.errorHeader
static final Component
ConfigurationScreen.GAME_RESTART_MESSAGE
static final Component
ConfigurationScreen.GAME_RESTART_TITLE
static final Component
ConfigurationScreen.GAME_RESTART_YES
static final Component
ConfigurationScreen.LONG_STRING
private final Component
LoadingErrorScreen.LoadingEntryList.LoadingMessageEntry.message
static final Component
ConfigurationScreen.MOVE_LIST_ELEMENT_DOWN
static final Component
ConfigurationScreen.MOVE_LIST_ELEMENT_UP
private final @Nullable Component
ConfigurationScreen.ConfigurationSectionScreen.Element.name
The field for thename
record component.static final Component
ConfigurationScreen.NEW_LIST_ELEMENT
private final Component
ModMismatchDisconnectedScreen.reason
static final Component
ConfigurationScreen.REMOVE_LIST_ELEMENT
static final Component
ConfigurationScreen.RESET
static final Component
ConfigurationScreen.RESET_TOOLTIP
static final Component
ConfigurationScreen.RESTART_NO
static final Component
ConfigurationScreen.RESTART_NO_TOOLTIP
static final Component
ConfigurationScreen.RETURN_TO_MENU
static final Component
ConfigurationScreen.SAVING_LEVEL
static final Component
ConfigurationScreen.SERVER_RESTART_MESSAGE
static final Component
ConfigurationScreen.SERVER_RESTART_TITLE
private final Component
LoadingErrorScreen.FormattedIssue.text
The field for thetext
record component.private final @Nullable Component
ConfigurationScreen.ConfigurationSectionScreen.Element.tooltip
The field for thetooltip
record component.static final Component
ConfigurationScreen.TOOLTIP_CANNOT_EDIT_NOT_LOADED
static final Component
ConfigurationScreen.TOOLTIP_CANNOT_EDIT_THIS_WHILE_ONLINE
static final Component
ConfigurationScreen.TOOLTIP_CANNOT_EDIT_THIS_WHILE_OPEN_TO_LAN
static final Component
ConfigurationScreen.UNDO
static final Component
ConfigurationScreen.UNDO_TOOLTIP
static final Component
ConfigurationScreen.UNSUPPORTED_ELEMENT
private Component
LoadingErrorScreen.warningHeader
Fields in net.neoforged.neoforge.client.gui with type parameters of type ComponentModifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, Component> ModMismatchDisconnectedScreen.mismatchedChannelData
private final PropertyDispatch.QuadFunction
<ConfigurationScreen, net.neoforged.fml.config.ModConfig.Type, net.neoforged.fml.config.ModConfig, Component, Screen> ConfigurationScreen.sectionScreen
Methods in net.neoforged.neoforge.client.gui that return ComponentModifier and TypeMethodDescription(package private) Component
ModListScreen.SortType.getButtonText()
LoadingErrorScreen.LoadingEntryList.LoadingMessageEntry.getNarration()
protected Component
ConfigurationScreen.ConfigurationSectionScreen.getTooltipComponent
(String key, @Nullable ModConfigSpec.Range<?> range) @Nullable Component
ConfigurationScreen.ConfigurationSectionScreen.Element.name()
Returns the value of thename
record component.ConfigurationScreen.TranslationChecker.optional
(Component prefix, String translationKey, ChatFormatting... style) If the given translation key exists, returns it formatted with the given style(s) and as prefixed with the given component.LoadingErrorScreen.FormattedIssue.text()
Returns the value of thetext
record component.@Nullable Component
ConfigurationScreen.ConfigurationSectionScreen.Element.tooltip()
Returns the value of thetooltip
record component.ConfigurationScreen.translatableConfig
(net.neoforged.fml.config.ModConfig modConfig, String suffix, String fallback) Methods in net.neoforged.neoforge.client.gui that return types with arguments of type ComponentModifier and TypeMethodDescriptionprivate Map
<List<ResourceLocation>, Component> ModMismatchDisconnectedScreen.MismatchInfoPanel.sortAndMergeChannelData
(Map<ResourceLocation, Component> mismatchedChannelData) Iterates over the raw channel mismatch data and merges entries with the same reason component into one channel mismatch entry each.Methods in net.neoforged.neoforge.client.gui with parameters of type ComponentModifier and TypeMethodDescriptionprivate void
LoadingErrorScreen.drawMultiLineCenteredString
(GuiGraphics guiGraphics, Font fr, Component str, int x, int y) ConfigurationScreen.TranslationChecker.optional
(Component prefix, String translationKey, ChatFormatting... style) If the given translation key exists, returns it formatted with the given style(s) and as prefixed with the given component.Method parameters in net.neoforged.neoforge.client.gui with type arguments of type ComponentModifier and TypeMethodDescriptionprivate Map
<List<ResourceLocation>, Component> ModMismatchDisconnectedScreen.MismatchInfoPanel.sortAndMergeChannelData
(Map<ResourceLocation, Component> mismatchedChannelData) Iterates over the raw channel mismatch data and merges entries with the same reason component into one channel mismatch entry each.Constructors in net.neoforged.neoforge.client.gui with parameters of type ComponentModifierConstructorDescriptionConfigurationListScreen
(ConfigurationScreen.ConfigurationSectionScreen.Context context, String key, Component title, ModConfigSpec.ListValueSpec spec, ModConfigSpec.ConfigValue<List<T>> valueList) ConfigurationSectionScreen
(Screen parent, net.neoforged.fml.config.ModConfig.Type type, net.neoforged.fml.config.ModConfig modConfig, Component title) Constructs a new section screen for the top-most section in aModConfig
.ConfigurationSectionScreen
(Screen parent, net.neoforged.fml.config.ModConfig.Type type, net.neoforged.fml.config.ModConfig modConfig, Component title, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) Constructs a new section screen for the top-most section in aModConfig
.ConfigurationSectionScreen
(ConfigurationScreen.ConfigurationSectionScreen.Context parentContext, Screen parent, Map<String, Object> valueSpecs, String key, Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entrySet, Component title) Constructs a new section screen for a sub-section of a config.protected
ConfigurationSectionScreen
(ConfigurationScreen.ConfigurationSectionScreen.Context context, Component title) Element
(@Nullable Component name, @Nullable Component tooltip, @Nullable AbstractWidget widget, @Nullable OptionInstance<?> option, boolean undoable) Creates an instance of aElement
record class.Element
(@Nullable Component name, @Nullable Component tooltip, AbstractWidget widget) Element
(@Nullable Component name, @Nullable Component tooltip, AbstractWidget widget, boolean undoable) Element
(Component name, Component tooltip, OptionInstance<?> option) Element
(Component name, Component tooltip, OptionInstance<?> option, boolean undoable) ExperimentEntry
(Component title, BooleanSupplier selectedSupplier, Consumer<Boolean> selectedSetter, Component description) private
FormattedIssue
(Component text, net.neoforged.fml.ModLoadingIssue issue) Creates an instance of aFormattedIssue
record class.ListLabelWidget
(int x, int y, int width, int height, Component labelText, int idx) (package private)
LoadingMessageEntry
(Component message) (package private)
LoadingMessageEntry
(Component message, boolean center) ModMismatchDisconnectedScreen
(Screen parentScreen, Component reason, Map<ResourceLocation, Component> mismatchedChannelData) private
TooltipConfirmScreen
(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, Component message, Component yesButton, Component noButton) Constructor parameters in net.neoforged.neoforge.client.gui with type arguments of type ComponentModifierConstructorDescriptionConfigurationScreen
(net.neoforged.fml.ModContainer mod, Screen parent, PropertyDispatch.QuadFunction<ConfigurationScreen, net.neoforged.fml.config.ModConfig.Type, net.neoforged.fml.config.ModConfig, Component, Screen> sectionScreen) ModMismatchDisconnectedScreen
(Screen parentScreen, Component reason, Map<ResourceLocation, Component> mismatchedChannelData) -
Uses of Component in net.neoforged.neoforge.client.gui.widget
Fields in net.neoforged.neoforge.client.gui.widget declared as ComponentModifier and TypeFieldDescriptionprotected Component
ExtendedSlider.prefix
protected Component
ExtendedSlider.suffix
Methods in net.neoforged.neoforge.client.gui.widget that return ComponentConstructors in net.neoforged.neoforge.client.gui.widget with parameters of type ComponentModifierConstructorDescriptionExtendedButton
(int xPos, int yPos, int width, int height, Component displayString, Button.OnPress handler) ExtendedButton
(int xPos, int yPos, int width, int height, Component displayString, Button.OnPress handler, Button.CreateNarration createNarration) ExtendedSlider
(int x, int y, int width, int height, Component prefix, Component suffix, double minValue, double maxValue, double currentValue, boolean drawString) Overload withstepSize
set to 1, useful for sliders with whole number values.ExtendedSlider
(int x, int y, int width, int height, Component prefix, Component suffix, double minValue, double maxValue, double currentValue, double stepSize, int precision, boolean drawString) UnicodeGlyphButton
(int xPos, int yPos, int width, int height, Component displayString, String glyph, float glyphScale, Button.OnPress handler) -
Uses of Component in net.neoforged.neoforge.client.settings
Methods in net.neoforged.neoforge.client.settings that return ComponentModifier and TypeMethodDescriptionabstract Component
KeyModifier.getCombinedName
(InputConstants.Key key, Supplier<Component> defaultLogic) Method parameters in net.neoforged.neoforge.client.settings with type arguments of type ComponentModifier and TypeMethodDescriptionabstract Component
KeyModifier.getCombinedName
(InputConstants.Key key, Supplier<Component> defaultLogic) -
Uses of Component in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return ComponentModifier and TypeMethodDescriptiondefault Component
TranslatableEnum.getTranslatedName()
Returns the translated name of this value.static Component
CommonHooks.newChatWithLinks
(String string) static Component
CommonHooks.newChatWithLinks
(String string, boolean allowMissingHeader) static @Nullable Component
CommonHooks.onServerChatSubmittedEvent
(ServerPlayer player, String plain, Component decorated) Methods in net.neoforged.neoforge.common with parameters of type ComponentModifier and TypeMethodDescriptionprivate static String
CommonHooks.getRawText
(Component message) static @Nullable Component
CommonHooks.onServerChatSubmittedEvent
(ServerPlayer player, String plain, Component decorated) -
Uses of Component in net.neoforged.neoforge.common.command
Methods in net.neoforged.neoforge.common.command that return ComponentModifier and TypeMethodDescriptionIEntitySelectorType.getSuggestionTooltip()
Returns anComponent
containing a short description for this selector type. -
Uses of Component in net.neoforged.neoforge.common.damagesource
Methods in net.neoforged.neoforge.common.damagesource that return ComponentModifier and TypeMethodDescriptionIDeathMessageProvider.getDeathMessage
(LivingEntity entity, CombatEntry lastEntry, @Nullable CombatEntry mostSignificantFall) Computes the death message from the available context.
This method is not invoked if there are no available combat entries, since the damage source would not be available. -
Uses of Component in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return ComponentModifier and TypeMethodDescriptiondefault Component
IAttributeExtension.getDebugInfo
(AttributeModifier modif, TooltipFlag flag) Computes the additional debug information for a given attribute modifier, if the flag is advanced.default Component
ILevelExtension.getDescription()
Returns Component which looks up the matching value for ILevelExtension.getDescriptionKey(), falling back to the registry name if no translation exists.default Component
IItemExtension.getHighlightTip
(ItemStack item, Component displayName) Allow the item one last chance to modify its name used for the tool highlight useful for adding something extra that can't be removed by a user in the displayed name, such as a mode of operation.default Component
IItemStackExtension.getHighlightTip
(Component displayName) Allow the item one last chance to modify its name used for the tool highlight useful for adding something extra that can't be removed by a user in the displayed name, such as a mode of operation.Methods in net.neoforged.neoforge.common.extensions with parameters of type ComponentModifier and TypeMethodDescriptiondefault void
IClientCommonPacketListenerExtension.disconnect
(Component reason) Triggers a disconnection with the given reason.void
ICommonPacketListener.disconnect
(Component reason) Triggers a disconnection with the given reason.default Component
IItemExtension.getHighlightTip
(ItemStack item, Component displayName) Allow the item one last chance to modify its name used for the tool highlight useful for adding something extra that can't be removed by a user in the displayed name, such as a mode of operation.default Component
IItemStackExtension.getHighlightTip
(Component displayName) Allow the item one last chance to modify its name used for the tool highlight useful for adding something extra that can't be removed by a user in the displayed name, such as a mode of operation.Method parameters in net.neoforged.neoforge.common.extensions with type arguments of type ComponentModifier and TypeMethodDescriptiondefault <T extends TooltipProvider>
voidIDataComponentHolderExtension.addToTooltip
(Supplier<? extends DataComponentType<T>> type, Item.TooltipContext context, Consumer<Component> adder, TooltipFlag flag) default <T extends TooltipProvider>
voidIDataComponentHolderExtension.addToTooltip
(DataComponentType<T> type, Item.TooltipContext context, Consumer<Component> adder, TooltipFlag flag) -
Uses of Component in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util with parameters of type ComponentModifier and TypeMethodDescriptionvoid
FakePlayer.FakePlayerNetHandler.disconnect
(Component message) void
FakePlayer.displayClientMessage
(Component chatComponent, boolean actionBar) void
FakePlayer.FakePlayerNetHandler.sendDisguisedChatMessage
(Component content, ChatType.Bound boundChatType) Method parameters in net.neoforged.neoforge.common.util with type arguments of type ComponentModifier and TypeMethodDescriptionstatic void
AttributeUtil.addAttributeTooltips
(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) Checks if attribute modifier tooltips should show, and if they should, adds tooltips for all attribute modifiers present on an item stack to the stack's tooltip lines.static void
AttributeUtil.addPotionTooltip
(List<com.mojang.datafixers.util.Pair<Holder<Attribute>, AttributeModifier>> list, Consumer<Component> tooltips) Adds tooltip lines for the attribute modifiers contained in aPotionContents
.static void
AttributeUtil.applyModifierTooltips
(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) Applies the attribute modifier tooltips for all attribute modifiers present on the item stack.static void
AttributeUtil.applyTextFor
(ItemStack stack, Consumer<Component> tooltip, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> modifierMap, AttributeTooltipContext ctx) Applies the text for the provided attribute modifiers to the tooltip for a given item stack. -
Uses of Component in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as ComponentMethods in net.neoforged.neoforge.event that return ComponentModifier and TypeMethodDescriptionServerChatEvent.getMessage()
Returns the message that will be sent to the relevant clients, if the event is not cancelled.static Component
EventHooks.getPlayerDisplayName
(Player player, Component username) static Component
EventHooks.getPlayerTabListDisplayName
(Player player) Methods in net.neoforged.neoforge.event with parameters of type ComponentModifier and TypeMethodDescriptionvoid
AddPackFindersEvent.addPackFinders
(ResourceLocation packLocation, PackType packType, Component packNameDisplay, PackSource packSource, boolean alwaysActive, Pack.Position packPosition) Helper method to register a pack found under the `resources/` folder.static Component
EventHooks.getPlayerDisplayName
(Player player, Component username) void
ServerChatEvent.setMessage
(Component message) Set the message to be sent to the relevant clients.Method parameters in net.neoforged.neoforge.event with type arguments of type ComponentModifier and TypeMethodDescriptionstatic ItemTooltipEvent
EventHooks.onItemTooltip
(ItemStack itemStack, @Nullable Player entityPlayer, List<Component> list, TooltipFlag flags, Item.TooltipContext context) Constructors in net.neoforged.neoforge.event with parameters of type ComponentModifierConstructorDescriptionServerChatEvent
(ServerPlayer player, String rawText, Component message) -
Uses of Component in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as ComponentModifier and TypeFieldDescriptionprivate Component
PlayerEvent.NameFormat.displayname
private @Nullable Component
PlayerEvent.TabListNameFormat.displayName
private final Component
PlayerEvent.NameFormat.username
Fields in net.neoforged.neoforge.event.entity.player with type parameters of type ComponentMethods in net.neoforged.neoforge.event.entity.player that return ComponentModifier and TypeMethodDescriptionPlayerEvent.NameFormat.getDisplayname()
@Nullable Component
PlayerEvent.TabListNameFormat.getDisplayName()
PlayerEvent.NameFormat.getUsername()
Methods in net.neoforged.neoforge.event.entity.player that return types with arguments of type ComponentMethods in net.neoforged.neoforge.event.entity.player with parameters of type ComponentModifier and TypeMethodDescriptionvoid
PlayerEvent.NameFormat.setDisplayname
(Component displayname) void
PlayerEvent.TabListNameFormat.setDisplayName
(@Nullable Component displayName) Constructors in net.neoforged.neoforge.event.entity.player with parameters of type ComponentConstructor parameters in net.neoforged.neoforge.event.entity.player with type arguments of type ComponentModifierConstructorDescriptionItemTooltipEvent
(ItemStack itemStack, @Nullable Player player, List<Component> list, TooltipFlag flags, Item.TooltipContext context) This event is fired inItemStack.getTooltipLines(TooltipContext, Player, TooltipFlag)
, which in turn is called from its respective GUIContainer. -
Uses of Component in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids that return ComponentModifier and TypeMethodDescriptionFluidType.getDescription()
Returns the component representing the name of the fluid type.FluidType.getDescription
(FluidStack stack) Returns the component representing the name of the fluid type.FluidStack.getDisplayName()
Deprecated, for removal: This API element is subject to removal in a future version.UseFluidStack.getHoverName()
instead.FluidStack.getHoverName()
Returns the hover name of this stack. -
Uses of Component in net.neoforged.neoforge.network.handlers
Methods in net.neoforged.neoforge.network.handlers with parameters of type ComponentModifier and TypeMethodDescriptionprivate static <T extends AbstractContainerMenu>
voidClientPayloadHandler.createMenuScreen
(Component name, MenuType<T> menuType, int windowId, RegistryFriendlyByteBuf buf) -
Uses of Component in net.neoforged.neoforge.network.handling
Methods in net.neoforged.neoforge.network.handling with parameters of type ComponentModifier and TypeMethodDescriptiondefault void
IPayloadContext.disconnect
(Component reason) Disconnects the player from the network. -
Uses of Component in net.neoforged.neoforge.network.negotiation
Fields in net.neoforged.neoforge.network.negotiation declared as ComponentModifier and TypeFieldDescriptionprivate final @Nullable Component
NetworkComponentNegotiator.ComponentNegotiationResult.failureReason
The field for thefailureReason
record component.Fields in net.neoforged.neoforge.network.negotiation with type parameters of type ComponentModifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, Component> NegotiationResult.failureReasons
The field for thefailureReasons
record component.Methods in net.neoforged.neoforge.network.negotiation that return ComponentModifier and TypeMethodDescription@Nullable Component
NetworkComponentNegotiator.ComponentNegotiationResult.failureReason()
Returns the value of thefailureReason
record component.Methods in net.neoforged.neoforge.network.negotiation that return types with arguments of type ComponentModifier and TypeMethodDescriptionNegotiationResult.failureReasons()
Returns the value of thefailureReasons
record component.Constructors in net.neoforged.neoforge.network.negotiation with parameters of type ComponentModifierConstructorDescriptionComponentNegotiationResult
(boolean success, @Nullable Component failureReason) Creates an instance of aComponentNegotiationResult
record class.Constructor parameters in net.neoforged.neoforge.network.negotiation with type arguments of type ComponentModifierConstructorDescriptionNegotiationResult
(List<NegotiatedNetworkComponent> components, boolean success, Map<ResourceLocation, Component> failureReasons) Creates an instance of aNegotiationResult
record class. -
Uses of Component in net.neoforged.neoforge.network.payload
Fields in net.neoforged.neoforge.network.payload declared as ComponentModifier and TypeFieldDescriptionprivate final Component
AdvancedOpenScreenPayload.name
The field for thename
record component.Fields in net.neoforged.neoforge.network.payload with type parameters of type ComponentModifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, Component> ModdedNetworkSetupFailedPayload.failureReasons
The field for thefailureReasons
record component.Methods in net.neoforged.neoforge.network.payload that return ComponentModifier and TypeMethodDescriptionAdvancedOpenScreenPayload.name()
Returns the value of thename
record component.Methods in net.neoforged.neoforge.network.payload that return types with arguments of type ComponentModifier and TypeMethodDescriptionModdedNetworkSetupFailedPayload.failureReasons()
Returns the value of thefailureReasons
record component.Constructors in net.neoforged.neoforge.network.payload with parameters of type ComponentModifierConstructorDescriptionAdvancedOpenScreenPayload
(int windowId, MenuType<?> menuType, Component name, byte[] additionalData) Creates an instance of aAdvancedOpenScreenPayload
record class.Constructor parameters in net.neoforged.neoforge.network.payload with type arguments of type ComponentModifierConstructorDescriptionModdedNetworkSetupFailedPayload
(Map<ResourceLocation, Component> failureReasons) Creates an instance of aModdedNetworkSetupFailedPayload
record class. -
Uses of Component in net.neoforged.neoforge.server
Fields in net.neoforged.neoforge.server with type parameters of type ComponentModifier and TypeFieldDescriptionLanguageHook.defaultLanguageComponentTable
LanguageHook.modComponentTable
-
Uses of Component in net.neoforged.neoforge.server.command
Methods in net.neoforged.neoforge.server.command that return ComponentModifier and TypeMethodDescriptionprivate static Component
TPSCommand.createComponent
(MinecraftServer server, @Nullable ServerLevel dimension) private static Component
TimeSpeedCommand.levelName
(CommandSourceStack source) private static Component
DataComponentCommand.print
(DataComponentType<?> type, Object data, ChatFormatting color, Component tooltip) Methods in net.neoforged.neoforge.server.command with parameters of type ComponentModifier and TypeMethodDescriptionprivate static Component
DataComponentCommand.print
(DataComponentType<?> type, Object data, ChatFormatting color, Component tooltip) Method parameters in net.neoforged.neoforge.server.command with type arguments of type ComponentModifier and TypeMethodDescriptionprivate static <T> int
TrackCommand.TrackResults.execute
(CommandSourceStack source, TimeTracker<T> tracker, Function<ObjectTimings<T>, Component> toString) -
Uses of Component in net.neoforged.neoforge.server.permission.nodes
Fields in net.neoforged.neoforge.server.permission.nodes declared as ComponentModifier and TypeFieldDescriptionprivate @Nullable Component
PermissionNode.description
private @Nullable Component
PermissionNode.readableName
Fields in net.neoforged.neoforge.server.permission.nodes with type parameters of type ComponentModifier and TypeFieldDescriptionstatic final PermissionType
<Component> PermissionTypes.COMPONENT
Methods in net.neoforged.neoforge.server.permission.nodes that return ComponentModifier and TypeMethodDescription@Nullable Component
PermissionNode.getDescription()
@Nullable Component
PermissionNode.getReadableName()
Methods in net.neoforged.neoforge.server.permission.nodes with parameters of type ComponentModifier and TypeMethodDescriptionPermissionNode.setInformation
(Component readableName, Component description) Allows you to set a human-readable name and description for your Permission.
ServerStatus(Component, Optional, Optional, Optional, boolean, boolean)