Class AbstractSignEditScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
Direct Known Subclasses:
HangingSignEditScreen, SignEditScreen

public abstract class AbstractSignEditScreen extends Screen
  • Field Details

    • sign

      private final SignBlockEntity sign
    • text

      private SignText text
    • messages

      private final String[] messages
    • isFrontText

      private final boolean isFrontText
    • woodType

      protected final WoodType woodType
    • frame

      private int frame
    • line

      private int line
    • signField

      @Nullable private TextFieldHelper signField
  • Constructor Details

    • AbstractSignEditScreen

      public AbstractSignEditScreen(SignBlockEntity p_277842_, boolean p_277719_, boolean p_277969_)
    • AbstractSignEditScreen

      public AbstractSignEditScreen(SignBlockEntity p_277792_, boolean p_277607_, boolean p_278039_, Component p_277393_)
  • Method Details

    • init

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

      public void tick()
      Overrides:
      tick in class Screen
    • isValid

      private boolean isValid()
    • keyPressed

      public boolean keyPressed(int p_252300_, int p_250424_, int p_250697_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • charTyped

      public boolean charTyped(char p_252008_, int p_251178_)
    • render

      public void render(GuiGraphics p_282418_, int p_281700_, int p_283040_, float p_282799_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • onClose

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

      public void removed()
      Overrides:
      removed in class Screen
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Screen
    • renderSignBackground

      protected abstract void renderSignBackground(GuiGraphics p_281459_, BlockState p_250054_)
    • getSignTextScale

      protected abstract org.joml.Vector3f getSignTextScale()
    • offsetSign

      protected void offsetSign(GuiGraphics p_282672_, BlockState p_283056_)
    • renderSign

      private void renderSign(GuiGraphics p_282006_)
    • renderSignText

      private void renderSignText(GuiGraphics p_282366_)
    • setMessage

      private void setMessage(String p_277913_)
    • onDone

      private void onDone()