Package net.minecraft.client.gui.screen
Class Screen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.screen.Screen
- All Implemented Interfaces:
IdentifibleBooleanConsumer
- Direct Known Subclasses:
AchievementsScreen,AddServerScreen,BookEditScreen,ChatOptionsScreen,ChatScreen,CommandBlockScreen,ConfirmScreen,ConnectScreen,ControlsOptionsScreen,CreateWorldScreen,CreditsScreen,CustomizedWorldPresetsScreen,CustomizeFlatLevelScreen,CustomizeWorldScreen,DeathScreen,DemoScreen,DirectConnectScreen,DisconnectedScreen,DownloadingTerrainScreen,EditWorldScreen,FatalErrorScreen,GameMenuScreen,HandledScreen,LanguageOptionsScreen,MultiplayerScreen,OpenToLanScreen,OutOfMemoryScreen,ProgressScreen,RealmsScreenProxy,ResourcePackScreen,SelectWorldScreen,SettingsScreen,SignEditScreen,SkinOptionsScreen,SnooperScreen,SoundsScreen,StatsScreen,StreamIngestScreen,StreamScreen,StreamUtilitiesScreen,SuperflatPresetScreen,TitleScreen,TwitchErrorScreen,VideoOptionsScreen
@Environment(CLIENT)
public abstract class Screen
extends DrawableHelper
implements IdentifibleBooleanConsumer
- Mappings:
Namespace Name official axuintermediary net/minecraft/class_388named net/minecraft/client/gui/screen/Screen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ButtonWidget>private URIprotected MinecraftClientintprotected ItemRendererprotected List<LabelWidget>private longprivate static final Splitterprivate static final Loggerbooleanprivate intprivate ButtonWidgetprotected TextRendererprivate intintFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE, zOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuttonClicked(ButtonWidget button) voidconfirmResult(boolean bool, int int2) static Stringvoidvoidvoidprotected booleanhandleTextClick(Text text) static booleanstatic booleanstatic booleanvoidinit()voidinit(MinecraftClient client, int width, int height) protected voidinsertText(String text, boolean override) static booleanisCopy(int code) static booleanisCut(int code) static booleanisPaste(int code) static booleanisSelectAll(int code) protected voidkeyPressed(char character, int code) protected voidmouseClicked(int mouseX, int mouseY, int button) protected voidmouseDragged(int int2, int int3, int int4, long long2) protected voidmouseReleased(int mouseX, int mouseY, int button) private voidvoidremoved()voidrender(int mouseX, int mouseY, float tickDelta) voidvoidrenderBackground(int alpha) voidrenderDirtBackground(int alpha) protected voidrenderTextHoverEffect(Text text, int x, int y) protected voidrenderTooltip(String text, int x, int y) protected voidrenderTooltip(List<String> text, int x, int y) protected voidrenderTooltip(ItemStack stack, int x, int y) voidresize(MinecraftClient client, int width, int height) voidsendMessage(String text) voidsendMessage(String text, boolean toHud) static voidsetClipboard(String string) voidsetScreenBounds(int width, int height) booleanvoidtick()Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawHorizontalLine, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, drawWithShadow, fill, fillGradient
-
Field Details
-
logger
- Mappings:
Namespace Name Mixin selector official aLaxu;a:Lorg/apache/logging/log4j/Logger;intermediary field_10460Lnet/minecraft/class_388;field_10460:Lorg/apache/logging/log4j/Logger;named loggerLnet/minecraft/client/gui/screen/Screen;logger:Lorg/apache/logging/log4j/Logger;
-
ALLOWED_PROTOCOLS
- Mappings:
Namespace Name Mixin selector official fLaxu;f:Ljava/util/Set;intermediary field_10461Lnet/minecraft/class_388;field_10461:Ljava/util/Set;named ALLOWED_PROTOCOLSLnet/minecraft/client/gui/screen/Screen;ALLOWED_PROTOCOLS:Ljava/util/Set;
-
LINE_SPLITTER
- Mappings:
Namespace Name Mixin selector official gLaxu;g:Lcom/google/common/base/Splitter;intermediary field_10462Lnet/minecraft/class_388;field_10462:Lcom/google/common/base/Splitter;named LINE_SPLITTERLnet/minecraft/client/gui/screen/Screen;LINE_SPLITTER:Lcom/google/common/base/Splitter;
-
client
- Mappings:
Namespace Name Mixin selector official jLaxu;j:Lave;intermediary field_1229Lnet/minecraft/class_388;field_1229:Lnet/minecraft/class_1600;named clientLnet/minecraft/client/gui/screen/Screen;client:Lnet/minecraft/client/MinecraftClient;
-
itemRenderer
- Mappings:
Namespace Name Mixin selector official kLaxu;k:Lbjh;intermediary field_7770Lnet/minecraft/class_388;field_7770:Lnet/minecraft/class_560;named itemRendererLnet/minecraft/client/gui/screen/Screen;itemRenderer:Lnet/minecraft/client/render/item/ItemRenderer;
-
width
public int width- Mappings:
Namespace Name Mixin selector official lLaxu;l:Iintermediary field_1230Lnet/minecraft/class_388;field_1230:Inamed widthLnet/minecraft/client/gui/screen/Screen;width:I
-
height
public int height- Mappings:
Namespace Name Mixin selector official mLaxu;m:Iintermediary field_1231Lnet/minecraft/class_388;field_1231:Inamed heightLnet/minecraft/client/gui/screen/Screen;height:I
-
buttons
- Mappings:
Namespace Name Mixin selector official nLaxu;n:Ljava/util/List;intermediary field_1232Lnet/minecraft/class_388;field_1232:Ljava/util/List;named buttonsLnet/minecraft/client/gui/screen/Screen;buttons:Ljava/util/List;
-
labels
- Mappings:
Namespace Name Mixin selector official oLaxu;o:Ljava/util/List;intermediary field_7771Lnet/minecraft/class_388;field_7771:Ljava/util/List;named labelsLnet/minecraft/client/gui/screen/Screen;labels:Ljava/util/List;
-
passEvents
public boolean passEvents- Mappings:
Namespace Name Mixin selector official pLaxu;p:Zintermediary field_1233Lnet/minecraft/class_388;field_1233:Znamed passEventsLnet/minecraft/client/gui/screen/Screen;passEvents:Z
-
textRenderer
- Mappings:
Namespace Name Mixin selector official qLaxu;q:Lavn;intermediary field_1234Lnet/minecraft/class_388;field_1234:Lnet/minecraft/class_370;named textRendererLnet/minecraft/client/gui/screen/Screen;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
prevClickedButton
- Mappings:
Namespace Name Mixin selector official hLaxu;h:Lavs;intermediary field_1228Lnet/minecraft/class_388;field_1228:Lnet/minecraft/class_356;named prevClickedButtonLnet/minecraft/client/gui/screen/Screen;prevClickedButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
pressedMouseButton
private int pressedMouseButton- Mappings:
Namespace Name Mixin selector official iLaxu;i:Iintermediary field_5090Lnet/minecraft/class_388;field_5090:Inamed pressedMouseButtonLnet/minecraft/client/gui/screen/Screen;pressedMouseButton:I
-
lastClicked
private long lastClicked- Mappings:
Namespace Name Mixin selector official rLaxu;r:Jintermediary field_5091Lnet/minecraft/class_388;field_5091:Jnamed lastClickedLnet/minecraft/client/gui/screen/Screen;lastClicked:J
-
touchHeld
private int touchHeld- Mappings:
Namespace Name Mixin selector official sLaxu;s:Iintermediary field_5092Lnet/minecraft/class_388;field_5092:Inamed touchHeldLnet/minecraft/client/gui/screen/Screen;touchHeld:I
-
clickedLink
- Mappings:
Namespace Name Mixin selector official tLaxu;t:Ljava/net/URI;intermediary field_10463Lnet/minecraft/class_388;field_10463:Ljava/net/URI;named clickedLinkLnet/minecraft/client/gui/screen/Screen;clickedLink:Ljava/net/URI;
-
-
Constructor Details
-
Screen
public Screen()
-
-
Method Details
-
render
public void render(int mouseX, int mouseY, float tickDelta) - Mappings:
Namespace Name Mixin selector official aLaxu;a(IIF)Vintermediary method_1025Lnet/minecraft/class_388;method_1025(IIF)Vnamed renderLnet/minecraft/client/gui/screen/Screen;render(IIF)V
-
keyPressed
protected void keyPressed(char character, int code) - Mappings:
Namespace Name Mixin selector official aLaxu;a(CI)Vintermediary method_1024Lnet/minecraft/class_388;method_1024(CI)Vnamed keyPressedLnet/minecraft/client/gui/screen/Screen;keyPressed(CI)V
-
getClipboard
- Mappings:
Namespace Name Mixin selector official oLaxu;o()Ljava/lang/String;intermediary method_1038Lnet/minecraft/class_388;method_1038()Ljava/lang/String;named getClipboardLnet/minecraft/client/gui/screen/Screen;getClipboard()Ljava/lang/String;
-
setClipboard
- Mappings:
Namespace Name Mixin selector official eLaxu;e(Ljava/lang/String;)Vintermediary method_1036Lnet/minecraft/class_388;method_1036(Ljava/lang/String;)Vnamed setClipboardLnet/minecraft/client/gui/screen/Screen;setClipboard(Ljava/lang/String;)V
-
renderTooltip
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Lzx;II)Vintermediary method_6752Lnet/minecraft/class_388;method_6752(Lnet/minecraft/class_1071;II)Vnamed renderTooltipLnet/minecraft/client/gui/screen/Screen;renderTooltip(Lnet/minecraft/item/ItemStack;II)V
-
renderTooltip
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Ljava/lang/String;II)Vintermediary method_6753Lnet/minecraft/class_388;method_6753(Ljava/lang/String;II)Vnamed renderTooltipLnet/minecraft/client/gui/screen/Screen;renderTooltip(Ljava/lang/String;II)V
-
renderTooltip
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Ljava/util/List;II)Vintermediary method_6754Lnet/minecraft/class_388;method_6754(Ljava/util/List;II)Vnamed renderTooltipLnet/minecraft/client/gui/screen/Screen;renderTooltip(Ljava/util/List;II)V
-
renderTextHoverEffect
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Leu;II)Vintermediary method_9579Lnet/minecraft/class_388;method_9579(Lnet/minecraft/class_1982;II)Vnamed renderTextHoverEffectLnet/minecraft/client/gui/screen/Screen;renderTextHoverEffect(Lnet/minecraft/text/Text;II)V
-
insertText
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Ljava/lang/String;Z)Vintermediary method_9580Lnet/minecraft/class_388;method_9580(Ljava/lang/String;Z)Vnamed insertTextLnet/minecraft/client/gui/screen/Screen;insertText(Ljava/lang/String;Z)V
-
handleTextClick
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Leu;)Zintermediary method_9578Lnet/minecraft/class_388;method_9578(Lnet/minecraft/class_1982;)Znamed handleTextClickLnet/minecraft/client/gui/screen/Screen;handleTextClick(Lnet/minecraft/text/Text;)Z
-
sendMessage
- Mappings:
Namespace Name Mixin selector official fLaxu;f(Ljava/lang/String;)Vintermediary method_9587Lnet/minecraft/class_388;method_9587(Ljava/lang/String;)Vnamed sendMessageLnet/minecraft/client/gui/screen/Screen;sendMessage(Ljava/lang/String;)V
-
sendMessage
- Mappings:
Namespace Name Mixin selector official bLaxu;b(Ljava/lang/String;Z)Vintermediary method_9583Lnet/minecraft/class_388;method_9583(Ljava/lang/String;Z)Vnamed sendMessageLnet/minecraft/client/gui/screen/Screen;sendMessage(Ljava/lang/String;Z)V
-
mouseClicked
protected void mouseClicked(int mouseX, int mouseY, int button) - Mappings:
Namespace Name Mixin selector official aLaxu;a(III)Vintermediary method_1026Lnet/minecraft/class_388;method_1026(III)Vnamed mouseClickedLnet/minecraft/client/gui/screen/Screen;mouseClicked(III)V
-
mouseReleased
protected void mouseReleased(int mouseX, int mouseY, int button) - Mappings:
Namespace Name Mixin selector official bLaxu;b(III)Vintermediary method_1032Lnet/minecraft/class_388;method_1032(III)Vnamed mouseReleasedLnet/minecraft/client/gui/screen/Screen;mouseReleased(III)V
-
mouseDragged
protected void mouseDragged(int int2, int int3, int int4, long long2) - Mappings:
Namespace Name Mixin selector official aLaxu;a(IIIJ)Vintermediary method_4259Lnet/minecraft/class_388;method_4259(IIIJ)Vnamed mouseDraggedLnet/minecraft/client/gui/screen/Screen;mouseDragged(IIIJ)V
-
buttonClicked
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Lavs;)Vintermediary method_1027Lnet/minecraft/class_388;method_1027(Lnet/minecraft/class_356;)Vnamed buttonClickedLnet/minecraft/client/gui/screen/Screen;buttonClicked(Lnet/minecraft/client/gui/widget/ButtonWidget;)V
-
init
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Lave;II)Vintermediary method_1028Lnet/minecraft/class_388;method_1028(Lnet/minecraft/class_1600;II)Vnamed initLnet/minecraft/client/gui/screen/Screen;init(Lnet/minecraft/client/MinecraftClient;II)V
-
setScreenBounds
public void setScreenBounds(int width, int height) - Mappings:
Namespace Name Mixin selector official aLaxu;a(II)Vintermediary method_9577Lnet/minecraft/class_388;method_9577(II)Vnamed setScreenBoundsLnet/minecraft/client/gui/screen/Screen;setScreenBounds(II)V
-
init
public void init()- Mappings:
Namespace Name Mixin selector official bLaxu;b()Vintermediary method_1044Lnet/minecraft/class_388;method_1044()Vnamed initLnet/minecraft/client/gui/screen/Screen;init()V
-
handleInput
public void handleInput()- Mappings:
Namespace Name Mixin selector official pLaxu;p()Vintermediary method_1039Lnet/minecraft/class_388;method_1039()Vnamed handleInputLnet/minecraft/client/gui/screen/Screen;handleInput()V
-
handleMouse
public void handleMouse()- Mappings:
Namespace Name Mixin selector official kLaxu;k()Vintermediary method_1035Lnet/minecraft/class_388;method_1035()Vnamed handleMouseLnet/minecraft/client/gui/screen/Screen;handleMouse()V
-
handleKeyboard
public void handleKeyboard()- Mappings:
Namespace Name Mixin selector official lLaxu;l()Vintermediary method_6755Lnet/minecraft/class_388;method_6755()Vnamed handleKeyboardLnet/minecraft/client/gui/screen/Screen;handleKeyboard()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official eLaxu;e()Vintermediary method_1033Lnet/minecraft/class_388;method_1033()Vnamed tickLnet/minecraft/client/gui/screen/Screen;tick()V
-
removed
public void removed()- Mappings:
Namespace Name Mixin selector official mLaxu;m()Vintermediary method_1030Lnet/minecraft/class_388;method_1030()Vnamed removedLnet/minecraft/client/gui/screen/Screen;removed()V
-
renderBackground
public void renderBackground()- Mappings:
Namespace Name Mixin selector official cLaxu;c()Vintermediary method_1043Lnet/minecraft/class_388;method_1043()Vnamed renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground()V
-
renderBackground
public void renderBackground(int alpha) - Mappings:
Namespace Name Mixin selector official b_Laxu;b_(I)Vintermediary method_1031Lnet/minecraft/class_388;method_1031(I)Vnamed renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(I)V
-
renderDirtBackground
public void renderDirtBackground(int alpha) - Mappings:
Namespace Name Mixin selector official cLaxu;c(I)Vintermediary method_1034Lnet/minecraft/class_388;method_1034(I)Vnamed renderDirtBackgroundLnet/minecraft/client/gui/screen/Screen;renderDirtBackground(I)V
-
shouldPauseGame
public boolean shouldPauseGame()- Mappings:
Namespace Name Mixin selector official dLaxu;d()Zintermediary method_1037Lnet/minecraft/class_388;method_1037()Znamed shouldPauseGameLnet/minecraft/client/gui/screen/Screen;shouldPauseGame()Z
-
confirmResult
public void confirmResult(boolean bool, int int2) - Specified by:
confirmResultin interfaceIdentifibleBooleanConsumer- Mappings:
Namespace Name Mixin selector official method_1029Laxu;method_1029(ZI)Vintermediary method_1029Lnet/minecraft/class_388;method_1029(ZI)Vnamed confirmResultLnet/minecraft/client/gui/screen/Screen;confirmResult(ZI)V
-
openLink
- Mappings:
Namespace Name Mixin selector official aLaxu;a(Ljava/net/URI;)Vintermediary method_9581Lnet/minecraft/class_388;method_9581(Ljava/net/URI;)Vnamed openLinkLnet/minecraft/client/gui/screen/Screen;openLink(Ljava/net/URI;)V
-
hasControlDown
public static boolean hasControlDown()- Mappings:
Namespace Name Mixin selector official qLaxu;q()Zintermediary method_1041Lnet/minecraft/class_388;method_1041()Znamed hasControlDownLnet/minecraft/client/gui/screen/Screen;hasControlDown()Z
-
hasShiftDown
public static boolean hasShiftDown()- Mappings:
Namespace Name Mixin selector official rLaxu;r()Zintermediary method_1042Lnet/minecraft/class_388;method_1042()Znamed hasShiftDownLnet/minecraft/client/gui/screen/Screen;hasShiftDown()Z
-
hasAltDown
public static boolean hasAltDown()- Mappings:
Namespace Name Mixin selector official sLaxu;s()Zintermediary method_9589Lnet/minecraft/class_388;method_9589()Znamed hasAltDownLnet/minecraft/client/gui/screen/Screen;hasAltDown()Z
-
isCut
public static boolean isCut(int code) - Mappings:
Namespace Name Mixin selector official dLaxu;d(I)Zintermediary method_9584Lnet/minecraft/class_388;method_9584(I)Znamed isCutLnet/minecraft/client/gui/screen/Screen;isCut(I)Z
-
isPaste
public static boolean isPaste(int code) - Mappings:
Namespace Name Mixin selector official eLaxu;e(I)Zintermediary method_9585Lnet/minecraft/class_388;method_9585(I)Znamed isPasteLnet/minecraft/client/gui/screen/Screen;isPaste(I)Z
-
isCopy
public static boolean isCopy(int code) - Mappings:
Namespace Name Mixin selector official fLaxu;f(I)Zintermediary method_9586Lnet/minecraft/class_388;method_9586(I)Znamed isCopyLnet/minecraft/client/gui/screen/Screen;isCopy(I)Z
-
isSelectAll
public static boolean isSelectAll(int code) - Mappings:
Namespace Name Mixin selector official gLaxu;g(I)Zintermediary method_9588Lnet/minecraft/class_388;method_9588(I)Znamed isSelectAllLnet/minecraft/client/gui/screen/Screen;isSelectAll(I)Z
-
resize
- Mappings:
Namespace Name Mixin selector official bLaxu;b(Lave;II)Vintermediary method_9582Lnet/minecraft/class_388;method_9582(Lnet/minecraft/class_1600;II)Vnamed resizeLnet/minecraft/client/gui/screen/Screen;resize(Lnet/minecraft/client/MinecraftClient;II)V
-