Class 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

public abstract class Screen extends FocusableGui implements IScreen, IRenderable
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • ALLOWED_PROTOCOLS

      private static final Set<String> ALLOWED_PROTOCOLS
    • title

      protected final ITextComponent title
    • children

      protected final List<IGuiEventListener> children
    • minecraft

      @Nullable protected Minecraft minecraft
    • itemRenderer

      protected ItemRenderer itemRenderer
    • width

      public int width
    • height

      public int height
    • buttons

      protected final List<Widget> buttons
    • passEvents

      public boolean passEvents
    • font

      protected FontRenderer font
  • Constructor Details

  • Method Details

    • getTitle

      public ITextComponent getTitle()
    • getNarrationMessage

      public String getNarrationMessage()
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
    • keyPressed

      public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
      Specified by:
      keyPressed in interface IGuiEventListener
      Specified by:
      keyPressed in interface INestedGuiEventHandler
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
    • onClose

      public void onClose()
    • addButton

      protected <T extends Widget> T addButton(T p_230480_1_)
    • addWidget

      protected <T extends IGuiEventListener> T addWidget(T p_230481_1_)
    • renderTooltip

      protected void renderTooltip(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_)
    • getTooltipFromItem

      public List<ITextComponent> getTooltipFromItem(ItemStack p_231151_1_)
    • 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

      protected void insertText(String p_231155_1_, boolean p_231155_2_)
    • handleComponentClicked

      public boolean handleComponentClicked(@Nullable Style p_230455_1_)
    • sendMessage

      public void sendMessage(String p_231161_1_)
    • sendMessage

      public void sendMessage(String p_231159_1_, boolean p_231159_2_)
    • init

      public void init(Minecraft p_231158_1_, int p_231158_2_, int p_231158_3_)
    • children

      public List<? extends IGuiEventListener> children()
      Specified by:
      children in interface INestedGuiEventHandler
    • init

      protected void init()
    • tick

      public void tick()
      Specified by:
      tick in interface IScreen
    • removed

      public void removed()
    • renderBackground

      public void renderBackground(MatrixStack p_230446_1_)
    • renderBackground

      public void renderBackground(MatrixStack p_238651_1_, int p_238651_2_)
    • renderDirtBackground

      public void renderDirtBackground(int p_231165_1_)
    • isPauseScreen

      public boolean isPauseScreen()
    • confirmLink

      private void confirmLink(boolean p_231162_1_)
    • openLink

      private void openLink(URI p_231156_1_)
    • 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

      public void resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
    • wrapScreenError

      public static void wrapScreenError(Runnable p_231153_0_, String p_231153_1_, String p_231153_2_)
    • isValidCharacterForName

      protected boolean isValidCharacterForName(String p_231154_1_, char p_231154_2_, int p_231154_3_)
    • isMouseOver

      public boolean isMouseOver(double p_231047_1_, double p_231047_3_)
      Specified by:
      isMouseOver in interface IGuiEventListener
    • onFilesDrop

      public void onFilesDrop(List<Path> p_230476_1_)
    • getMinecraft

      public Minecraft getMinecraft()