Class EditStructureScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class EditStructureScreen extends Screen
  • Field Details

    • NAME_LABEL

      private static final ITextComponent NAME_LABEL
    • POSITION_LABEL

      private static final ITextComponent POSITION_LABEL
    • SIZE_LABEL

      private static final ITextComponent SIZE_LABEL
    • INTEGRITY_LABEL

      private static final ITextComponent INTEGRITY_LABEL
    • CUSTOM_DATA_LABEL

      private static final ITextComponent CUSTOM_DATA_LABEL
    • INCLUDE_ENTITIES_LABEL

      private static final ITextComponent INCLUDE_ENTITIES_LABEL
    • DETECT_SIZE_LABEL

      private static final ITextComponent DETECT_SIZE_LABEL
    • SHOW_AIR_LABEL

      private static final ITextComponent SHOW_AIR_LABEL
    • SHOW_BOUNDING_BOX_LABEL

      private static final ITextComponent SHOW_BOUNDING_BOX_LABEL
    • structure

      private final StructureBlockTileEntity structure
    • initialMirror

      private Mirror initialMirror
    • initialRotation

      private Rotation initialRotation
    • initialMode

      private StructureMode initialMode
    • initialEntityIgnoring

      private boolean initialEntityIgnoring
    • initialShowAir

      private boolean initialShowAir
    • initialShowBoundingBox

      private boolean initialShowBoundingBox
    • nameEdit

      private TextFieldWidget nameEdit
    • posXEdit

      private TextFieldWidget posXEdit
    • posYEdit

      private TextFieldWidget posYEdit
    • posZEdit

      private TextFieldWidget posZEdit
    • sizeXEdit

      private TextFieldWidget sizeXEdit
    • sizeYEdit

      private TextFieldWidget sizeYEdit
    • sizeZEdit

      private TextFieldWidget sizeZEdit
    • integrityEdit

      private TextFieldWidget integrityEdit
    • seedEdit

      private TextFieldWidget seedEdit
    • dataEdit

      private TextFieldWidget dataEdit
    • doneButton

      private Button doneButton
    • cancelButton

      private Button cancelButton
    • saveButton

      private Button saveButton
    • loadButton

      private Button loadButton
    • rot0Button

      private Button rot0Button
    • rot90Button

      private Button rot90Button
    • rot180Button

      private Button rot180Button
    • rot270Button

      private Button rot270Button
    • modeButton

      private Button modeButton
    • detectButton

      private Button detectButton
    • entitiesButton

      private Button entitiesButton
    • mirrorButton

      private Button mirrorButton
    • toggleAirButton

      private Button toggleAirButton
    • toggleBoundingBox

      private Button toggleBoundingBox
    • decimalFormat

      private final DecimalFormat decimalFormat
  • Constructor Details

  • Method Details

    • tick

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

      private void onDone()
    • onCancel

      private void onCancel()
    • 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
    • removed

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

      private void updateEntitiesButton()
    • updateToggleAirButton

      private void updateToggleAirButton()
    • updateToggleBoundingBox

      private void updateToggleBoundingBox()
    • updateMirrorButton

      private void updateMirrorButton()
    • updateDirectionButtons

      private void updateDirectionButtons()
    • updateMode

      private void updateMode()
    • sendToServer

      private boolean sendToServer(StructureBlockTileEntity.UpdateCommand p_210143_1_)
    • parseSeed

      private long parseSeed(String p_189821_1_)
    • parseIntegrity

      private float parseIntegrity(String p_189819_1_)
    • parseCoordinate

      private int parseCoordinate(String p_189817_1_)
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • 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
      Overrides:
      keyPressed in class Screen
    • 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
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Screen