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 widgetsInRow)
    • widgetSize

      private static int widgetSize(int widgetsInRow)
    • exactWidgetSize

      private static float exactWidgetSize(int widgetsInRow)
    • 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 load)
    • 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 size)
    • renderBackground

      public void renderBackground(GuiGraphics p_399858_, int p_400056_, int p_399919_, float p_400070_)
      Overrides:
      renderBackground in class Screen