Class JigsawBlockEditScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class JigsawBlockEditScreen extends Screen
  • Field Details

    • JOINT_LABEL

      private static final Component JOINT_LABEL
    • POOL_LABEL

      private static final Component POOL_LABEL
    • NAME_LABEL

      private static final Component NAME_LABEL
    • TARGET_LABEL

      private static final Component TARGET_LABEL
    • FINAL_STATE_LABEL

      private static final Component FINAL_STATE_LABEL
    • PLACEMENT_PRIORITY_LABEL

      private static final Component PLACEMENT_PRIORITY_LABEL
    • PLACEMENT_PRIORITY_TOOLTIP

      private static final Component PLACEMENT_PRIORITY_TOOLTIP
    • SELECTION_PRIORITY_LABEL

      private static final Component SELECTION_PRIORITY_LABEL
    • SELECTION_PRIORITY_TOOLTIP

      private static final Component SELECTION_PRIORITY_TOOLTIP
    • jigsawEntity

      private final JigsawBlockEntity jigsawEntity
    • nameEdit

      private EditBox nameEdit
    • targetEdit

      private EditBox targetEdit
    • poolEdit

      private EditBox poolEdit
    • finalStateEdit

      private EditBox finalStateEdit
    • selectionPriorityEdit

      private EditBox selectionPriorityEdit
    • placementPriorityEdit

      private EditBox placementPriorityEdit
    • levels

      int levels
    • keepJigsaws

      private boolean keepJigsaws
    • jointButton

    • doneButton

      private Button doneButton
    • generateButton

      private Button generateButton
    • joint

  • Constructor Details

    • JigsawBlockEditScreen

      public JigsawBlockEditScreen(JigsawBlockEntity jigsawEntity)
  • Method Details

    • onDone

      private void onDone()
    • onCancel

      private void onCancel()
    • sendToServer

      private void sendToServer()
    • parseAsInt

      private int parseAsInt(String string)
    • sendGenerate

      private void sendGenerate()
    • onClose

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

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

      protected void setInitialFocus()
      Overrides:
      setInitialFocus in class Screen
    • renderBackground

      public void renderBackground(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Overrides:
      renderBackground in class Screen
    • isValidResourceLocation

      public static boolean isValidResourceLocation(String location)
    • updateValidity

      private void updateValidity()
    • resize

      public void resize(Minecraft minecraft, int width, int height)
      Overrides:
      resize in class Screen
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Called when a keyboard key is pressed within the GUI element.

      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the key code of the pressed key.
      scanCode - the scan code of the pressed key.
      modifiers - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • render

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