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 named net/minecraft/client/gui/screen/ingame/AbstractSignEditScreen
intermediary net/minecraft/class_7743
official foe
-
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, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, 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) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.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, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, clearTooltip, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getPanoramaTickDelta, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, 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
getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
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
Lfoe;b:Ldqs;
-
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
Lfoe;c:Ldqt;
-
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 d
Lfoe;d:[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
Lfoe;r:Z
-
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
Lfoe;a:Ldtq;
-
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
Lfoe;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
Lfoe;u:I
-
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
Lfoe;v:Lfjz;
-
-
Constructor Details
-
AbstractSignEditScreen
- 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>
Lfoe;<init>(Ldqs;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>
Lfoe;<init>(Ldqs;ZZLxp;)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. -
tick
public void tick() -
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 E
Lfoe;E()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 named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfjb;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 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 named charTyped
Lnet/minecraft/client/gui/Element;charTyped(CI)Z
intermediary method_25400
Lnet/minecraft/class_364;method_25400(CI)Z
official a
Lfjb;a(CI)Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- 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
Lfii;a(Lfgs;IIF)V
-
renderBackground
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 classScreen
- 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
Lfne;b(Lfgs;IIF)V
-
close
public void close() -
removed
public void removed() -
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- 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
Lfne;k()Z
-
renderSignBackground
- 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
Lfoe;a(Lfgs;Ldsd;)V
-
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
Lfoe;m()Lorg/joml/Vector3f;
-
translateForRender
- 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
Lfoe;b(Lfgs;Ldsd;)V
-
renderSign
- 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
Lfoe;c(Lfgs;)V
-
renderSignText
- 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
Lfoe;d(Lfgs;)V
-
setCurrentRowMessage
- 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
Lfoe;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 F
Lfoe;F()V
-