Package net.minecraft.client.gui.screen
Class MessageScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.MessageScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/MessageScreen
intermediary net/minecraft/class_424
official fti
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
init()
Called when a screen should be initialized.protected void
void
renderBackground
(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.boolean
Checks whether this screen should be closed when the escape key is pressed.Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, render, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldHideStatusEffectHud, shouldPause, switchFocus, tick, updateNarrator
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
textWidget
- Mappings:
Namespace Name Mixin selector named textWidget
Lnet/minecraft/client/gui/screen/MessageScreen;textWidget:Lnet/minecraft/client/gui/widget/NarratedMultilineTextWidget;
intermediary field_49496
Lnet/minecraft/class_424;field_49496:Lnet/minecraft/class_8019;
official a
Lfti;a:Lfop;
-
-
Constructor Details
-
MessageScreen
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/Screen;<init>(Lnet/minecraft/text/Text;)V
intermediary <init>
Lnet/minecraft/class_437;<init>(Lnet/minecraft/class_2561;)V
official <init>
Lftx;<init>(Lxv;)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
refreshWidgetPositions
protected void refreshWidgetPositions()- Overrides:
refreshWidgetPositions
in classScreen
- Mappings:
Namespace Name Mixin selector named refreshWidgetPositions
Lnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()V
intermediary method_48640
Lnet/minecraft/class_437;method_48640()V
official c
Lftx;c()V
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEsc
in classScreen
- Mappings:
Namespace Name Mixin selector named shouldCloseOnEsc
Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
intermediary method_25422
Lnet/minecraft/class_437;method_25422()Z
official aH_
Lftx;aH_()Z
-
hasUsageText
protected boolean hasUsageText()- Overrides:
hasUsageText
in classScreen
- Mappings:
Namespace Name Mixin selector named hasUsageText
Lnet/minecraft/client/gui/screen/Screen;hasUsageText()Z
intermediary method_48262
Lnet/minecraft/class_437;method_48262()Z
official aS_
Lftx;aS_()Z
-
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackground
in classScreen
- Mappings:
Namespace Name Mixin selector named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
official b
Lftx;b(Lfnr;IIF)V
-