Class AddServerScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class AddServerScreen extends Screen
  • Field Details

    • NAME_LABEL

      private static final ITextComponent NAME_LABEL
    • IP_LABEL

      private static final ITextComponent IP_LABEL
    • addButton

      private Button addButton
    • callback

      private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback
    • serverData

      private final ServerData serverData
    • ipEdit

      private TextFieldWidget ipEdit
    • nameEdit

      private TextFieldWidget nameEdit
    • serverPackButton

      private Button serverPackButton
    • lastScreen

      private final Screen lastScreen
    • addressFilter

      private final Predicate<String> addressFilter
  • Constructor Details

    • AddServerScreen

      public AddServerScreen(Screen p_i225927_1_, it.unimi.dsi.fastutil.booleans.BooleanConsumer p_i225927_2_, ServerData p_i225927_3_)
  • Method Details

    • tick

      public void tick()
      Specified by:
      tick in interface IScreen
      Overrides:
      tick in class Screen
    • init

      protected void init()
      Overrides:
      init in class Screen
    • createServerButtonText

      private static ITextComponent createServerButtonText(ServerData.ServerResourceMode p_238624_0_)
    • resize

      public void resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
      Overrides:
      resize in class Screen
    • onEdited

      private void onEdited(String p_213028_1_)
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • onAdd

      private void onAdd()
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • cleanUp

      private void cleanUp()
    • 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
      Overrides:
      render in class Screen