net.minecraft.client.gui.screens

public abstract class Screen

extends AbstractContainerEventHandler implements Renderable

All mapped superinterfaces:

ContainerEventHandler, GuiEventListener, TabOrderedElement, Renderable

fod
net.minecraft.client.gui.screens.Screen
net.minecraft.class_437
net.minecraft.client.gui.screen.Screen
net.minecraft.src.C_3583_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_22782
LOGGER
f_96536_
private static final Component
b
USAGE_NARRATION
field_33814
SCREEN_USAGE_TEXT
f_169367_
protected static final CubeMap
d
CUBE_MAP
field_49508
PANORAMA_RENDERER
f_314949_
protected static final PanoramaRenderer
e
PANORAMA
field_49509
ROTATING_PANORAMA_RENDERER
f_317031_
public static final ResourceLocation
f
MENU_BACKGROUND
field_49511
MENU_BACKGROUND_TEXTURE
f_315252_
public static final ResourceLocation
g
HEADER_SEPARATOR
field_49895
HEADER_SEPARATOR_TEXTURE
f_316769_
public static final ResourceLocation
h
FOOTER_SEPARATOR
field_49896
FOOTER_SEPARATOR_TEXTURE
f_316966_
private static final ResourceLocation
c
INWORLD_MENU_BACKGROUND
field_49894
INWORLD_MENU_BACKGROUND_TEXTURE
f_315794_
public static final ResourceLocation
i
INWORLD_HEADER_SEPARATOR
field_49897
INWORLD_HEADER_SEPARATOR_TEXTURE
f_314458_
public static final ResourceLocation
j
INWORLD_FOOTER_SEPARATOR
field_49898
INWORLD_FOOTER_SEPARATOR_TEXTURE
f_316128_
protected final Component
k
title
field_22785
title
f_96539_
private final List<GuiEventListener>
r
children
field_22786
children
f_96540_
private final List<NarratableEntry>
s
narratables
field_33815
selectables
f_169368_
protected Minecraft
l
minecraft
field_22787
client
f_96541_
private boolean
u
initialized
field_42156
screenInitialized
f_267454_
public int
m
width
field_22789
width
f_96543_
public int
n
height
field_22790
height
f_96544_
private final List<Renderable>
v
renderables
field_33816
drawables
f_169369_
protected Font
o
font
field_22793
textRenderer
f_96547_
private static final long
w
NARRATE_SUPPRESS_AFTER_INIT_TIME
field_33817
SCREEN_INIT_NARRATION_DELAY
f_169370_
private static final long
x
NARRATE_DELAY_NARRATOR_ENABLED
field_33818
NARRATOR_MODE_CHANGE_DELAY
f_169371_
private static final long
y
NARRATE_DELAY_MOUSE_MOVE
field_33819
MOUSE_MOVE_NARRATION_DELAY
f_169372_
private static final long
z
NARRATE_DELAY_MOUSE_ACTION
field_33820
MOUSE_PRESS_SCROLL_NARRATION_DELAY
f_169373_
private static final long
A
NARRATE_DELAY_KEYBOARD_ACTION
field_33821
KEY_PRESS_NARRATION_DELAY
f_169374_
private final ScreenNarrationCollector
B
narrationState
field_33822
narrator
f_169375_
private long
C
narrationSuppressTime
field_33823
elementNarrationStartTime
f_169376_
private long
D
nextNarrationTime
field_33824
screenNarrationStartTime
f_169377_
protected CycleButton<NarratorStatus>
p
narratorButton
field_52252
narratorToggleButton
f_337633_
private NarratableEntry
E
lastNarratable
field_33813
selected
f_169365_
private Screen$DeferredTooltipRendering
F
deferredTooltipRendering
field_41685
tooltip
f_262730_
protected final Executor
q
screenExecutor
field_44944
executor
f_289574_

Constructor summary

ModifierConstructor
protected (Component title)

Method summary

Modifier and TypeMethod
public Component
n()
getTitle()
method_25440()
getTitle()
m_96636_()
public Component
i()
getNarrationMessage()
method_25435()
getNarratedTitle()
m_142562_()
public final void
c(fhz arg0, int arg1, int arg2, float arg3)
renderWithTooltip(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_47413(class_332 arg0, int arg1, int arg2, float arg3)
renderWithTooltip(DrawContext context, int mouseX, int mouseY, float delta)
m_280264_(C_279497_ p_283456_, int p_283586_, int p_282339_, float arg3)
public void
a(fhz arg0, int arg1, int arg2, float arg3)
render(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
m_88315_(C_279497_ p_281550_, int p_282878_, int p_282465_, float arg3)
public boolean
a(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
method_25404(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
m_7933_(int p_96553_, int p_96554_, int arg2)
private FocusNavigationEvent$TabNavigation
m()
createTabEvent()
method_48266()
getTabNavigation()
m_264442_()
private FocusNavigationEvent$ArrowNavigation
a(fmq arg0)
createArrowEvent(ScreenDirection arg0)
method_48264(class_8028 arg0)
getArrowNavigation(NavigationDirection direction)
m_264409_(C_263621_ arg0)
protected void
aI_()
setInitialFocus()
method_56131()
setInitialFocus()
m_318615_()
protected void
b(fki arg0)
setInitialFocus(GuiEventListener arg0)
method_48265(class_364 arg0)
setInitialFocus(Element element)
m_264313_(C_3495_ arg0)
public void
o()
clearFocus()
method_48267()
blur()
m_264131_()
protected void
a(fhw arg0)
changeFocus(ComponentPath arg0)
method_48263(class_8016 arg0)
switchFocus(GuiNavigationPath path)
m_264158_(C_263634_ arg0)
public boolean
aJ_()
shouldCloseOnEsc()
method_25422()
shouldCloseOnEsc()
m_6913_()
public void
d()
onClose()
method_25419()
close()
m_7379_()
protected <T extends GuiEventListener, Renderable, NarratableEntry> T
c(T arg0)
addRenderableWidget(T arg0)
method_37063(T arg0)
addDrawableChild(T drawableElement)
m_142416_(T arg0)
protected <T extends Renderable> T
a(T arg0)
addRenderableOnly(T arg0)
method_37060(T arg0)
addDrawable(T drawable)
m_169394_(T arg0)
protected <T extends GuiEventListener, NarratableEntry> T
d(T arg0)
addWidget(T arg0)
method_25429(T arg0)
addSelectableChild(T child)
m_7787_(T arg0)
protected void
e(fki arg0)
removeWidget(GuiEventListener arg0)
method_37066(class_364 arg0)
remove(Element child)
m_169411_(C_3495_ arg0)
protected void
p()
clearWidgets()
method_37067()
clearChildren()
m_169413_()
public static List<Component>
a(fgo arg0, cuq arg1)
getTooltipFromItem(Minecraft arg0, ItemStack arg1)
method_25408(class_310 arg0, class_1799 arg1)
getTooltipFromItem(MinecraftClient client, ItemStack stack)
m_280152_(C_3391_ p_281881_, C_1391_ p_282833_)
protected void
a_(String arg0, boolean arg1)
insertText(String arg0, boolean arg1)
method_25415(String arg0, boolean arg1)
insertText(String text, boolean override)
m_6697_(String p_96588_, boolean arg1)
public boolean
a(xw arg0)
handleComponentClicked(Style arg0)
method_25430(class_2583 arg0)
handleTextClick(Style style)
m_5561_(C_5020_ arg0)
public final void
b(fgo arg0, int arg1, int arg2)
init(Minecraft arg0, int arg1, int arg2)
method_25423(class_310 arg0, int arg1, int arg2)
init(MinecraftClient client, int width, int height)
m_6575_(C_3391_ p_96608_, int p_96609_, int arg2)
protected void
q()
rebuildWidgets()
method_41843()
clearAndInit()
m_232761_()
public List<? extends GuiEventListener>
aK_()
children()
method_25396()
children()
m_6702_()
protected void
aT_()
init()
method_25426()
init()
m_7856_()
public void
e()
tick()
method_25393()
tick()
m_86600_()
public void
j()
removed()
method_25432()
removed()
m_7861_()
public void
aL_()
added()
method_49589()
onDisplayed()
m_274333_()
public void
b(fhz arg0, int arg1, int arg2, float arg3)
renderBackground(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25420(class_332 arg0, int arg1, int arg2, float arg3)
renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
m_280273_(C_279497_ p_299421_, int p_298679_, int p_297268_, float arg3)
protected void
a(float arg0)
renderBlurredBackground(float arg0)
method_57734(float arg0)
applyBlur(float delta)
m_324436_(float arg0)
protected void
a(fhz arg0, float arg1)
renderPanorama(GuiGraphics arg0, float arg1)
method_57728(class_332 arg0, float arg1)
renderPanoramaBackground(DrawContext context, float delta)
m_318720_(C_279497_ p_335227_, float arg1)
protected void
a(fhz arg0)
renderMenuBackground(GuiGraphics arg0)
method_57735(class_332 arg0)
renderDarkening(DrawContext context)
m_323963_(C_279497_ arg0)
protected void
a(fhz arg0, int arg1, int arg2, int arg3, int arg4)
renderMenuBackground(GuiGraphics arg0, int arg1, int arg2, int arg3, int arg4)
method_57736(class_332 arg0, int arg1, int arg2, int arg3, int arg4)
renderDarkening(DrawContext context, int x, int y, int width, int height)
m_320284_(C_279497_ p_328355_, int p_328091_, int p_332954_, int p_331811_, int arg4)
public static void
a(fhz arg0, akr arg1, int arg2, int arg3, float arg4, float arg5, int arg6, int arg7)
renderMenuBackgroundTexture(GuiGraphics arg0, ResourceLocation arg1, int arg2, int arg3, float arg4, float arg5, int arg6, int arg7)
method_57737(class_332 arg0, class_2960 arg1, int arg2, int arg3, float arg4, float arg5, int arg6, int arg7)
renderBackgroundTexture(DrawContext context, Identifier texture, int x, int y, float u, float v, int width, int height)
m_323099_(C_279497_ p_331670_, C_5265_ p_330833_, int p_332491_, int p_335034_, float p_330279_, float p_334888_, int p_331386_, int p_330145_)
public void
b(fhz arg0)
renderTransparentBackground(GuiGraphics arg0)
method_52752(class_332 arg0)
renderInGameBackground(DrawContext context)
m_293900_(C_279497_ arg0)
public boolean
k()
isPauseScreen()
method_25421()
shouldPause()
m_7043_()
public static boolean
r()
hasControlDown()
method_25441()
hasControlDown()
m_96637_()
public static boolean
s()
hasShiftDown()
method_25442()
hasShiftDown()
m_96638_()
public static boolean
t()
hasAltDown()
method_25443()
hasAltDown()
m_96639_()
public static boolean
c(int arg0)
isCut(int arg0)
method_25436(int arg0)
isCut(int code)
m_96628_(int p_96629_)
public static boolean
d(int arg0)
isPaste(int arg0)
method_25437(int arg0)
isPaste(int code)
m_96630_(int p_96631_)
public static boolean
e(int arg0)
isCopy(int arg0)
method_25438(int arg0)
isCopy(int code)
m_96632_(int p_96633_)
public static boolean
f(int arg0)
isSelectAll(int arg0)
method_25439(int arg0)
isSelectAll(int code)
m_96634_(int p_96635_)
protected void
c()
repositionElements()
method_48640()
initTabNavigation()
m_267719_()
public void
a(fgo arg0, int arg1, int arg2)
resize(Minecraft arg0, int arg1, int arg2)
method_25410(class_310 arg0, int arg1, int arg2)
resize(MinecraftClient client, int width, int height)
m_6574_(C_3391_ p_96576_, int p_96577_, int arg2)
public static void
a(Runnable arg0, String arg1, String arg2)
wrapScreenError(Runnable arg0, String arg1, String arg2)
method_25412(Runnable arg0, String arg1, String arg2)
wrapScreenError(Runnable task, String errorTitle, String screenName)
m_96579_(Runnable p_96580_, String p_96581_, String p_96582_)
protected boolean
a(String arg0, char arg1, int arg2)
isValidCharacterForName(String arg0, char arg1, int arg2)
method_25414(String arg0, char arg1, int arg2)
isValidCharacterForName(String name, char character, int cursorPos)
m_96583_(String p_96585_, char p_96586_, int arg2)
public boolean
c(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
method_25405(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
m_5953_(double p_96596_, double arg1)
public void
a(List<Path> arg0)
onFilesDrop(List<Path> arg0)
method_29638(List<Path> arg0)
filesDragged(List<Path> paths)
m_7400_(List<Path> arg0)
private void
a(long arg0, boolean arg1)
scheduleNarration(long arg0, boolean arg1)
method_37059(long arg0, boolean arg1)
setScreenNarrationDelay(long delayMs, boolean restartElementNarration)
m_169380_(long p_169382_, boolean arg1)
private void
a(long arg0)
suppressNarration(long arg0)
method_37058(long arg0)
setElementNarrationDelay(long delayMs)
m_169378_(long arg0)
public void
u()
afterMouseMove()
method_37068()
applyMouseMoveNarratorDelay()
m_169414_()
public void
v()
afterMouseAction()
method_37069()
applyMousePressScrollNarratorDelay()
m_169415_()
public void
x()
afterKeyboardAction()
method_37070()
applyKeyPressNarratorDelay()
m_169416_()
private boolean
C()
shouldRunNarration()
method_37073()
isNarratorActive()
m_169419_()
public void
y()
handleDelayedNarration()
method_37071()
updateNarrator()
m_169417_()
public void
d(boolean arg0)
triggerImmediateNarration(boolean arg0)
method_37064(boolean arg0)
narrateScreenIfNarrationEnabled(boolean onlyChangedNarrations)
m_169407_(boolean arg0)
private void
c(boolean arg0)
runNarration(boolean arg0)
method_37065(boolean arg0)
narrateScreen(boolean onlyChangedNarrations)
m_169409_(boolean arg0)
protected boolean
aS_()
shouldNarrateNavigation()
method_48262()
hasUsageText()
m_264396_()
protected void
a(fmi arg0)
updateNarrationState(NarrationElementOutput arg0)
method_37062(class_6382 arg0)
addScreenNarrations(NarrationMessageBuilder messageBuilder)
m_142228_(C_141608_ arg0)
protected void
b(fmi arg0)
updateNarratedWidget(NarrationElementOutput arg0)
method_37056(class_6382 arg0)
addElementNarrations(NarrationMessageBuilder builder)
m_142227_(C_141608_ arg0)
protected Component
z()
getUsageNarration()
method_53870()
getUsageNarrationText()
m_301494_()
public static Screen$NarratableSearchResult
a(List<? extends fmg> arg0, fmg arg1)
findNarratableWidget(List<? extends NarratableEntry> arg0, NarratableEntry arg1)
method_37061(List<? extends class_6379> arg0, class_6379 arg1)
findSelectedElementData(List<? extends Selectable> selectables, Selectable selectable)
m_169400_(List<? extends C_141605_> p_169401_, C_141605_ p_169402_)
public void
e(boolean arg0)
updateNarratorStatus(boolean arg0)
method_61040(boolean arg0)
refreshNarrator(boolean previouslyDisabled)
m_340185_(boolean arg0)
protected void
A()
clearTooltipForNextRenderPass()
method_59840()
clearTooltip()
m_319277_()
public void
b(List<aya> arg0)
setTooltipForNextRenderPass(List<FormattedCharSequence> arg0)
method_47414(List<class_5481> arg0)
setTooltip(List<OrderedText> tooltip)
m_257959_(List<C_178_> arg0)
public void
a(List<aya> arg0, fqo arg1, boolean arg2)
setTooltipForNextRenderPass(List<FormattedCharSequence> arg0, ClientTooltipPositioner arg1, boolean arg2)
method_47942(List<class_5481> arg0, class_8000 arg1, boolean arg2)
setTooltip(List<OrderedText> tooltip, TooltipPositioner positioner, boolean focused)
m_262861_(List<C_178_> p_263078_, C_262719_ p_263107_, boolean arg2)
public void
d(wz arg0)
setTooltipForNextRenderPass(Component arg0)
method_47415(class_2561 arg0)
setTooltip(Text tooltip)
m_257404_(C_4996_ arg0)
public void
a(fjx arg0, fqo arg1, boolean arg2)
setTooltipForNextRenderPass(Tooltip arg0, ClientTooltipPositioner arg1, boolean arg2)
method_47412(class_7919 arg0, class_8000 arg1, boolean arg2)
setTooltip(Tooltip tooltip, TooltipPositioner positioner, boolean focused)
m_262791_(C_256714_ p_262980_, C_262719_ p_262988_, boolean arg2)
public ScreenRectangle
H()
getRectangle()
method_48202()
getNavigationFocus()
m_264198_()
public Music
B()
getBackgroundMusic()
method_50024()
getMusic()
m_278176_()