Package net.minecraft.client.gui.screen
Class Screen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Direct Known Subclasses:
AbstractCommandBlockScreen
,AbstractSignEditScreen
,AbuseReportReasonScreen
,AbuseReportTypeScreen
,AccessibilityOnboardingScreen
,AddServerScreen
,AdvancementsScreen
,BackupPromptScreen
,BookEditScreen
,BookScreen
,ChatScreen
,ChatSelectionScreen
,ConfirmScreen
,ConnectScreen
,CreateWorldScreen
,CreditsAndAttributionScreen
,CreditsScreen
,CustomizeBuffetLevelScreen
,CustomizeFlatLevelScreen
,DataPackFailureScreen
,DeathScreen
,DemoScreen
,DialogScreen
,DirectConnectScreen
,DisconnectedScreen
,DownloadingTerrainScreen
,EditGameRulesScreen
,EditWorldScreen
,ExperimentalWarningScreen
,ExperimentalWarningScreen.DetailsScreen
,ExperimentsScreen
,FatalErrorScreen
,GameMenuScreen
,GameMenuScreen.FeedbackScreen
,GameModeSelectionScreen
,GameOptionsScreen
,HandledScreen
,JigsawBlockScreen
,LevelLoadingScreen
,MessageScreen
,MultiplayerScreen
,NoticeScreen
,OpenToLanScreen
,OptimizeWorldScreen
,OptionsScreen
,OutOfMemoryScreen
,PackScreen
,PopupScreen
,PresetsScreen
,ProgressScreen
,RealmsScreen
,ReconfiguringScreen
,RecoverWorldScreen
,ReportScreen
,SelectWorldScreen
,ServerLinksScreen
,SocialInteractionsScreen
,StatsScreen
,StructureBlockScreen
,SymlinkWarningScreen
,TaskScreen
,TelemetryInfoScreen
,TitleScreen
,WarningScreen
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/Screen
intermediary net/minecraft/class_437
official ftx
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected @Nullable MinecraftClient
private long
protected final Executor
static final Identifier
static final Identifier
int
static final Identifier
static final Identifier
private static final Identifier
private static final long
private static final Logger
static final Identifier
private static final long
private static final long
private final ScreenNarrator
private static final long
protected @Nullable CyclingButtonWidget
<NarratorMode> protected static final CubeMapRenderer
protected static final RotatingCubeMapRenderer
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 interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCrashReportSection
(CrashReport report) protected <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) protected void
void
void
void
void
blur()
children()
Gets a list of all child GUI elements.protected void
protected void
protected void
void
close()
void
filesDragged
(List<Path> paths) findSelectedElementData
(List<? extends Selectable> selectables, @Nullable Selectable selectable) private GuiNavigation.Arrow
getArrowNavigation
(NavigationDirection direction) getMusic()
private GuiNavigation.Tab
getTitle()
getTooltipFromItem
(MinecraftClient client, ItemStack stack) protected Text
boolean
handleTextClick
(@Nullable Style style) static boolean
static boolean
static boolean
protected boolean
protected void
init()
Called when a screen should be initialized.final void
init
(MinecraftClient client, int width, int height) 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()
orinvalid reference
#initTabNavigation()
void
refreshNarrator
(boolean previouslyDisabled) protected void
protected void
void
removed()
void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.static void
renderBackgroundTexture
(DrawContext context, Identifier texture, int x, int y, float u, float v, int width, int height) protected void
renderDarkening
(DrawContext context) protected void
renderDarkening
(DrawContext context, int x, int y, int width, int height) void
renderInGameBackground
(DrawContext context) Renders the translucent background gradient used as the in-game screen background.protected void
renderPanoramaBackground
(DrawContext context, float delta) final void
renderWithTooltip
(DrawContext context, int mouseX, int mouseY, float delta) void
resize
(MinecraftClient client, int width, int height) private void
setElementNarrationDelay
(long delayMs) protected void
This should be overridden with a call tosetInitialFocus(Element)
to set the element that is initially focused.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) void
setTooltip
(Text tooltip) boolean
Checks whether this screen should be closed when the escape key is pressed.boolean
boolean
protected void
switchFocus
(GuiNavigationPath path) Switches focus from the currently focused element, if any, topath
.void
tick()
void
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
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gui/screen/Screen;LOGGER:Lorg/slf4j/Logger;
intermediary field_22782
Lnet/minecraft/class_437;field_22782:Lorg/slf4j/Logger;
official a
Lftx;a:Lorg/slf4j/Logger;
-
SCREEN_USAGE_TEXT
- Mappings:
Namespace Name Mixin selector named SCREEN_USAGE_TEXT
Lnet/minecraft/client/gui/screen/Screen;SCREEN_USAGE_TEXT:Lnet/minecraft/text/Text;
intermediary field_33814
Lnet/minecraft/class_437;field_33814:Lnet/minecraft/class_2561;
official b
Lftx;b:Lxv;
-
PANORAMA_RENDERER
- Mappings:
Namespace Name Mixin selector named PANORAMA_RENDERER
Lnet/minecraft/client/gui/screen/Screen;PANORAMA_RENDERER:Lnet/minecraft/client/gui/CubeMapRenderer;
intermediary field_49508
Lnet/minecraft/class_437;field_49508:Lnet/minecraft/class_751;
official e
Lftx;e:Lgkv;
-
ROTATING_PANORAMA_RENDERER
- Mappings:
Namespace Name Mixin selector named ROTATING_PANORAMA_RENDERER
Lnet/minecraft/client/gui/screen/Screen;ROTATING_PANORAMA_RENDERER:Lnet/minecraft/client/gui/RotatingCubeMapRenderer;
intermediary field_49509
Lnet/minecraft/class_437;field_49509:Lnet/minecraft/class_766;
official f
Lftx;f:Lgln;
-
MENU_BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector named MENU_BACKGROUND_TEXTURE
Lnet/minecraft/client/gui/screen/Screen;MENU_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_49511
Lnet/minecraft/class_437;field_49511:Lnet/minecraft/class_2960;
official g
Lftx;g:Lalz;
-
HEADER_SEPARATOR_TEXTURE
- Mappings:
Namespace Name Mixin selector named HEADER_SEPARATOR_TEXTURE
Lnet/minecraft/client/gui/screen/Screen;HEADER_SEPARATOR_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_49895
Lnet/minecraft/class_437;field_49895:Lnet/minecraft/class_2960;
official h
Lftx;h:Lalz;
-
FOOTER_SEPARATOR_TEXTURE
- Mappings:
Namespace Name Mixin selector named FOOTER_SEPARATOR_TEXTURE
Lnet/minecraft/client/gui/screen/Screen;FOOTER_SEPARATOR_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_49896
Lnet/minecraft/class_437;field_49896:Lnet/minecraft/class_2960;
official i
Lftx;i:Lalz;
-
INWORLD_MENU_BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector named INWORLD_MENU_BACKGROUND_TEXTURE
Lnet/minecraft/client/gui/screen/Screen;INWORLD_MENU_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_49894
Lnet/minecraft/class_437;field_49894:Lnet/minecraft/class_2960;
official c
Lftx;c:Lalz;
-
INWORLD_HEADER_SEPARATOR_TEXTURE
- Mappings:
Namespace Name Mixin selector named INWORLD_HEADER_SEPARATOR_TEXTURE
Lnet/minecraft/client/gui/screen/Screen;INWORLD_HEADER_SEPARATOR_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_49897
Lnet/minecraft/class_437;field_49897:Lnet/minecraft/class_2960;
official j
Lftx;j:Lalz;
-
INWORLD_FOOTER_SEPARATOR_TEXTURE
- Mappings:
Namespace Name Mixin selector named INWORLD_FOOTER_SEPARATOR_TEXTURE
Lnet/minecraft/client/gui/screen/Screen;INWORLD_FOOTER_SEPARATOR_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_49898
Lnet/minecraft/class_437;field_49898:Lnet/minecraft/class_2960;
official k
Lftx;k:Lalz;
-
SCREEN_INIT_NARRATION_DELAY
private static final long SCREEN_INIT_NARRATION_DELAY- Mappings:
Namespace Name Mixin selector named SCREEN_INIT_NARRATION_DELAY
Lnet/minecraft/client/gui/screen/Screen;SCREEN_INIT_NARRATION_DELAY:J
intermediary field_33817
Lnet/minecraft/class_437;field_33817:J
official w
Lftx;w:J
-
NARRATOR_MODE_CHANGE_DELAY
private static final long NARRATOR_MODE_CHANGE_DELAY- Mappings:
Namespace Name Mixin selector named NARRATOR_MODE_CHANGE_DELAY
Lnet/minecraft/client/gui/screen/Screen;NARRATOR_MODE_CHANGE_DELAY:J
intermediary field_33818
Lnet/minecraft/class_437;field_33818:J
official x
Lftx;x:J
-
MOUSE_MOVE_NARRATION_DELAY
private static final long MOUSE_MOVE_NARRATION_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector named MOUSE_MOVE_NARRATION_DELAY
Lnet/minecraft/client/gui/screen/Screen;MOUSE_MOVE_NARRATION_DELAY:J
intermediary field_33819
Lnet/minecraft/class_437;field_33819:J
official y
Lftx;y:J
-
MOUSE_PRESS_SCROLL_NARRATION_DELAY
private static final long MOUSE_PRESS_SCROLL_NARRATION_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector named MOUSE_PRESS_SCROLL_NARRATION_DELAY
Lnet/minecraft/client/gui/screen/Screen;MOUSE_PRESS_SCROLL_NARRATION_DELAY:J
intermediary field_33820
Lnet/minecraft/class_437;field_33820:J
official z
Lftx;z:J
-
KEY_PRESS_NARRATION_DELAY
private static final long KEY_PRESS_NARRATION_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector named KEY_PRESS_NARRATION_DELAY
Lnet/minecraft/client/gui/screen/Screen;KEY_PRESS_NARRATION_DELAY:J
intermediary field_33821
Lnet/minecraft/class_437;field_33821:J
official A
Lftx;A:J
-
title
- Mappings:
Namespace Name Mixin selector named title
Lnet/minecraft/client/gui/screen/Screen;title:Lnet/minecraft/text/Text;
intermediary field_22785
Lnet/minecraft/class_437;field_22785:Lnet/minecraft/class_2561;
official l
Lftx;l:Lxv;
-
children
- Mappings:
Namespace Name Mixin selector named children
Lnet/minecraft/client/gui/screen/Screen;children:Ljava/util/List;
intermediary field_22786
Lnet/minecraft/class_437;field_22786:Ljava/util/List;
official d
Lftx;d:Ljava/util/List;
-
selectables
- Mappings:
Namespace Name Mixin selector named selectables
Lnet/minecraft/client/gui/screen/Screen;selectables:Ljava/util/List;
intermediary field_33815
Lnet/minecraft/class_437;field_33815:Ljava/util/List;
official s
Lftx;s:Ljava/util/List;
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/gui/screen/Screen;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_22787
Lnet/minecraft/class_437;field_22787:Lnet/minecraft/class_310;
official m
Lftx;m:Lfmf;
-
screenInitialized
private boolean screenInitialized- Mappings:
Namespace Name Mixin selector named screenInitialized
Lnet/minecraft/client/gui/screen/Screen;screenInitialized:Z
intermediary field_42156
Lnet/minecraft/class_437;field_42156:Z
official u
Lftx;u:Z
-
width
public int width- Mappings:
Namespace Name Mixin selector named width
Lnet/minecraft/client/gui/screen/Screen;width:I
intermediary field_22789
Lnet/minecraft/class_437;field_22789:I
official n
Lftx;n:I
-
height
public int height- Mappings:
Namespace Name Mixin selector named height
Lnet/minecraft/client/gui/screen/Screen;height:I
intermediary field_22790
Lnet/minecraft/class_437;field_22790:I
official o
Lftx;o:I
-
drawables
- Mappings:
Namespace Name Mixin selector named drawables
Lnet/minecraft/client/gui/screen/Screen;drawables:Ljava/util/List;
intermediary field_33816
Lnet/minecraft/class_437;field_33816:Ljava/util/List;
official v
Lftx;v:Ljava/util/List;
-
textRenderer
- Mappings:
Namespace Name Mixin selector named textRenderer
Lnet/minecraft/client/gui/screen/Screen;textRenderer:Lnet/minecraft/client/font/TextRenderer;
intermediary field_22793
Lnet/minecraft/class_437;field_22793:Lnet/minecraft/class_327;
official p
Lftx;p:Lfnp;
-
narrator
- Mappings:
Namespace Name Mixin selector named narrator
Lnet/minecraft/client/gui/screen/Screen;narrator:Lnet/minecraft/client/gui/screen/narration/ScreenNarrator;
intermediary field_33822
Lnet/minecraft/class_437;field_33822:Lnet/minecraft/class_6385;
official B
Lftx;B:Lfsf;
-
elementNarrationStartTime
private long elementNarrationStartTime- Mappings:
Namespace Name Mixin selector named elementNarrationStartTime
Lnet/minecraft/client/gui/screen/Screen;elementNarrationStartTime:J
intermediary field_33823
Lnet/minecraft/class_437;field_33823:J
official C
Lftx;C:J
-
screenNarrationStartTime
private long screenNarrationStartTime- Mappings:
Namespace Name Mixin selector named screenNarrationStartTime
Lnet/minecraft/client/gui/screen/Screen;screenNarrationStartTime:J
intermediary field_33824
Lnet/minecraft/class_437;field_33824:J
official D
Lftx;D:J
-
narratorToggleButton
- Mappings:
Namespace Name Mixin selector named narratorToggleButton
Lnet/minecraft/client/gui/screen/Screen;narratorToggleButton:Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
intermediary field_52252
Lnet/minecraft/class_437;field_52252:Lnet/minecraft/class_5676;
official q
Lftx;q:Lfol;
-
selected
- Mappings:
Namespace Name Mixin selector named selected
Lnet/minecraft/client/gui/screen/Screen;selected:Lnet/minecraft/client/gui/Selectable;
intermediary field_33813
Lnet/minecraft/class_437;field_33813:Lnet/minecraft/class_6379;
official E
Lftx;E:Lfsa;
-
tooltip
- Mappings:
Namespace Name Mixin selector named tooltip
Lnet/minecraft/client/gui/screen/Screen;tooltip:Lnet/minecraft/client/gui/screen/Screen$PositionedTooltip;
intermediary field_41685
Lnet/minecraft/class_437;field_41685:Lnet/minecraft/class_437$class_7998;
official F
Lftx;F:Lftx$a;
-
executor
- Mappings:
Namespace Name Mixin selector named executor
Lnet/minecraft/client/gui/screen/Screen;executor:Ljava/util/concurrent/Executor;
intermediary field_44944
Lnet/minecraft/class_437;field_44944:Ljava/util/concurrent/Executor;
official r
Lftx;r:Ljava/util/concurrent/Executor;
-
-
Constructor Details
-
Screen
- 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
-
getTitle
- Mappings:
Namespace Name Mixin selector named getTitle
Lnet/minecraft/client/gui/screen/Screen;getTitle()Lnet/minecraft/text/Text;
intermediary method_25440
Lnet/minecraft/class_437;method_25440()Lnet/minecraft/class_2561;
official m
Lftx;m()Lxv;
-
getNarratedTitle
- Mappings:
Namespace Name Mixin selector named getNarratedTitle
Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
intermediary method_25435
Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
official i
Lftx;i()Lxv;
-
renderWithTooltip
- Mappings:
Namespace Name Mixin selector named renderWithTooltip
Lnet/minecraft/client/gui/screen/Screen;renderWithTooltip(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_47413
Lnet/minecraft/class_437;method_47413(Lnet/minecraft/class_332;IIF)V
official c
Lftx;c(Lfnr;IIF)V
-
render
- Specified by:
render
in interfaceDrawable
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfpi;a(Lfnr;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 named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfqc;a(III)Z
-
setInitialFocus
protected void setInitialFocus()This should be overridden with a call tosetInitialFocus(Element)
to set the element that is initially focused.- Mappings:
Namespace Name Mixin selector named setInitialFocus
Lnet/minecraft/client/gui/screen/Screen;setInitialFocus()V
intermediary method_56131
Lnet/minecraft/class_437;method_56131()V
official aG_
Lftx;aG_()V
-
setInitialFocus
Sets the initial focus of this screen. This should be called inside the overriddensetInitialFocus()
method by screen implementations.- Mappings:
Namespace Name Mixin selector named setInitialFocus
Lnet/minecraft/client/gui/screen/Screen;setInitialFocus(Lnet/minecraft/client/gui/Element;)V
intermediary method_48265
Lnet/minecraft/class_437;method_48265(Lnet/minecraft/class_364;)V
official b
Lftx;b(Lfqc;)V
-
blur
public void blur()- Mappings:
Namespace Name Mixin selector named blur
Lnet/minecraft/client/gui/screen/Screen;blur()V
intermediary method_48267
Lnet/minecraft/class_437;method_48267()V
official n
Lftx;n()V
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- 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
-
close
public void close()- Mappings:
Namespace Name Mixin selector named close
Lnet/minecraft/client/gui/screen/Screen;close()V
intermediary method_25419
Lnet/minecraft/class_437;method_25419()V
official aP_
Lftx;aP_()V
-
addDrawableChild
- Mappings:
Namespace Name Mixin selector named addDrawableChild
Lnet/minecraft/client/gui/screen/Screen;addDrawableChild(Lnet/minecraft/client/gui/Element;)Lnet/minecraft/client/gui/Element;
intermediary method_37063
Lnet/minecraft/class_437;method_37063(Lnet/minecraft/class_364;)Lnet/minecraft/class_364;
official c
Lftx;c(Lfqc;)Lfqc;
-
addDrawable
- Mappings:
Namespace Name Mixin selector named addDrawable
Lnet/minecraft/client/gui/screen/Screen;addDrawable(Lnet/minecraft/client/gui/Drawable;)Lnet/minecraft/client/gui/Drawable;
intermediary method_37060
Lnet/minecraft/class_437;method_37060(Lnet/minecraft/class_4068;)Lnet/minecraft/class_4068;
official a
Lftx;a(Lfpi;)Lfpi;
-
addSelectableChild
- Mappings:
Namespace Name Mixin selector named addSelectableChild
Lnet/minecraft/client/gui/screen/Screen;addSelectableChild(Lnet/minecraft/client/gui/Element;)Lnet/minecraft/client/gui/Element;
intermediary method_25429
Lnet/minecraft/class_437;method_25429(Lnet/minecraft/class_364;)Lnet/minecraft/class_364;
official d
Lftx;d(Lfqc;)Lfqc;
-
remove
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/client/gui/screen/Screen;remove(Lnet/minecraft/client/gui/Element;)V
intermediary method_37066
Lnet/minecraft/class_437;method_37066(Lnet/minecraft/class_364;)V
official e
Lftx;e(Lfqc;)V
-
clearChildren
protected void clearChildren()- Mappings:
Namespace Name Mixin selector named clearChildren
Lnet/minecraft/client/gui/screen/Screen;clearChildren()V
intermediary method_37067
Lnet/minecraft/class_437;method_37067()V
official o
Lftx;o()V
-
getTooltipFromItem
- Mappings:
Namespace Name Mixin selector named getTooltipFromItem
Lnet/minecraft/client/gui/screen/Screen;getTooltipFromItem(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/item/ItemStack;)Ljava/util/List;
intermediary method_25408
Lnet/minecraft/class_437;method_25408(Lnet/minecraft/class_310;Lnet/minecraft/class_1799;)Ljava/util/List;
official a
Lftx;a(Lfmf;Lcxo;)Ljava/util/List;
-
insertText
- Mappings:
Namespace Name Mixin selector named insertText
Lnet/minecraft/client/gui/screen/Screen;insertText(Ljava/lang/String;Z)V
intermediary method_25415
Lnet/minecraft/class_437;method_25415(Ljava/lang/String;Z)V
official a_
Lftx;a_(Ljava/lang/String;Z)V
-
handleTextClick
- Mappings:
Namespace Name Mixin selector named handleTextClick
Lnet/minecraft/client/gui/screen/Screen;handleTextClick(Lnet/minecraft/text/Style;)Z
intermediary method_25430
Lnet/minecraft/class_437;method_25430(Lnet/minecraft/class_2583;)Z
official a
Lftx;a(Lys;)Z
-
init
- Mappings:
Namespace Name Mixin selector named init
Lnet/minecraft/client/gui/screen/Screen;init(Lnet/minecraft/client/MinecraftClient;II)V
intermediary method_25423
Lnet/minecraft/class_437;method_25423(Lnet/minecraft/class_310;II)V
official b
Lftx;b(Lfmf;II)V
-
clearAndInit
protected void clearAndInit()- Mappings:
Namespace Name Mixin selector named clearAndInit
Lnet/minecraft/client/gui/screen/Screen;clearAndInit()V
intermediary method_41843
Lnet/minecraft/class_437;method_41843()V
official p
Lftx;p()V
-
children
Gets a list of all child GUI elements.- Specified by:
children
in interfaceParentElement
- Mappings:
Namespace Name Mixin selector named children
Lnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
intermediary method_25396
Lnet/minecraft/class_4069;method_25396()Ljava/util/List;
official aI_
Lfqb;aI_()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.
- Mappings:
Namespace Name Mixin selector named init
Lnet/minecraft/client/gui/screen/Screen;init()V
intermediary method_25426
Lnet/minecraft/class_437;method_25426()V
official aT_
Lftx;aT_()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/client/gui/screen/Screen;tick()V
intermediary method_25393
Lnet/minecraft/class_437;method_25393()V
official e
Lftx;e()V
-
removed
public void removed()- Mappings:
Namespace Name Mixin selector named removed
Lnet/minecraft/client/gui/screen/Screen;removed()V
intermediary method_25432
Lnet/minecraft/class_437;method_25432()V
official aJ_
Lftx;aJ_()V
-
onDisplayed
public void onDisplayed()Called when the screen is displayed usingMinecraftClient.setScreen(net.minecraft.client.gui.screen.Screen)
beforeinit()
orinvalid reference
#initTabNavigation()
- Mappings:
Namespace Name Mixin selector named onDisplayed
Lnet/minecraft/client/gui/screen/Screen;onDisplayed()V
intermediary method_49589
Lnet/minecraft/class_437;method_49589()V
official aK_
Lftx;aK_()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 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
-
applyBlur
protected void applyBlur()- Mappings:
Namespace Name Mixin selector named applyBlur
Lnet/minecraft/client/gui/screen/Screen;applyBlur()V
intermediary method_57734
Lnet/minecraft/class_437;method_57734()V
official q
Lftx;q()V
-
renderPanoramaBackground
- Mappings:
Namespace Name Mixin selector named renderPanoramaBackground
Lnet/minecraft/client/gui/screen/Screen;renderPanoramaBackground(Lnet/minecraft/client/gui/DrawContext;F)V
intermediary method_57728
Lnet/minecraft/class_437;method_57728(Lnet/minecraft/class_332;F)V
official a
Lftx;a(Lfnr;F)V
-
renderDarkening
- Mappings:
Namespace Name Mixin selector named renderDarkening
Lnet/minecraft/client/gui/screen/Screen;renderDarkening(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_57735
Lnet/minecraft/class_437;method_57735(Lnet/minecraft/class_332;)V
official a
Lftx;a(Lfnr;)V
-
renderDarkening
- Mappings:
Namespace Name Mixin selector named renderDarkening
Lnet/minecraft/client/gui/screen/Screen;renderDarkening(Lnet/minecraft/client/gui/DrawContext;IIII)V
intermediary method_57736
Lnet/minecraft/class_437;method_57736(Lnet/minecraft/class_332;IIII)V
official a
Lftx;a(Lfnr;IIII)V
-
renderBackgroundTexture
public static void renderBackgroundTexture(DrawContext context, Identifier texture, int x, int y, float u, float v, int width, int height) - Mappings:
Namespace Name Mixin selector named renderBackgroundTexture
Lnet/minecraft/client/gui/screen/Screen;renderBackgroundTexture(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/util/Identifier;IIFFII)V
intermediary method_57737
Lnet/minecraft/class_437;method_57737(Lnet/minecraft/class_332;Lnet/minecraft/class_2960;IIFFII)V
official a
Lftx;a(Lfnr;Lalz;IIFFII)V
-
renderInGameBackground
Renders the translucent background gradient used as the in-game screen background.- Mappings:
Namespace Name Mixin selector named renderInGameBackground
Lnet/minecraft/client/gui/screen/Screen;renderInGameBackground(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_52752
Lnet/minecraft/class_437;method_52752(Lnet/minecraft/class_332;)V
official b
Lftx;b(Lfnr;)V
-
shouldPause
public boolean shouldPause()- Mappings:
Namespace Name Mixin selector named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
official j
Lftx;j()Z
-
hasControlDown
public static boolean hasControlDown()- Mappings:
Namespace Name Mixin selector named hasControlDown
Lnet/minecraft/client/gui/screen/Screen;hasControlDown()Z
intermediary method_25441
Lnet/minecraft/class_437;method_25441()Z
official r
Lftx;r()Z
-
hasShiftDown
public static boolean hasShiftDown()- Mappings:
Namespace Name Mixin selector named hasShiftDown
Lnet/minecraft/client/gui/screen/Screen;hasShiftDown()Z
intermediary method_25442
Lnet/minecraft/class_437;method_25442()Z
official s
Lftx;s()Z
-
hasAltDown
public static boolean hasAltDown()- Mappings:
Namespace Name Mixin selector named hasAltDown
Lnet/minecraft/client/gui/screen/Screen;hasAltDown()Z
intermediary method_25443
Lnet/minecraft/class_437;method_25443()Z
official t
Lftx;t()Z
-
isCut
public static boolean isCut(int code) - Mappings:
Namespace Name Mixin selector named isCut
Lnet/minecraft/client/gui/screen/Screen;isCut(I)Z
intermediary method_25436
Lnet/minecraft/class_437;method_25436(I)Z
official c
Lftx;c(I)Z
-
isPaste
public static boolean isPaste(int code) - Mappings:
Namespace Name Mixin selector named isPaste
Lnet/minecraft/client/gui/screen/Screen;isPaste(I)Z
intermediary method_25437
Lnet/minecraft/class_437;method_25437(I)Z
official d
Lftx;d(I)Z
-
isCopy
public static boolean isCopy(int code) - Mappings:
Namespace Name Mixin selector named isCopy
Lnet/minecraft/client/gui/screen/Screen;isCopy(I)Z
intermediary method_25438
Lnet/minecraft/class_437;method_25438(I)Z
official e
Lftx;e(I)Z
-
isSelectAll
public static boolean isSelectAll(int code) - Mappings:
Namespace Name Mixin selector named isSelectAll
Lnet/minecraft/client/gui/screen/Screen;isSelectAll(I)Z
intermediary method_25439
Lnet/minecraft/class_437;method_25439(I)Z
official f
Lftx;f(I)Z
-
refreshWidgetPositions
protected void refreshWidgetPositions()- 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
-
resize
- Mappings:
Namespace Name Mixin selector named resize
Lnet/minecraft/client/gui/screen/Screen;resize(Lnet/minecraft/client/MinecraftClient;II)V
intermediary method_25410
Lnet/minecraft/class_437;method_25410(Lnet/minecraft/class_310;II)V
official a
Lftx;a(Lfmf;II)V
-
addCrashReportSection
- Mappings:
Namespace Name Mixin selector named addCrashReportSection
Lnet/minecraft/client/gui/screen/Screen;addCrashReportSection(Lnet/minecraft/util/crash/CrashReport;)V
intermediary method_65027
Lnet/minecraft/class_437;method_65027(Lnet/minecraft/class_128;)V
official a
Lftx;a(Lo;)V
-
isValidCharacterForName
- Mappings:
Namespace Name Mixin selector named isValidCharacterForName
Lnet/minecraft/client/gui/screen/Screen;isValidCharacterForName(Ljava/lang/String;CI)Z
intermediary method_25414
Lnet/minecraft/class_437;method_25414(Ljava/lang/String;CI)Z
official a
Lftx;a(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 named isMouseOver
Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
intermediary method_25405
Lnet/minecraft/class_364;method_25405(DD)Z
official c
Lfqc;c(DD)Z
-
filesDragged
- Mappings:
Namespace Name Mixin selector named filesDragged
Lnet/minecraft/client/gui/screen/Screen;filesDragged(Ljava/util/List;)V
intermediary method_29638
Lnet/minecraft/class_437;method_29638(Ljava/util/List;)V
official a
Lftx;a(Ljava/util/List;)V
-
setScreenNarrationDelay
private void setScreenNarrationDelay(long delayMs, boolean restartElementNarration) - Mappings:
Namespace Name Mixin selector named setScreenNarrationDelay
Lnet/minecraft/client/gui/screen/Screen;setScreenNarrationDelay(JZ)V
intermediary method_37059
Lnet/minecraft/class_437;method_37059(JZ)V
official a
Lftx;a(JZ)V
-
setElementNarrationDelay
private void setElementNarrationDelay(long delayMs) - Mappings:
Namespace Name Mixin selector named setElementNarrationDelay
Lnet/minecraft/client/gui/screen/Screen;setElementNarrationDelay(J)V
intermediary method_37058
Lnet/minecraft/class_437;method_37058(J)V
official a
Lftx;a(J)V
-
applyMouseMoveNarratorDelay
public void applyMouseMoveNarratorDelay()- Mappings:
Namespace Name Mixin selector named applyMouseMoveNarratorDelay
Lnet/minecraft/client/gui/screen/Screen;applyMouseMoveNarratorDelay()V
intermediary method_37068
Lnet/minecraft/class_437;method_37068()V
official u
Lftx;u()V
-
applyMousePressScrollNarratorDelay
public void applyMousePressScrollNarratorDelay()- Mappings:
Namespace Name Mixin selector named applyMousePressScrollNarratorDelay
Lnet/minecraft/client/gui/screen/Screen;applyMousePressScrollNarratorDelay()V
intermediary method_37069
Lnet/minecraft/class_437;method_37069()V
official v
Lftx;v()V
-
applyKeyPressNarratorDelay
public void applyKeyPressNarratorDelay()- Mappings:
Namespace Name Mixin selector named applyKeyPressNarratorDelay
Lnet/minecraft/client/gui/screen/Screen;applyKeyPressNarratorDelay()V
intermediary method_37070
Lnet/minecraft/class_437;method_37070()V
official x
Lftx;x()V
-
isNarratorActive
private boolean isNarratorActive()- Mappings:
Namespace Name Mixin selector named isNarratorActive
Lnet/minecraft/client/gui/screen/Screen;isNarratorActive()Z
intermediary method_37073
Lnet/minecraft/class_437;method_37073()Z
official E
Lftx;E()Z
-
updateNarrator
public void updateNarrator()- Mappings:
Namespace Name Mixin selector named updateNarrator
Lnet/minecraft/client/gui/screen/Screen;updateNarrator()V
intermediary method_37071
Lnet/minecraft/class_437;method_37071()V
official y
Lftx;y()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 named narrateScreenIfNarrationEnabled
Lnet/minecraft/client/gui/screen/Screen;narrateScreenIfNarrationEnabled(Z)V
intermediary method_37064
Lnet/minecraft/class_437;method_37064(Z)V
official d
Lftx;d(Z)V
-
narrateScreen
private void narrateScreen(boolean onlyChangedNarrations) - Mappings:
Namespace Name Mixin selector named narrateScreen
Lnet/minecraft/client/gui/screen/Screen;narrateScreen(Z)V
intermediary method_37065
Lnet/minecraft/class_437;method_37065(Z)V
official c
Lftx;c(Z)V
-
hasUsageText
protected boolean hasUsageText()- 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
-
addScreenNarrations
- Mappings:
Namespace Name Mixin selector named addScreenNarrations
Lnet/minecraft/client/gui/screen/Screen;addScreenNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_37062
Lnet/minecraft/class_437;method_37062(Lnet/minecraft/class_6382;)V
official a
Lftx;a(Lfsc;)V
-
addElementNarrations
- Mappings:
Namespace Name Mixin selector named addElementNarrations
Lnet/minecraft/client/gui/screen/Screen;addElementNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_37056
Lnet/minecraft/class_437;method_37056(Lnet/minecraft/class_6382;)V
official b
Lftx;b(Lfsc;)V
-
getUsageNarrationText
- Mappings:
Namespace Name Mixin selector named getUsageNarrationText
Lnet/minecraft/client/gui/screen/Screen;getUsageNarrationText()Lnet/minecraft/text/Text;
intermediary method_53870
Lnet/minecraft/class_437;method_53870()Lnet/minecraft/class_2561;
official z
Lftx;z()Lxv;
-
findSelectedElementData
@Nullable public static @Nullable Screen.SelectedElementNarrationData findSelectedElementData(List<? extends Selectable> selectables, @Nullable @Nullable Selectable selectable) - Mappings:
Namespace Name Mixin selector named findSelectedElementData
Lnet/minecraft/client/gui/screen/Screen;findSelectedElementData(Ljava/util/List;Lnet/minecraft/client/gui/Selectable;)Lnet/minecraft/client/gui/screen/Screen$SelectedElementNarrationData;
intermediary method_37061
Lnet/minecraft/class_437;method_37061(Ljava/util/List;Lnet/minecraft/class_6379;)Lnet/minecraft/class_437$class_6390;
official a
Lftx;a(Ljava/util/List;Lfsa;)Lftx$b;
-
refreshNarrator
public void refreshNarrator(boolean previouslyDisabled) - Mappings:
Namespace Name Mixin selector named refreshNarrator
Lnet/minecraft/client/gui/screen/Screen;refreshNarrator(Z)V
intermediary method_61040
Lnet/minecraft/class_437;method_61040(Z)V
official e
Lftx;e(Z)V
-
clearTooltip
protected void clearTooltip()- Mappings:
Namespace Name Mixin selector named clearTooltip
Lnet/minecraft/client/gui/screen/Screen;clearTooltip()V
intermediary method_59840
Lnet/minecraft/class_437;method_59840()V
official A
Lftx;A()V
-
setTooltip
- Mappings:
Namespace Name Mixin selector named setTooltip
Lnet/minecraft/client/gui/screen/Screen;setTooltip(Ljava/util/List;)V
intermediary method_47414
Lnet/minecraft/class_437;method_47414(Ljava/util/List;)V
official b
Lftx;b(Ljava/util/List;)V
-
setTooltip
- Mappings:
Namespace Name Mixin selector named setTooltip
Lnet/minecraft/client/gui/screen/Screen;setTooltip(Ljava/util/List;Lnet/minecraft/client/gui/tooltip/TooltipPositioner;Z)V
intermediary method_47942
Lnet/minecraft/class_437;method_47942(Ljava/util/List;Lnet/minecraft/class_8000;Z)V
official a
Lftx;a(Ljava/util/List;Lfwi;Z)V
-
setTooltip
- Mappings:
Namespace Name Mixin selector named setTooltip
Lnet/minecraft/client/gui/screen/Screen;setTooltip(Lnet/minecraft/text/Text;)V
intermediary method_47415
Lnet/minecraft/class_437;method_47415(Lnet/minecraft/class_2561;)V
official d
Lftx;d(Lxv;)V
-
setTooltip
- Mappings:
Namespace Name Mixin selector named setTooltip
Lnet/minecraft/client/gui/screen/Screen;setTooltip(Lnet/minecraft/client/gui/tooltip/Tooltip;Lnet/minecraft/client/gui/tooltip/TooltipPositioner;Z)V
intermediary method_47412
Lnet/minecraft/class_437;method_47412(Lnet/minecraft/class_7919;Lnet/minecraft/class_8000;Z)V
official a
Lftx;a(Lfpq;Lfwi;Z)V
-
getTextRenderer
- Mappings:
Namespace Name Mixin selector named getTextRenderer
Lnet/minecraft/client/gui/screen/Screen;getTextRenderer()Lnet/minecraft/client/font/TextRenderer;
intermediary method_64506
Lnet/minecraft/class_437;method_64506()Lnet/minecraft/class_327;
official B
Lftx;B()Lfnp;
-
shouldHideStatusEffectHud
public boolean shouldHideStatusEffectHud()- Mappings:
Namespace Name Mixin selector named shouldHideStatusEffectHud
Lnet/minecraft/client/gui/screen/Screen;shouldHideStatusEffectHud()Z
intermediary method_64507
Lnet/minecraft/class_437;method_64507()Z
official C
Lftx;C()Z
-
getMusic
- Mappings:
Namespace Name Mixin selector named getMusic
Lnet/minecraft/client/gui/screen/Screen;getMusic()Lnet/minecraft/sound/MusicSound;
intermediary method_50024
Lnet/minecraft/class_437;method_50024()Lnet/minecraft/class_5195;
official D
Lftx;D()Laxc;
-