Class AbstractSignEditScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement
Direct Known Subclasses:
HangingSignEditScreen, SignEditScreen

@Environment(CLIENT) public abstract class AbstractSignEditScreen extends Screen
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/ingame/AbstractSignEditScreen
intermediary net/minecraft/class_7743
official foc
  • Field Details

    • blockEntity

      private final SignBlockEntity blockEntity
      Mappings:
      Namespace Name Mixin selector
      named blockEntity Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;blockEntity:Lnet/minecraft/block/entity/SignBlockEntity;
      intermediary field_40424 Lnet/minecraft/class_7743;field_40424:Lnet/minecraft/class_2625;
      official b Lfoc;b:Ldrb;
    • text

      private SignText text
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;text:Lnet/minecraft/block/entity/SignText;
      intermediary field_43362 Lnet/minecraft/class_7743;field_43362:Lnet/minecraft/class_8242;
      official c Lfoc;c:Ldrc;
    • messages

      private final String[] messages
      Mappings:
      Namespace Name Mixin selector
      named messages Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;messages:[Ljava/lang/String;
      intermediary field_40425 Lnet/minecraft/class_7743;field_40425:[Ljava/lang/String;
      official q Lfoc;q:[Ljava/lang/String;
    • front

      private final boolean front
      Mappings:
      Namespace Name Mixin selector
      named front Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;front:Z
      intermediary field_43363 Lnet/minecraft/class_7743;field_43363:Z
      official r Lfoc;r:Z
    • signType

      protected final WoodType signType
      Mappings:
      Namespace Name Mixin selector
      named signType Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;signType:Lnet/minecraft/block/WoodType;
      intermediary field_40426 Lnet/minecraft/class_7743;field_40426:Lnet/minecraft/class_4719;
      official a Lfoc;a:Ldty;
    • ticksSinceOpened

      private int ticksSinceOpened
      Mappings:
      Namespace Name Mixin selector
      named ticksSinceOpened Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;ticksSinceOpened:I
      intermediary field_40427 Lnet/minecraft/class_7743;field_40427:I
      official s Lfoc;s:I
    • currentRow

      private int currentRow
      Mappings:
      Namespace Name Mixin selector
      named currentRow Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;currentRow:I
      intermediary field_40428 Lnet/minecraft/class_7743;field_40428:I
      official u Lfoc;u:I
    • selectionManager

      @Nullable private @Nullable SelectionManager selectionManager
      Mappings:
      Namespace Name Mixin selector
      named selectionManager Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;selectionManager:Lnet/minecraft/client/util/SelectionManager;
      intermediary field_40429 Lnet/minecraft/class_7743;field_40429:Lnet/minecraft/class_3728;
      official v Lfoc;v:Lfko;
  • Constructor Details

    • AbstractSignEditScreen

      public AbstractSignEditScreen(SignBlockEntity blockEntity, boolean front, boolean filtered)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;<init>(Lnet/minecraft/block/entity/SignBlockEntity;ZZ)V
      intermediary <init> Lnet/minecraft/class_7743;<init>(Lnet/minecraft/class_2625;ZZ)V
      official <init> Lfoc;<init>(Ldrb;ZZ)V
    • AbstractSignEditScreen

      public AbstractSignEditScreen(SignBlockEntity blockEntity, boolean front, boolean filtered, Text title)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;<init>(Lnet/minecraft/block/entity/SignBlockEntity;ZZLnet/minecraft/text/Text;)V
      intermediary <init> Lnet/minecraft/class_7743;<init>(Lnet/minecraft/class_2625;ZZLnet/minecraft/class_2561;)V
      official <init> Lfoc;<init>(Ldrb;ZZLwu;)V
  • Method Details

    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      This should call Screen.setInitialFocus() to set the element that is initially focused.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      official aP_ Lfnl;aP_()V
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      official e Lfnl;e()V
    • canEdit

      private boolean canEdit()
      Mappings:
      Namespace Name Mixin selector
      named canEdit Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;canEdit()Z
      intermediary method_49912 Lnet/minecraft/class_7743;method_49912()Z
      official D Lfoc;D()Z
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      official a Lfjq;a(III)Z
    • charTyped

      public boolean charTyped(char chr, int modifiers)
      Callback for when a character input has been captured. The key code is identified by the constants in GLFW class.
      Parameters:
      chr - the captured character
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named charTyped Lnet/minecraft/client/gui/Element;charTyped(CI)Z
      intermediary method_25400 Lnet/minecraft/class_364;method_25400(CI)Z
      official a Lfjq;a(CI)Z
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      official a Lfix;a(Lfhh;IIF)V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      official b Lfnl;b(Lfhh;IIF)V
    • close

      public void close()
      Overrides:
      close in class Screen
      Mappings:
      Namespace Name Mixin selector
      named close Lnet/minecraft/client/gui/screen/Screen;close()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      official d Lfnl;d()V
    • removed

      public void removed()
      Overrides:
      removed in class Screen
      Mappings:
      Namespace Name Mixin selector
      named removed Lnet/minecraft/client/gui/screen/Screen;removed()V
      intermediary method_25432 Lnet/minecraft/class_437;method_25432()V
      official j Lfnl;j()V
    • shouldPause

      public boolean shouldPause()
      Overrides:
      shouldPause in class Screen
      Mappings:
      Namespace Name Mixin selector
      named shouldPause Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
      intermediary method_25421 Lnet/minecraft/class_437;method_25421()Z
      official k Lfnl;k()Z
    • renderSignBackground

      protected abstract void renderSignBackground(DrawContext context, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named renderSignBackground Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSignBackground(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/block/BlockState;)V
      intermediary method_45656 Lnet/minecraft/class_7743;method_45656(Lnet/minecraft/class_332;Lnet/minecraft/class_2680;)V
      official a Lfoc;a(Lfhh;Ldsl;)V
    • getTextScale

      protected abstract Vector3f getTextScale()
      Mappings:
      Namespace Name Mixin selector
      named getTextScale Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;getTextScale()Lorg/joml/Vector3f;
      intermediary method_45661 Lnet/minecraft/class_7743;method_45661()Lorg/joml/Vector3f;
      official m Lfoc;m()Lorg/joml/Vector3f;
    • translateForRender

      protected void translateForRender(DrawContext context, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named translateForRender Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;translateForRender(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/block/BlockState;)V
      intermediary method_45654 Lnet/minecraft/class_7743;method_45654(Lnet/minecraft/class_332;Lnet/minecraft/class_2680;)V
      official b Lfoc;b(Lfhh;Ldsl;)V
    • renderSign

      private void renderSign(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      named renderSign Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSign(Lnet/minecraft/client/gui/DrawContext;)V
      intermediary method_45659 Lnet/minecraft/class_7743;method_45659(Lnet/minecraft/class_332;)V
      official c Lfoc;c(Lfhh;)V
    • renderSignText

      private void renderSignText(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      named renderSignText Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSignText(Lnet/minecraft/client/gui/DrawContext;)V
      intermediary method_45655 Lnet/minecraft/class_7743;method_45655(Lnet/minecraft/class_332;)V
      official d Lfoc;d(Lfhh;)V
    • setCurrentRowMessage

      private void setCurrentRowMessage(String message)
      Mappings:
      Namespace Name Mixin selector
      named setCurrentRowMessage Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;setCurrentRowMessage(Ljava/lang/String;)V
      intermediary method_49913 Lnet/minecraft/class_7743;method_49913(Ljava/lang/String;)V
      official a Lfoc;a(Ljava/lang/String;)V
    • finishEditing

      private void finishEditing()
      Mappings:
      Namespace Name Mixin selector
      named finishEditing Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;finishEditing()V
      intermediary method_45662 Lnet/minecraft/class_7743;method_45662()V
      official E Lfoc;E()V