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 p_398001_)
    • setSize

      private void setSize(Vec3i p_397406_)
    • widgetX

      private int widgetX(int pIndex, int pWidgetsInRow)
    • widgetSize

      private static int widgetSize(int pWidgetsInRow)
    • exactWidgetSize

      private static float exactWidgetSize(int pWidgetsInRow)
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      pGuiGraphics - the GuiGraphics object used for rendering.
      pMouseX - the x-coordinate of the mouse cursor.
      pMouseY - the y-coordinate of the mouse cursor.
      pPartialTick - the partial tick time.
    • updateTestInfo

      private void updateTestInfo(boolean pLoad)
    • onDone

      private void onDone()
    • sendToServer

      private boolean sendToServer(ServerboundTestInstanceBlockActionPacket.Action pAction)
    • setStatus

      public void setStatus(Component pStatus, Optional<Vec3i> pSize)
    • onCancel

      private void onCancel()
    • parseSize

      private static int parseSize(String pSize)
    • renderBackground

      public void renderBackground(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Overrides:
      renderBackground in class Screen