Class TestInstanceBlockEditScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class TestInstanceBlockEditScreen extends Screen
  • Field Details

  • Constructor Details

  • Method Details

    • init

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

      private void updateSaveState()
    • rotationDisplay

      private static Component rotationDisplay(Rotation rotation)
    • setSize

      private void setSize(Vec3i size)
    • widgetX

      private int widgetX(int index, int count)
    • widgetSize

      private static int widgetSize(int count)
    • exactWidgetSize

      private static float exactWidgetSize(int count)
    • render

      public void render(GuiGraphics graphics, int mouseX, int mouseY, float a)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      graphics - the GuiGraphics object used for rendering.
      mouseX - the x-coordinate of the mouse cursor.
      mouseY - the y-coordinate of the mouse cursor.
      a - the partial tick time.
    • updateTestInfo

      private void updateTestInfo(boolean isInit)
    • onDone

      private void onDone()
    • sendToServer

      private boolean sendToServer(ServerboundTestInstanceBlockActionPacket.Action action)
    • setStatus

      public void setStatus(Component status, Optional<Vec3i> size)
    • onCancel

      private void onCancel()
    • parseSize

      private static int parseSize(String value)
    • isInGameUi

      public boolean isInGameUi()
      Overrides:
      isInGameUi in class Screen