Package net.minecraft.client.gui.screen
Class Screen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Direct Known Subclasses:
AbstractCommandBlockScreen
,AbstractSignEditScreen
,AbuseReportReasonScreen
,AccessibilityOnboardingScreen
,AddServerScreen
,AdvancementsScreen
,BackupPromptScreen
,BookEditScreen
,BookScreen
,ChatReportScreen
,ChatScreen
,ChatSelectionScreen
,ConfirmScreen
,ConnectScreen
,CreateWorldScreen
,CreditsAndAttributionScreen
,CreditsScreen
,CustomizeBuffetLevelScreen
,CustomizeFlatLevelScreen
,DatapackFailureScreen
,DeathScreen
,DemoScreen
,DialogScreen
,DirectConnectScreen
,DisconnectedScreen
,DownloadingTerrainScreen
,EditGameRulesScreen
,EditWorldScreen
,ExperimentalWarningScreen
,ExperimentalWarningScreen.DetailsScreen
,ExperimentsScreen
,FatalErrorScreen
,GameMenuScreen
,GameModeSelectionScreen
,GameOptionsScreen
,HandledScreen
,JigsawBlockScreen
,LevelLoadingScreen
,MessageScreen
,MultiplayerScreen
,NoticeScreen
,OpenToLanScreen
,OptimizeWorldScreen
,OptionsScreen
,OutOfMemoryScreen
,PackScreen
,PresetsScreen
,ProgressScreen
,RealmsScreen
,SelectWorldScreen
,SocialInteractionsScreen
,StatsScreen
,StructureBlockScreen
,TaskScreen
,TelemetryInfoScreen
,TitleScreen
,WarningScreen
- Mappings:
Namespace Name official etd
intermediary net/minecraft/class_437
named net/minecraft/client/gui/screen/Screen
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected @Nullable MinecraftClient
private long
private static final int
int
protected ItemRenderer
private static final long
private static final Logger
private static final long
private static final long
private final ScreenNarrator
private static final long
boolean
private static final long
private static final Text
private boolean
private long
private final List<Selectable>
private @Nullable Selectable
protected TextRenderer
protected final Text
private @Nullable Screen.PositionedTooltip
int
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends Drawable>
TaddDrawable
(T drawable) protected <T extends Element & Drawable & Selectable>
TaddDrawableChild
(T drawableElement) protected void
protected void
addScreenNarrations
(NarrationMessageBuilder messageBuilder) protected <T extends Element & Selectable>
TaddSelectableChild
(T child) void
void
void
void
private void
blur()
children()
Gets a list of all child GUI elements.protected void
protected void
void
close()
private void
confirmLink
(boolean open) void
filesDragged
(List<Path> paths) findSelectedElementData
(List<? extends Selectable> selectables, @Nullable Selectable selectable) private GuiNavigation.Arrow
getArrowNavigation
(NavigationDirection direction) private GuiNavigation.Tab
getTitle()
getTooltipFromItem
(ItemStack stack) boolean
handleTextClick
(@Nullable Style style) static boolean
static boolean
static boolean
protected boolean
protected static void
hide
(ClickableWidget[] widgets) protected void
init()
Called when a screen should be initialized.final void
init
(MinecraftClient client, int width, int height) protected void
protected void
insertText
(String text, boolean override) static boolean
isCopy
(int code) static boolean
isCut
(int code) boolean
isMouseOver
(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.private boolean
static boolean
isPaste
(int code) static boolean
isSelectAll
(int code) protected boolean
isValidCharacterForName
(String name, char character, int cursorPos) boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.private void
narrateScreen
(boolean onlyChangedNarrations) void
narrateScreenIfNarrationEnabled
(boolean onlyChangedNarrations) If narration is enabled, narrates the elements of this screen.void
Called when the screen is displayed usingMinecraftClient.setScreen(net.minecraft.client.gui.screen.Screen)
beforeinit()
orinitTabNavigation()
is called.private void
protected void
void
removed()
void
render
(MatrixStack matrices, int mouseX, int mouseY, float delta) void
renderBackground
(MatrixStack matrices) Renders the background of this screen.void
renderBackgroundTexture
(MatrixStack matrices) Renders the fullscreen background texture of this screen.void
renderOrderedTooltip
(MatrixStack matrices, List<? extends OrderedText> lines, int x, int y) private void
renderPositionedTooltip
(MatrixStack matrices, Screen.PositionedTooltip tooltip, int x, int y) protected void
renderTextHoverEffect
(MatrixStack matrices, @Nullable Style style, int x, int y) void
renderTooltip
(MatrixStack matrices, List<Text> lines, int x, int y) void
renderTooltip
(MatrixStack matrices, List<Text> lines, Optional<TooltipData> data, int x, int y) protected void
renderTooltip
(MatrixStack matrices, ItemStack stack, int x, int y) void
renderTooltip
(MatrixStack matrices, Text text, int x, int y) private void
renderTooltipFromComponents
(MatrixStack matrices, List<TooltipComponent> components, int x, int y, TooltipPositioner positioner) final void
renderWithTooltip
(MatrixStack matrices, int mouseX, int mouseY, float delta) void
resize
(MinecraftClient client, int width, int height) private void
setElementNarrationDelay
(long delayMs) protected void
setInitialFocus
(Element element) Sets the initial focus of this screen.private void
setScreenNarrationDelay
(long delayMs, boolean restartElementNarration) void
setTooltip
(List<OrderedText> tooltip) void
setTooltip
(List<OrderedText> tooltip, TooltipPositioner positioner, boolean focused) void
setTooltip
(Tooltip tooltip, TooltipPositioner positioner, boolean focused) protected void
setTooltip
(Text tooltip) boolean
Checks whether this screen should be closed when the escape key is pressed.boolean
protected void
switchFocus
(GuiNavigationPath path) Switches focus from the currently focused element, if any, topath
.void
tick()
void
static void
wrapScreenError
(Runnable task, String errorTitle, String screenName) Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
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, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Letd;a:Lorg/slf4j/Logger;
intermediary field_22782
Lnet/minecraft/class_437;field_22782:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/gui/screen/Screen;LOGGER:Lorg/slf4j/Logger;
-
ALLOWED_PROTOCOLS
- Mappings:
Namespace Name Mixin selector official b
Letd;b:Ljava/util/Set;
intermediary field_22783
Lnet/minecraft/class_437;field_22783:Ljava/util/Set;
named ALLOWED_PROTOCOLS
Lnet/minecraft/client/gui/screen/Screen;ALLOWED_PROTOCOLS:Ljava/util/Set;
-
field_32270
private static final int field_32270- See Also:
- Mappings:
Namespace Name Mixin selector official c
Letd;c:I
intermediary field_32270
Lnet/minecraft/class_437;field_32270:I
named field_32270
Lnet/minecraft/client/gui/screen/Screen;field_32270:I
-
SCREEN_USAGE_TEXT
- Mappings:
Namespace Name Mixin selector official o
Letd;o:Ltj;
intermediary field_33814
Lnet/minecraft/class_437;field_33814:Lnet/minecraft/class_2561;
named SCREEN_USAGE_TEXT
Lnet/minecraft/client/gui/screen/Screen;SCREEN_USAGE_TEXT:Lnet/minecraft/text/Text;
-
SCREEN_INIT_NARRATION_DELAY
private static final long SCREEN_INIT_NARRATION_DELAY- Mappings:
Namespace Name Mixin selector official u
Letd;u:J
intermediary field_33817
Lnet/minecraft/class_437;field_33817:J
named SCREEN_INIT_NARRATION_DELAY
Lnet/minecraft/client/gui/screen/Screen;SCREEN_INIT_NARRATION_DELAY:J
-
NARRATOR_MODE_CHANGE_DELAY
private static final long NARRATOR_MODE_CHANGE_DELAY- Mappings:
Namespace Name Mixin selector official v
Letd;v:J
intermediary field_33818
Lnet/minecraft/class_437;field_33818:J
named NARRATOR_MODE_CHANGE_DELAY
Lnet/minecraft/client/gui/screen/Screen;NARRATOR_MODE_CHANGE_DELAY:J
-
MOUSE_MOVE_NARRATION_DELAY
private static final long MOUSE_MOVE_NARRATION_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official w
Letd;w:J
intermediary field_33819
Lnet/minecraft/class_437;field_33819:J
named MOUSE_MOVE_NARRATION_DELAY
Lnet/minecraft/client/gui/screen/Screen;MOUSE_MOVE_NARRATION_DELAY:J
-
MOUSE_PRESS_SCROLL_NARRATION_DELAY
private static final long MOUSE_PRESS_SCROLL_NARRATION_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official x
Letd;x:J
intermediary field_33820
Lnet/minecraft/class_437;field_33820:J
named MOUSE_PRESS_SCROLL_NARRATION_DELAY
Lnet/minecraft/client/gui/screen/Screen;MOUSE_PRESS_SCROLL_NARRATION_DELAY:J
-
KEY_PRESS_NARRATION_DELAY
private static final long KEY_PRESS_NARRATION_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official y
Letd;y:J
intermediary field_33821
Lnet/minecraft/class_437;field_33821:J
named KEY_PRESS_NARRATION_DELAY
Lnet/minecraft/client/gui/screen/Screen;KEY_PRESS_NARRATION_DELAY:J
-
title
- Mappings:
Namespace Name Mixin selector official d
Letd;d:Ltj;
intermediary field_22785
Lnet/minecraft/class_437;field_22785:Lnet/minecraft/class_2561;
named title
Lnet/minecraft/client/gui/screen/Screen;title:Lnet/minecraft/text/Text;
-
children
- Mappings:
Namespace Name Mixin selector official p
Letd;p:Ljava/util/List;
intermediary field_22786
Lnet/minecraft/class_437;field_22786:Ljava/util/List;
named children
Lnet/minecraft/client/gui/screen/Screen;children:Ljava/util/List;
-
selectables
- Mappings:
Namespace Name Mixin selector official q
Letd;q:Ljava/util/List;
intermediary field_33815
Lnet/minecraft/class_437;field_33815:Ljava/util/List;
named selectables
Lnet/minecraft/client/gui/screen/Screen;selectables:Ljava/util/List;
-
client
- Mappings:
Namespace Name Mixin selector official e
Letd;e:Lemh;
intermediary field_22787
Lnet/minecraft/class_437;field_22787:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/screen/Screen;client:Lnet/minecraft/client/MinecraftClient;
-
screenInitialized
private boolean screenInitialized- Mappings:
Namespace Name Mixin selector official r
Letd;r:Z
intermediary field_42156
Lnet/minecraft/class_437;field_42156:Z
named screenInitialized
Lnet/minecraft/client/gui/screen/Screen;screenInitialized:Z
-
itemRenderer
- Mappings:
Namespace Name Mixin selector official f
Letd;f:Lfoc;
intermediary field_22788
Lnet/minecraft/class_437;field_22788:Lnet/minecraft/class_918;
named itemRenderer
Lnet/minecraft/client/gui/screen/Screen;itemRenderer:Lnet/minecraft/client/render/item/ItemRenderer;
-
width
public int width- Mappings:
Namespace Name Mixin selector official k
Letd;k:I
intermediary field_22789
Lnet/minecraft/class_437;field_22789:I
named width
Lnet/minecraft/client/gui/screen/Screen;width:I
-
height
public int height- Mappings:
Namespace Name Mixin selector official l
Letd;l:I
intermediary field_22790
Lnet/minecraft/class_437;field_22790:I
named height
Lnet/minecraft/client/gui/screen/Screen;height:I
-
drawables
- Mappings:
Namespace Name Mixin selector official s
Letd;s:Ljava/util/List;
intermediary field_33816
Lnet/minecraft/class_437;field_33816:Ljava/util/List;
named drawables
Lnet/minecraft/client/gui/screen/Screen;drawables:Ljava/util/List;
-
passEvents
public boolean passEvents- Mappings:
Namespace Name Mixin selector official m
Letd;m:Z
intermediary field_22792
Lnet/minecraft/class_437;field_22792:Z
named passEvents
Lnet/minecraft/client/gui/screen/Screen;passEvents:Z
-
textRenderer
- Mappings:
Namespace Name Mixin selector official n
Letd;n:Lenp;
intermediary field_22793
Lnet/minecraft/class_437;field_22793:Lnet/minecraft/class_327;
named textRenderer
Lnet/minecraft/client/gui/screen/Screen;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
clickedLink
- Mappings:
Namespace Name Mixin selector official t
Letd;t:Ljava/net/URI;
intermediary field_22784
Lnet/minecraft/class_437;field_22784:Ljava/net/URI;
named clickedLink
Lnet/minecraft/client/gui/screen/Screen;clickedLink:Ljava/net/URI;
-
narrator
- Mappings:
Namespace Name Mixin selector official z
Letd;z:Lerh;
intermediary field_33822
Lnet/minecraft/class_437;field_33822:Lnet/minecraft/class_6385;
named narrator
Lnet/minecraft/client/gui/screen/Screen;narrator:Lnet/minecraft/client/gui/screen/narration/ScreenNarrator;
-
elementNarrationStartTime
private long elementNarrationStartTime- Mappings:
Namespace Name Mixin selector official A
Letd;A:J
intermediary field_33823
Lnet/minecraft/class_437;field_33823:J
named elementNarrationStartTime
Lnet/minecraft/client/gui/screen/Screen;elementNarrationStartTime:J
-
screenNarrationStartTime
private long screenNarrationStartTime- Mappings:
Namespace Name Mixin selector official B
Letd;B:J
intermediary field_33824
Lnet/minecraft/class_437;field_33824:J
named screenNarrationStartTime
Lnet/minecraft/client/gui/screen/Screen;screenNarrationStartTime:J
-
selected
- Mappings:
Namespace Name Mixin selector official C
Letd;C:Lerc;
intermediary field_33813
Lnet/minecraft/class_437;field_33813:Lnet/minecraft/class_6379;
named selected
Lnet/minecraft/client/gui/screen/Screen;selected:Lnet/minecraft/client/gui/Selectable;
-
tooltip
- Mappings:
Namespace Name Mixin selector official D
Letd;D:Letd$a;
intermediary field_41685
Lnet/minecraft/class_437;field_41685:Lnet/minecraft/class_437$class_7998;
named tooltip
Lnet/minecraft/client/gui/screen/Screen;tooltip:Lnet/minecraft/client/gui/screen/Screen$PositionedTooltip;
-
-
Constructor Details
-
Screen
- Mappings:
Namespace Name Mixin selector official <init>
Letd;<init>(Ltj;)V
intermediary <init>
Lnet/minecraft/class_437;<init>(Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/gui/screen/Screen;<init>(Lnet/minecraft/text/Text;)V
-
-
Method Details
-
getTitle
- Mappings:
Namespace Name Mixin selector official n
Letd;n()Ltj;
intermediary method_25440
Lnet/minecraft/class_437;method_25440()Lnet/minecraft/class_2561;
named getTitle
Lnet/minecraft/client/gui/screen/Screen;getTitle()Lnet/minecraft/text/Text;
-
getNarratedTitle
- Mappings:
Namespace Name Mixin selector official aw_
Letd;aw_()Ltj;
intermediary method_25435
Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
named getNarratedTitle
Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
-
renderWithTooltip
- Mappings:
Namespace Name Mixin selector official b
Letd;b(Lehe;IIF)V
intermediary method_47413
Lnet/minecraft/class_437;method_47413(Lnet/minecraft/class_4587;IIF)V
named renderWithTooltip
Lnet/minecraft/client/gui/screen/Screen;renderWithTooltip(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
render
- Specified by:
render
in interfaceDrawable
- Mappings:
Namespace Name Mixin selector official a
Lepa;a(Lehe;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lepl;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
setInitialFocus
Sets the initial focus of this screen. This should be called inside the overriddeninit()
method by screen implementations.- Mappings:
Namespace Name Mixin selector official c
Letd;c(Lepl;)V
intermediary method_48265
Lnet/minecraft/class_437;method_48265(Lnet/minecraft/class_364;)V
named setInitialFocus
Lnet/minecraft/client/gui/screen/Screen;setInitialFocus(Lnet/minecraft/client/gui/Element;)V
-
blur
private void blur()- Mappings:
Namespace Name Mixin selector official B
Letd;B()V
intermediary method_48267
Lnet/minecraft/class_437;method_48267()V
named blur
Lnet/minecraft/client/gui/screen/Screen;blur()V
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Mappings:
Namespace Name Mixin selector official ax_
Letd;ax_()Z
intermediary method_25422
Lnet/minecraft/class_437;method_25422()Z
named shouldCloseOnEsc
Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
-
close
public void close()- Mappings:
Namespace Name Mixin selector official ay_
Letd;ay_()V
intermediary method_25419
Lnet/minecraft/class_437;method_25419()V
named close
Lnet/minecraft/client/gui/screen/Screen;close()V
-
addDrawableChild
- Mappings:
Namespace Name Mixin selector official d
Letd;d(Lepl;)Lepl;
intermediary method_37063
Lnet/minecraft/class_437;method_37063(Lnet/minecraft/class_364;)Lnet/minecraft/class_364;
named addDrawableChild
Lnet/minecraft/client/gui/screen/Screen;addDrawableChild(Lnet/minecraft/client/gui/Element;)Lnet/minecraft/client/gui/Element;
-
addDrawable
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Lepa;)Lepa;
intermediary method_37060
Lnet/minecraft/class_437;method_37060(Lnet/minecraft/class_4068;)Lnet/minecraft/class_4068;
named addDrawable
Lnet/minecraft/client/gui/screen/Screen;addDrawable(Lnet/minecraft/client/gui/Drawable;)Lnet/minecraft/client/gui/Drawable;
-
addSelectableChild
- Mappings:
Namespace Name Mixin selector official e
Letd;e(Lepl;)Lepl;
intermediary method_25429
Lnet/minecraft/class_437;method_25429(Lnet/minecraft/class_364;)Lnet/minecraft/class_364;
named addSelectableChild
Lnet/minecraft/client/gui/screen/Screen;addSelectableChild(Lnet/minecraft/client/gui/Element;)Lnet/minecraft/client/gui/Element;
-
remove
- Mappings:
Namespace Name Mixin selector official f
Letd;f(Lepl;)V
intermediary method_37066
Lnet/minecraft/class_437;method_37066(Lnet/minecraft/class_364;)V
named remove
Lnet/minecraft/client/gui/screen/Screen;remove(Lnet/minecraft/client/gui/Element;)V
-
clearChildren
protected void clearChildren()- Mappings:
Namespace Name Mixin selector official o
Letd;o()V
intermediary method_37067
Lnet/minecraft/class_437;method_37067()V
named clearChildren
Lnet/minecraft/client/gui/screen/Screen;clearChildren()V
-
renderTooltip
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Lehe;Lcfv;II)V
intermediary method_25409
Lnet/minecraft/class_437;method_25409(Lnet/minecraft/class_4587;Lnet/minecraft/class_1799;II)V
named renderTooltip
Lnet/minecraft/client/gui/screen/Screen;renderTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/item/ItemStack;II)V
-
renderTooltip
public void renderTooltip(MatrixStack matrices, List<Text> lines, Optional<TooltipData> data, int x, int y) - Mappings:
Namespace Name Mixin selector official a
Letd;a(Lehe;Ljava/util/List;Ljava/util/Optional;II)V
intermediary method_32634
Lnet/minecraft/class_437;method_32634(Lnet/minecraft/class_4587;Ljava/util/List;Ljava/util/Optional;II)V
named renderTooltip
Lnet/minecraft/client/gui/screen/Screen;renderTooltip(Lnet/minecraft/client/util/math/MatrixStack;Ljava/util/List;Ljava/util/Optional;II)V
-
getTooltipFromItem
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Lcfv;)Ljava/util/List;
intermediary method_25408
Lnet/minecraft/class_437;method_25408(Lnet/minecraft/class_1799;)Ljava/util/List;
named getTooltipFromItem
Lnet/minecraft/client/gui/screen/Screen;getTooltipFromItem(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
-
renderTooltip
- Mappings:
Namespace Name Mixin selector official b
Letd;b(Lehe;Ltj;II)V
intermediary method_25424
Lnet/minecraft/class_437;method_25424(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;II)V
named renderTooltip
Lnet/minecraft/client/gui/screen/Screen;renderTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;II)V
-
renderTooltip
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Lehe;Ljava/util/List;II)V
intermediary method_30901
Lnet/minecraft/class_437;method_30901(Lnet/minecraft/class_4587;Ljava/util/List;II)V
named renderTooltip
Lnet/minecraft/client/gui/screen/Screen;renderTooltip(Lnet/minecraft/client/util/math/MatrixStack;Ljava/util/List;II)V
-
renderOrderedTooltip
public void renderOrderedTooltip(MatrixStack matrices, List<? extends OrderedText> lines, int x, int y) - Mappings:
Namespace Name Mixin selector official b
Letd;b(Lehe;Ljava/util/List;II)V
intermediary method_25417
Lnet/minecraft/class_437;method_25417(Lnet/minecraft/class_4587;Ljava/util/List;II)V
named renderOrderedTooltip
Lnet/minecraft/client/gui/screen/Screen;renderOrderedTooltip(Lnet/minecraft/client/util/math/MatrixStack;Ljava/util/List;II)V
-
renderPositionedTooltip
private void renderPositionedTooltip(MatrixStack matrices, Screen.PositionedTooltip tooltip, int x, int y) - Mappings:
Namespace Name Mixin selector official a
Letd;a(Lehe;Letd$a;II)V
intermediary method_47941
Lnet/minecraft/class_437;method_47941(Lnet/minecraft/class_4587;Lnet/minecraft/class_437$class_7998;II)V
named renderPositionedTooltip
Lnet/minecraft/client/gui/screen/Screen;renderPositionedTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/gui/screen/Screen$PositionedTooltip;II)V
-
renderTooltipFromComponents
private void renderTooltipFromComponents(MatrixStack matrices, List<TooltipComponent> components, int x, int y, TooltipPositioner positioner) - Mappings:
Namespace Name Mixin selector official a
Letd;a(Lehe;Ljava/util/List;IILevv;)V
intermediary method_32633
Lnet/minecraft/class_437;method_32633(Lnet/minecraft/class_4587;Ljava/util/List;IILnet/minecraft/class_8000;)V
named renderTooltipFromComponents
Lnet/minecraft/client/gui/screen/Screen;renderTooltipFromComponents(Lnet/minecraft/client/util/math/MatrixStack;Ljava/util/List;IILnet/minecraft/client/gui/tooltip/TooltipPositioner;)V
-
renderTextHoverEffect
protected void renderTextHoverEffect(MatrixStack matrices, @Nullable @Nullable Style style, int x, int y) - Mappings:
Namespace Name Mixin selector official a
Letd;a(Lehe;Luf;II)V
intermediary method_25418
Lnet/minecraft/class_437;method_25418(Lnet/minecraft/class_4587;Lnet/minecraft/class_2583;II)V
named renderTextHoverEffect
Lnet/minecraft/client/gui/screen/Screen;renderTextHoverEffect(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Style;II)V
-
insertText
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Ljava/lang/String;Z)V
intermediary method_25415
Lnet/minecraft/class_437;method_25415(Ljava/lang/String;Z)V
named insertText
Lnet/minecraft/client/gui/screen/Screen;insertText(Ljava/lang/String;Z)V
-
handleTextClick
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Luf;)Z
intermediary method_25430
Lnet/minecraft/class_437;method_25430(Lnet/minecraft/class_2583;)Z
named handleTextClick
Lnet/minecraft/client/gui/screen/Screen;handleTextClick(Lnet/minecraft/text/Style;)Z
-
init
- Mappings:
Namespace Name Mixin selector official b
Letd;b(Lemh;II)V
intermediary method_25423
Lnet/minecraft/class_437;method_25423(Lnet/minecraft/class_310;II)V
named init
Lnet/minecraft/client/gui/screen/Screen;init(Lnet/minecraft/client/MinecraftClient;II)V
-
clearAndInit
protected void clearAndInit()- Mappings:
Namespace Name Mixin selector official p
Letd;p()V
intermediary method_41843
Lnet/minecraft/class_437;method_41843()V
named clearAndInit
Lnet/minecraft/client/gui/screen/Screen;clearAndInit()V
-
children
Gets a list of all child GUI elements.- Specified by:
children
in interfaceParentElement
- Mappings:
Namespace Name Mixin selector official i
Lepk;i()Ljava/util/List;
intermediary method_25396
Lnet/minecraft/class_4069;method_25396()Ljava/util/List;
named children
Lnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
This should call
setInitialFocus(net.minecraft.client.gui.Element)
to set the element that is initially focused.- Mappings:
Namespace Name Mixin selector official b
Letd;b()V
intermediary method_25426
Lnet/minecraft/class_437;method_25426()V
named init
Lnet/minecraft/client/gui/screen/Screen;init()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official f
Letd;f()V
intermediary method_25393
Lnet/minecraft/class_437;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/Screen;tick()V
-
removed
public void removed()- Mappings:
Namespace Name Mixin selector official az_
Letd;az_()V
intermediary method_25432
Lnet/minecraft/class_437;method_25432()V
named removed
Lnet/minecraft/client/gui/screen/Screen;removed()V
-
onDisplayed
public void onDisplayed()Called when the screen is displayed usingMinecraftClient.setScreen(net.minecraft.client.gui.screen.Screen)
beforeinit()
orinitTabNavigation()
is called.- Mappings:
Namespace Name Mixin selector official aA_
Letd;aA_()V
intermediary method_49589
Lnet/minecraft/class_437;method_49589()V
named onDisplayed
Lnet/minecraft/client/gui/screen/Screen;onDisplayed()V
-
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Lehe;)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_4587;)V
named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/util/math/MatrixStack;)V
-
renderBackgroundTexture
Renders the fullscreen background texture of this screen.- Mappings:
Namespace Name Mixin selector official b
Letd;b(Lehe;)V
intermediary method_25434
Lnet/minecraft/class_437;method_25434(Lnet/minecraft/class_4587;)V
named renderBackgroundTexture
Lnet/minecraft/client/gui/screen/Screen;renderBackgroundTexture(Lnet/minecraft/client/util/math/MatrixStack;)V
-
shouldPause
public boolean shouldPause()- Mappings:
Namespace Name Mixin selector official aB_
Letd;aB_()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-
confirmLink
private void confirmLink(boolean open) - Mappings:
Namespace Name Mixin selector official c
Letd;c(Z)V
intermediary method_25428
Lnet/minecraft/class_437;method_25428(Z)V
named confirmLink
Lnet/minecraft/client/gui/screen/Screen;confirmLink(Z)V
-
openLink
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Ljava/net/URI;)V
intermediary method_25416
Lnet/minecraft/class_437;method_25416(Ljava/net/URI;)V
named openLink
Lnet/minecraft/client/gui/screen/Screen;openLink(Ljava/net/URI;)V
-
hasControlDown
public static boolean hasControlDown()- Mappings:
Namespace Name Mixin selector official q
Letd;q()Z
intermediary method_25441
Lnet/minecraft/class_437;method_25441()Z
named hasControlDown
Lnet/minecraft/client/gui/screen/Screen;hasControlDown()Z
-
hasShiftDown
public static boolean hasShiftDown()- Mappings:
Namespace Name Mixin selector official s
Letd;s()Z
intermediary method_25442
Lnet/minecraft/class_437;method_25442()Z
named hasShiftDown
Lnet/minecraft/client/gui/screen/Screen;hasShiftDown()Z
-
hasAltDown
public static boolean hasAltDown()- Mappings:
Namespace Name Mixin selector official t
Letd;t()Z
intermediary method_25443
Lnet/minecraft/class_437;method_25443()Z
named hasAltDown
Lnet/minecraft/client/gui/screen/Screen;hasAltDown()Z
-
isCut
public static boolean isCut(int code) - Mappings:
Namespace Name Mixin selector official d
Letd;d(I)Z
intermediary method_25436
Lnet/minecraft/class_437;method_25436(I)Z
named isCut
Lnet/minecraft/client/gui/screen/Screen;isCut(I)Z
-
isPaste
public static boolean isPaste(int code) - Mappings:
Namespace Name Mixin selector official e
Letd;e(I)Z
intermediary method_25437
Lnet/minecraft/class_437;method_25437(I)Z
named isPaste
Lnet/minecraft/client/gui/screen/Screen;isPaste(I)Z
-
isCopy
public static boolean isCopy(int code) - Mappings:
Namespace Name Mixin selector official f
Letd;f(I)Z
intermediary method_25438
Lnet/minecraft/class_437;method_25438(I)Z
named isCopy
Lnet/minecraft/client/gui/screen/Screen;isCopy(I)Z
-
isSelectAll
public static boolean isSelectAll(int code) - Mappings:
Namespace Name Mixin selector official g
Letd;g(I)Z
intermediary method_25439
Lnet/minecraft/class_437;method_25439(I)Z
named isSelectAll
Lnet/minecraft/client/gui/screen/Screen;isSelectAll(I)Z
-
resize
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Lemh;II)V
intermediary method_25410
Lnet/minecraft/class_437;method_25410(Lnet/minecraft/class_310;II)V
named resize
Lnet/minecraft/client/gui/screen/Screen;resize(Lnet/minecraft/client/MinecraftClient;II)V
-
wrapScreenError
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Ljava/lang/Runnable;Ljava/lang/String;Ljava/lang/String;)V
intermediary method_25412
Lnet/minecraft/class_437;method_25412(Ljava/lang/Runnable;Ljava/lang/String;Ljava/lang/String;)V
named wrapScreenError
Lnet/minecraft/client/gui/screen/Screen;wrapScreenError(Ljava/lang/Runnable;Ljava/lang/String;Ljava/lang/String;)V
-
isValidCharacterForName
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Ljava/lang/String;CI)Z
intermediary method_25414
Lnet/minecraft/class_437;method_25414(Ljava/lang/String;CI)Z
named isValidCharacterForName
Lnet/minecraft/client/gui/screen/Screen;isValidCharacterForName(Ljava/lang/String;CI)Z
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOver
in interfaceElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouse- Returns:
true
if the mouse is within the bound of the element, otherwisefalse
- Mappings:
Namespace Name Mixin selector official a_
Lepl;a_(DD)Z
intermediary method_25405
Lnet/minecraft/class_364;method_25405(DD)Z
named isMouseOver
Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
filesDragged
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Ljava/util/List;)V
intermediary method_29638
Lnet/minecraft/class_437;method_29638(Ljava/util/List;)V
named filesDragged
Lnet/minecraft/client/gui/screen/Screen;filesDragged(Ljava/util/List;)V
-
setScreenNarrationDelay
private void setScreenNarrationDelay(long delayMs, boolean restartElementNarration) - Mappings:
Namespace Name Mixin selector official a
Letd;a(JZ)V
intermediary method_37059
Lnet/minecraft/class_437;method_37059(JZ)V
named setScreenNarrationDelay
Lnet/minecraft/client/gui/screen/Screen;setScreenNarrationDelay(JZ)V
-
setElementNarrationDelay
private void setElementNarrationDelay(long delayMs) - Mappings:
Namespace Name Mixin selector official a
Letd;a(J)V
intermediary method_37058
Lnet/minecraft/class_437;method_37058(J)V
named setElementNarrationDelay
Lnet/minecraft/client/gui/screen/Screen;setElementNarrationDelay(J)V
-
applyMouseMoveNarratorDelay
public void applyMouseMoveNarratorDelay()- Mappings:
Namespace Name Mixin selector official w
Letd;w()V
intermediary method_37068
Lnet/minecraft/class_437;method_37068()V
named applyMouseMoveNarratorDelay
Lnet/minecraft/client/gui/screen/Screen;applyMouseMoveNarratorDelay()V
-
applyMousePressScrollNarratorDelay
public void applyMousePressScrollNarratorDelay()- Mappings:
Namespace Name Mixin selector official x
Letd;x()V
intermediary method_37069
Lnet/minecraft/class_437;method_37069()V
named applyMousePressScrollNarratorDelay
Lnet/minecraft/client/gui/screen/Screen;applyMousePressScrollNarratorDelay()V
-
applyKeyPressNarratorDelay
public void applyKeyPressNarratorDelay()- Mappings:
Namespace Name Mixin selector official y
Letd;y()V
intermediary method_37070
Lnet/minecraft/class_437;method_37070()V
named applyKeyPressNarratorDelay
Lnet/minecraft/client/gui/screen/Screen;applyKeyPressNarratorDelay()V
-
isNarratorActive
private boolean isNarratorActive()- Mappings:
Namespace Name Mixin selector official F
Letd;F()Z
intermediary method_37073
Lnet/minecraft/class_437;method_37073()Z
named isNarratorActive
Lnet/minecraft/client/gui/screen/Screen;isNarratorActive()Z
-
updateNarrator
public void updateNarrator()- Mappings:
Namespace Name Mixin selector official z
Letd;z()V
intermediary method_37071
Lnet/minecraft/class_437;method_37071()V
named updateNarrator
Lnet/minecraft/client/gui/screen/Screen;updateNarrator()V
-
narrateScreenIfNarrationEnabled
public void narrateScreenIfNarrationEnabled(boolean onlyChangedNarrations) If narration is enabled, narrates the elements of this screen.- Parameters:
onlyChangedNarrations
- iftrue
, the text will not include unchanged narrations that have already been narrated previously- Mappings:
Namespace Name Mixin selector official d
Letd;d(Z)V
intermediary method_37064
Lnet/minecraft/class_437;method_37064(Z)V
named narrateScreenIfNarrationEnabled
Lnet/minecraft/client/gui/screen/Screen;narrateScreenIfNarrationEnabled(Z)V
-
narrateScreen
private void narrateScreen(boolean onlyChangedNarrations) - Mappings:
Namespace Name Mixin selector official e
Letd;e(Z)V
intermediary method_37065
Lnet/minecraft/class_437;method_37065(Z)V
named narrateScreen
Lnet/minecraft/client/gui/screen/Screen;narrateScreen(Z)V
-
hasUsageText
protected boolean hasUsageText()- Mappings:
Namespace Name Mixin selector official aJ_
Letd;aJ_()Z
intermediary method_48262
Lnet/minecraft/class_437;method_48262()Z
named hasUsageText
Lnet/minecraft/client/gui/screen/Screen;hasUsageText()Z
-
addScreenNarrations
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Lere;)V
intermediary method_37062
Lnet/minecraft/class_437;method_37062(Lnet/minecraft/class_6382;)V
named addScreenNarrations
Lnet/minecraft/client/gui/screen/Screen;addScreenNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
addElementNarrations
- Mappings:
Namespace Name Mixin selector official b
Letd;b(Lere;)V
intermediary method_37056
Lnet/minecraft/class_437;method_37056(Lnet/minecraft/class_6382;)V
named addElementNarrations
Lnet/minecraft/client/gui/screen/Screen;addElementNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
findSelectedElementData
@Nullable public static @Nullable Screen.SelectedElementNarrationData findSelectedElementData(List<? extends Selectable> selectables, @Nullable @Nullable Selectable selectable) - Mappings:
Namespace Name Mixin selector official a
Letd;a(Ljava/util/List;Lerc;)Letd$b;
intermediary method_37061
Lnet/minecraft/class_437;method_37061(Ljava/util/List;Lnet/minecraft/class_6379;)Lnet/minecraft/class_437$class_6390;
named findSelectedElementData
Lnet/minecraft/client/gui/screen/Screen;findSelectedElementData(Ljava/util/List;Lnet/minecraft/client/gui/Selectable;)Lnet/minecraft/client/gui/screen/Screen$SelectedElementNarrationData;
-
applyNarratorModeChangeDelay
public void applyNarratorModeChangeDelay()- Mappings:
Namespace Name Mixin selector official A
Letd;A()V
intermediary method_37072
Lnet/minecraft/class_437;method_37072()V
named applyNarratorModeChangeDelay
Lnet/minecraft/client/gui/screen/Screen;applyNarratorModeChangeDelay()V
-
setTooltip
- Mappings:
Namespace Name Mixin selector official b
Letd;b(Ljava/util/List;)V
intermediary method_47414
Lnet/minecraft/class_437;method_47414(Ljava/util/List;)V
named setTooltip
Lnet/minecraft/client/gui/screen/Screen;setTooltip(Ljava/util/List;)V
-
setTooltip
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Ljava/util/List;Levv;Z)V
intermediary method_47942
Lnet/minecraft/class_437;method_47942(Ljava/util/List;Lnet/minecraft/class_8000;Z)V
named setTooltip
Lnet/minecraft/client/gui/screen/Screen;setTooltip(Ljava/util/List;Lnet/minecraft/client/gui/tooltip/TooltipPositioner;Z)V
-
setTooltip
- Mappings:
Namespace Name Mixin selector official d
Letd;d(Ltj;)V
intermediary method_47415
Lnet/minecraft/class_437;method_47415(Lnet/minecraft/class_2561;)V
named setTooltip
Lnet/minecraft/client/gui/screen/Screen;setTooltip(Lnet/minecraft/text/Text;)V
-
setTooltip
- Mappings:
Namespace Name Mixin selector official a
Letd;a(Leph;Levv;Z)V
intermediary method_47412
Lnet/minecraft/class_437;method_47412(Lnet/minecraft/class_7919;Lnet/minecraft/class_8000;Z)V
named setTooltip
Lnet/minecraft/client/gui/screen/Screen;setTooltip(Lnet/minecraft/client/gui/tooltip/Tooltip;Lnet/minecraft/client/gui/tooltip/TooltipPositioner;Z)V
-
hide
- Mappings:
Namespace Name Mixin selector official a
Letd;a([Lenz;)V
intermediary method_40041
Lnet/minecraft/class_437;method_40041([Lnet/minecraft/class_339;)V
named hide
Lnet/minecraft/client/gui/screen/Screen;hide([Lnet/minecraft/client/gui/widget/ClickableWidget;)V
-