Class AbstractSignEditScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.AbstractSignEditScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Direct Known Subclasses:
HangingSignEditScreen
,SignEditScreen
- Mappings:
Namespace Name official eva
intermediary net/minecraft/class_7743
named net/minecraft/client/gui/screen/ingame/AbstractSignEditScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SignBlockEntity
private int
private final boolean
private final String[]
private @Nullable SelectionManager
protected final WoodType
private SignText
private int
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionAbstractSignEditScreen
(SignBlockEntity blockEntity, boolean front, boolean filtered) AbstractSignEditScreen
(SignBlockEntity blockEntity, boolean front, boolean filtered, Text title) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canEdit()
boolean
charTyped
(char chr, int modifiers) Callback for when a character input has been captured.void
close()
private void
protected abstract Vector3f
protected void
init()
Called when a screen should be initialized.boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.void
removed()
void
render
(DrawContext context, int mouseX, int mouseY, float delta) private void
renderSign
(DrawContext context) protected abstract void
renderSignBackground
(DrawContext context, BlockState state) private void
renderSignText
(DrawContext context) private void
setCurrentRowMessage
(String message) boolean
void
tick()
protected void
translateForRender
(DrawContext context, BlockState state) Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
blockEntity
- Mappings:
Namespace Name Mixin selector official b
Leva;b:Ldan;
intermediary field_40424
Lnet/minecraft/class_7743;field_40424:Lnet/minecraft/class_2625;
named blockEntity
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;blockEntity:Lnet/minecraft/block/entity/SignBlockEntity;
-
text
- Mappings:
Namespace Name Mixin selector official c
Leva;c:Ldao;
intermediary field_43362
Lnet/minecraft/class_7743;field_43362:Lnet/minecraft/class_8242;
named text
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;text:Lnet/minecraft/block/entity/SignText;
-
messages
- Mappings:
Namespace Name Mixin selector official j
Leva;j:[Ljava/lang/String;
intermediary field_40425
Lnet/minecraft/class_7743;field_40425:[Ljava/lang/String;
named messages
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;messages:[Ljava/lang/String;
-
front
private final boolean front- Mappings:
Namespace Name Mixin selector official k
Leva;k:Z
intermediary field_43363
Lnet/minecraft/class_7743;field_43363:Z
named front
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;front:Z
-
signType
- Mappings:
Namespace Name Mixin selector official a
Leva;a:Lddg;
intermediary field_40426
Lnet/minecraft/class_7743;field_40426:Lnet/minecraft/class_4719;
named signType
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;signType:Lnet/minecraft/block/WoodType;
-
ticksSinceOpened
private int ticksSinceOpened- Mappings:
Namespace Name Mixin selector official l
Leva;l:I
intermediary field_40427
Lnet/minecraft/class_7743;field_40427:I
named ticksSinceOpened
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;ticksSinceOpened:I
-
currentRow
private int currentRow- Mappings:
Namespace Name Mixin selector official m
Leva;m:I
intermediary field_40428
Lnet/minecraft/class_7743;field_40428:I
named currentRow
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;currentRow:I
-
selectionManager
- Mappings:
Namespace Name Mixin selector official n
Leva;n:Lerb;
intermediary field_40429
Lnet/minecraft/class_7743;field_40429:Lnet/minecraft/class_3728;
named selectionManager
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;selectionManager:Lnet/minecraft/client/util/SelectionManager;
-
-
Constructor Details
-
AbstractSignEditScreen
- Mappings:
Namespace Name Mixin selector official <init>
Leva;<init>(Ldan;ZZ)V
intermediary <init>
Lnet/minecraft/class_7743;<init>(Lnet/minecraft/class_2625;ZZ)V
named <init>
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;<init>(Lnet/minecraft/block/entity/SignBlockEntity;ZZ)V
-
AbstractSignEditScreen
public AbstractSignEditScreen(SignBlockEntity blockEntity, boolean front, boolean filtered, Text title) - Mappings:
Namespace Name Mixin selector official <init>
Leva;<init>(Ldan;ZZLsw;)V
intermediary <init>
Lnet/minecraft/class_7743;<init>(Lnet/minecraft/class_2625;ZZLnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;<init>(Lnet/minecraft/block/entity/SignBlockEntity;ZZLnet/minecraft/text/Text;)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(net.minecraft.client.gui.Element)
to set the element that is initially focused. -
tick
public void tick() -
canEdit
private boolean canEdit()- Mappings:
Namespace Name Mixin selector official B
Leva;B()Z
intermediary method_49912
Lnet/minecraft/class_7743;method_49912()Z
named canEdit
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;canEdit()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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- 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 official a
Leqe;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(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 inGLFW
class.- Parameters:
chr
- the captured charactermodifiers
- 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 official a
Leqe;a(CI)Z
intermediary method_25400
Lnet/minecraft/class_364;method_25400(CI)Z
named charTyped
Lnet/minecraft/client/gui/Element;charTyped(CI)Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Leps;a(Leoj;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
close
public void close() -
removed
public void removed() -
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- Mappings:
Namespace Name Mixin selector official az_
Leua;az_()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-
renderSignBackground
- Mappings:
Namespace Name Mixin selector official a
Leva;a(Leoj;Ldbt;)V
intermediary method_45656
Lnet/minecraft/class_7743;method_45656(Lnet/minecraft/class_332;Lnet/minecraft/class_2680;)V
named renderSignBackground
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSignBackground(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/block/BlockState;)V
-
getTextScale
- Mappings:
Namespace Name Mixin selector official l
Leva;l()Lorg/joml/Vector3f;
intermediary method_45661
Lnet/minecraft/class_7743;method_45661()Lorg/joml/Vector3f;
named getTextScale
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;getTextScale()Lorg/joml/Vector3f;
-
translateForRender
- Mappings:
Namespace Name Mixin selector official b
Leva;b(Leoj;Ldbt;)V
intermediary method_45654
Lnet/minecraft/class_7743;method_45654(Lnet/minecraft/class_332;Lnet/minecraft/class_2680;)V
named translateForRender
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;translateForRender(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/block/BlockState;)V
-
renderSign
- Mappings:
Namespace Name Mixin selector official c
Leva;c(Leoj;)V
intermediary method_45659
Lnet/minecraft/class_7743;method_45659(Lnet/minecraft/class_332;)V
named renderSign
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSign(Lnet/minecraft/client/gui/DrawContext;)V
-
renderSignText
- Mappings:
Namespace Name Mixin selector official d
Leva;d(Leoj;)V
intermediary method_45655
Lnet/minecraft/class_7743;method_45655(Lnet/minecraft/class_332;)V
named renderSignText
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSignText(Lnet/minecraft/client/gui/DrawContext;)V
-
setCurrentRowMessage
- Mappings:
Namespace Name Mixin selector official a
Leva;a(Ljava/lang/String;)V
intermediary method_49913
Lnet/minecraft/class_7743;method_49913(Ljava/lang/String;)V
named setCurrentRowMessage
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;setCurrentRowMessage(Ljava/lang/String;)V
-
finishEditing
private void finishEditing()- Mappings:
Namespace Name Mixin selector official C
Leva;C()V
intermediary method_45662
Lnet/minecraft/class_7743;method_45662()V
named finishEditing
Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;finishEditing()V
-