Class StructureBlockEditScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class StructureBlockEditScreen extends Screen
  • Field Details

    • NAME_LABEL

      private static final Component NAME_LABEL
    • POSITION_LABEL

      private static final Component POSITION_LABEL
    • SIZE_LABEL

      private static final Component SIZE_LABEL
    • INTEGRITY_LABEL

      private static final Component INTEGRITY_LABEL
    • CUSTOM_DATA_LABEL

      private static final Component CUSTOM_DATA_LABEL
    • INCLUDE_ENTITIES_LABEL

      private static final Component INCLUDE_ENTITIES_LABEL
    • DETECT_SIZE_LABEL

      private static final Component DETECT_SIZE_LABEL
    • SHOW_AIR_LABEL

      private static final Component SHOW_AIR_LABEL
    • SHOW_BOUNDING_BOX_LABEL

      private static final Component SHOW_BOUNDING_BOX_LABEL
    • ALL_MODES

      private static final com.google.common.collect.ImmutableList<StructureMode> ALL_MODES
    • DEFAULT_MODES

      private static final com.google.common.collect.ImmutableList<StructureMode> DEFAULT_MODES
    • structure

      private final StructureBlockEntity 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 EditBox nameEdit
    • posXEdit

      private EditBox posXEdit
    • posYEdit

      private EditBox posYEdit
    • posZEdit

      private EditBox posZEdit
    • sizeXEdit

      private EditBox sizeXEdit
    • sizeYEdit

      private EditBox sizeYEdit
    • sizeZEdit

      private EditBox sizeZEdit
    • integrityEdit

      private EditBox integrityEdit
    • seedEdit

      private EditBox seedEdit
    • dataEdit

      private EditBox dataEdit
    • saveButton

      private Button saveButton
    • loadButton

      private Button loadButton
    • rot0Button

      private Button rot0Button
    • rot90Button

      private Button rot90Button
    • rot180Button

      private Button rot180Button
    • rot270Button

      private Button rot270Button
    • detectButton

      private Button detectButton
    • includeEntitiesButton

      private CycleButton<Boolean> includeEntitiesButton
    • mirrorButton

      private CycleButton<Mirror> mirrorButton
    • toggleAirButton

      private CycleButton<Boolean> toggleAirButton
    • toggleBoundingBox

      private CycleButton<Boolean> toggleBoundingBox
    • decimalFormat

      private final DecimalFormat decimalFormat
  • Constructor Details

  • Method Details

    • tick

      public void tick()
      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_99411_, int p_99412_, int p_99413_)
      Overrides:
      resize in class Screen
    • updateDirectionButtons

      private void updateDirectionButtons()
    • updateMode

      private void updateMode(StructureMode p_169839_)
    • sendToServer

      private boolean sendToServer(StructureBlockEntity.UpdateType p_99404_)
    • parseSeed

      private long parseSeed(String p_99427_)
    • parseIntegrity

      private float parseIntegrity(String p_99431_)
    • parseCoordinate

      private int parseCoordinate(String p_99436_)
    • onClose

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

      public boolean keyPressed(int p_99400_, int p_99401_, int p_99402_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • render

      public void render(GuiGraphics p_281951_, int p_99407_, int p_99408_, float p_99409_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Screen