Package net.minecraft.client.gui.screen
Class Screen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
- All Implemented Interfaces:
IGuiEventListener,INestedGuiEventHandler,IRenderable,IScreen
- Direct Known Subclasses:
AbstractCommandBlockScreen,AddServerScreen,AdvancementsScreen,AlertScreen,ChatScreen,ConfirmBackupScreen,ConfirmScreen,ConnectingScreen,ContainerScreen,CreateBuffetWorldScreen,CreateFlatWorldScreen,CreateWorldScreen,DatapackFailureScreen,DeathScreen,DemoScreen,DirtMessageScreen,DisconnectedScreen,DownloadTerrainScreen,EditBookScreen,EditGamerulesScreen,EditSignScreen,EditStructureScreen,EditWorldScreen,ErrorScreen,FlatPresetsScreen,GamemodeSelectionScreen,GPUWarningScreen,GuiLayeringTest.ClientEvents.TestLayer,IngameMenuScreen,JigsawScreen,MainMenuScreen,MemoryErrorScreen,ModListScreen,MultiplayerScreen,MultiplayerWarningScreen,NotificationModUpdateScreen,OptimizeWorldScreen,OptionsScreen,PackScreen,ReadBookScreen,RealmsScreen,ServerListScreen,SettingsScreen,ShareToLanScreen,SocialInteractionsScreen,StatsScreen,WinGameScreen,WorkingScreen,WorldLoadProgressScreen,WorldSelectionScreen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<IGuiEventListener>private URIprotected FontRendererintprotected ItemRendererprivate static final org.apache.logging.log4j.Loggerprotected Minecraftbooleanprotected final ITextComponentintFields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends Widget>
TaddButton(T p_230480_1_) protected <T extends IGuiEventListener>
TaddWidget(T p_230481_1_) List<? extends IGuiEventListener>children()private voidconfirmLink(boolean p_231162_1_) getTitle()getTooltipFromItem(ItemStack p_231151_1_) booleanhandleComponentClicked(Style p_230455_1_) static booleanstatic booleanstatic booleanprotected voidinit()voidprotected voidinsertText(String p_231155_1_, boolean p_231155_2_) static booleanisCopy(int p_231169_0_) static booleanisCut(int p_231166_0_) booleanisMouseOver(double p_231047_1_, double p_231047_3_) static booleanisPaste(int p_231168_0_) booleanstatic booleanisSelectAll(int p_231170_0_) protected booleanisValidCharacterForName(String p_231154_1_, char p_231154_2_, int p_231154_3_) booleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) voidonClose()voidonFilesDrop(List<Path> p_230476_1_) private voidvoidremoved()voidrender(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) voidrenderBackground(MatrixStack p_230446_1_) voidrenderBackground(MatrixStack p_238651_1_, int p_238651_2_) protected voidrenderComponentHoverEffect(MatrixStack p_238653_1_, Style p_238653_2_, int p_238653_3_, int p_238653_4_) voidrenderComponentTooltip(MatrixStack p_243308_1_, List<ITextComponent> p_243308_2_, int p_243308_3_, int p_243308_4_) voidrenderDirtBackground(int p_231165_1_) voidrenderTooltip(MatrixStack p_238654_1_, List<? extends IReorderingProcessor> p_238654_2_, int p_238654_3_, int p_238654_4_) protected voidrenderTooltip(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_) voidrenderTooltip(MatrixStack p_238652_1_, ITextComponent p_238652_2_, int p_238652_3_, int p_238652_4_) voidrenderToolTip(MatrixStack p_238654_1_, List<? extends IReorderingProcessor> p_238654_2_, int p_238654_3_, int p_238654_4_, FontRenderer font) voidrenderWrappedToolTip(MatrixStack matrixStack, List<? extends ITextProperties> tooltips, int mouseX, int mouseY, FontRenderer font) voidvoidsendMessage(String p_231161_1_) voidsendMessage(String p_231159_1_, boolean p_231159_2_) booleanvoidtick()static voidwrapScreenError(Runnable p_231153_0_, String p_231153_1_, String p_231153_2_) Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ALLOWED_PROTOCOLS
-
title
-
children
-
minecraft
-
itemRenderer
-
width
public int width -
height
public int height -
buttons
-
passEvents
public boolean passEvents -
font
-
clickedLink
-
-
Constructor Details
-
Screen
-
-
Method Details
-
getTitle
-
getNarrationMessage
-
render
- Specified by:
renderin interfaceIRenderable
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressedin interfaceIGuiEventListener- Specified by:
keyPressedin interfaceINestedGuiEventHandler
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc() -
onClose
public void onClose() -
addButton
-
addWidget
-
renderTooltip
protected void renderTooltip(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_) -
getTooltipFromItem
-
renderTooltip
public void renderTooltip(MatrixStack p_238652_1_, ITextComponent p_238652_2_, int p_238652_3_, int p_238652_4_) -
renderComponentTooltip
public void renderComponentTooltip(MatrixStack p_243308_1_, List<ITextComponent> p_243308_2_, int p_243308_3_, int p_243308_4_) -
renderWrappedToolTip
public void renderWrappedToolTip(MatrixStack matrixStack, List<? extends ITextProperties> tooltips, int mouseX, int mouseY, FontRenderer font) -
renderTooltip
public void renderTooltip(MatrixStack p_238654_1_, List<? extends IReorderingProcessor> p_238654_2_, int p_238654_3_, int p_238654_4_) -
renderToolTip
public void renderToolTip(MatrixStack p_238654_1_, List<? extends IReorderingProcessor> p_238654_2_, int p_238654_3_, int p_238654_4_, FontRenderer font) -
renderComponentHoverEffect
protected void renderComponentHoverEffect(MatrixStack p_238653_1_, @Nullable Style p_238653_2_, int p_238653_3_, int p_238653_4_) -
insertText
-
handleComponentClicked
-
sendMessage
-
sendMessage
-
init
-
children
- Specified by:
childrenin interfaceINestedGuiEventHandler
-
init
protected void init() -
tick
public void tick() -
removed
public void removed() -
renderBackground
-
renderBackground
-
renderDirtBackground
public void renderDirtBackground(int p_231165_1_) -
isPauseScreen
public boolean isPauseScreen() -
confirmLink
private void confirmLink(boolean p_231162_1_) -
openLink
-
hasControlDown
public static boolean hasControlDown() -
hasShiftDown
public static boolean hasShiftDown() -
hasAltDown
public static boolean hasAltDown() -
isCut
public static boolean isCut(int p_231166_0_) -
isPaste
public static boolean isPaste(int p_231168_0_) -
isCopy
public static boolean isCopy(int p_231169_0_) -
isSelectAll
public static boolean isSelectAll(int p_231170_0_) -
resize
-
wrapScreenError
-
isValidCharacterForName
-
isMouseOver
public boolean isMouseOver(double p_231047_1_, double p_231047_3_) - Specified by:
isMouseOverin interfaceIGuiEventListener
-
onFilesDrop
-
getMinecraft
-