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

      private void setSize(Vec3i pSize)
    • 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 p_397620_, int p_397635_, int p_397823_, float p_397214_)
      Description copied from class: Screen
      Neo: mixins targeting this method won't fire for container screens as AbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float) replicates this method in place of a super call to insert an event
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      p_397620_ - the GuiGraphics object used for rendering.
      p_397635_ - the x-coordinate of the mouse cursor.
      p_397823_ - the y-coordinate of the mouse cursor.
      p_397214_ - 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 p_399858_, int p_400056_, int p_399919_, float p_400070_)
      Overrides:
      renderBackground in class Screen