Class EditWorldScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class EditWorldScreen extends Screen
  • Field Details

    • LOGGER

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

      private static final com.google.gson.Gson WORLD_GEN_SETTINGS_GSON
    • NAME_LABEL

      private static final ITextComponent NAME_LABEL
    • renameButton

      private Button renameButton
    • callback

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

      private TextFieldWidget nameEdit
    • levelAccess

      private final SaveFormat.LevelSave levelAccess
  • Constructor Details

    • EditWorldScreen

      public EditWorldScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer p_i232318_1_, SaveFormat.LevelSave p_i232318_2_)
  • 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
    • resize

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

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

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

      private void onRename()
    • makeBackupAndShowToast

      public static void makeBackupAndShowToast(SaveFormat p_241651_0_, String p_241651_1_)
    • makeBackupAndShowToast

      public static boolean makeBackupAndShowToast(SaveFormat.LevelSave p_239019_0_)
    • 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