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/AbstractSignEditScreenintermediary net/minecraft/class_7743official fov
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SignBlockEntityprivate intprivate final booleanprivate final String[]private @Nullable SelectionManagerprotected final WoodTypeprivate SignTextprivate intFields 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, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSignEditScreen(SignBlockEntity blockEntity, boolean front, boolean filtered) AbstractSignEditScreen(SignBlockEntity blockEntity, boolean front, boolean filtered, Text title) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanEdit()booleancharTyped(char chr, int modifiers) Callback for when a character input has been captured.voidclose()private voidprotected abstract Vector3fprotected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.voidremoved()voidrender(DrawContext context, int mouseX, int mouseY, float delta) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.private voidrenderSign(DrawContext context) protected abstract voidrenderSignBackground(DrawContext context, BlockState state) private voidrenderSignText(DrawContext context) private voidsetCurrentRowMessage(String message) booleanvoidtick()protected voidtranslateForRender(DrawContext context, BlockState state) Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods 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 blockEntityLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;blockEntity:Lnet/minecraft/block/entity/SignBlockEntity;intermediary field_40424Lnet/minecraft/class_7743;field_40424:Lnet/minecraft/class_2625;official bLfov;b:Ldrs;
-
text
- Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;text:Lnet/minecraft/block/entity/SignText;intermediary field_43362Lnet/minecraft/class_7743;field_43362:Lnet/minecraft/class_8242;official cLfov;c:Ldrt;
-
messages
- Mappings:
Namespace Name Mixin selector named messagesLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;messages:[Ljava/lang/String;intermediary field_40425Lnet/minecraft/class_7743;field_40425:[Ljava/lang/String;official rLfov;r:[Ljava/lang/String;
-
front
private final boolean front- Mappings:
Namespace Name Mixin selector named frontLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;front:Zintermediary field_43363Lnet/minecraft/class_7743;field_43363:Zofficial sLfov;s:Z
-
signType
- Mappings:
Namespace Name Mixin selector named signTypeLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;signType:Lnet/minecraft/block/WoodType;intermediary field_40426Lnet/minecraft/class_7743;field_40426:Lnet/minecraft/class_4719;official aLfov;a:Ldup;
-
ticksSinceOpened
private int ticksSinceOpened- Mappings:
Namespace Name Mixin selector named ticksSinceOpenedLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;ticksSinceOpened:Iintermediary field_40427Lnet/minecraft/class_7743;field_40427:Iofficial uLfov;u:I
-
currentRow
private int currentRow- Mappings:
Namespace Name Mixin selector named currentRowLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;currentRow:Iintermediary field_40428Lnet/minecraft/class_7743;field_40428:Iofficial vLfov;v:I
-
selectionManager
- Mappings:
Namespace Name Mixin selector named selectionManagerLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;selectionManager:Lnet/minecraft/client/util/SelectionManager;intermediary field_40429Lnet/minecraft/class_7743;field_40429:Lnet/minecraft/class_3728;official wLfov;w:Lflg;
-
-
Constructor Details
-
AbstractSignEditScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;<init>(Lnet/minecraft/block/entity/SignBlockEntity;ZZ)Vintermediary <init>Lnet/minecraft/class_7743;<init>(Lnet/minecraft/class_2625;ZZ)Vofficial <init>Lfov;<init>(Ldrs;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;)Vintermediary <init>Lnet/minecraft/class_7743;<init>(Lnet/minecraft/class_2625;ZZLnet/minecraft/class_2561;)Vofficial <init>Lfov;<init>(Ldrs;ZZLwz;)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 canEditLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;canEdit()Zintermediary method_49912Lnet/minecraft/class_7743;method_49912()Zofficial CLfov;C()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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- 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:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfki;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 inGLFWclass.- Parameters:
chr- the captured charactermodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named charTypedLnet/minecraft/client/gui/Element;charTyped(CI)Zintermediary method_25400Lnet/minecraft/class_364;method_25400(CI)Zofficial aLfki;a(CI)Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLfjp;a(Lfhz;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:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector named renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vofficial bLfod;b(Lfhz;IIF)V
-
close
public void close() -
removed
public void removed() -
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector named shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Zofficial kLfod;k()Z
-
renderSignBackground
- Mappings:
Namespace Name Mixin selector named renderSignBackgroundLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSignBackground(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/block/BlockState;)Vintermediary method_45656Lnet/minecraft/class_7743;method_45656(Lnet/minecraft/class_332;Lnet/minecraft/class_2680;)Vofficial aLfov;a(Lfhz;Ldtc;)V
-
getTextScale
- Mappings:
Namespace Name Mixin selector named getTextScaleLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;getTextScale()Lorg/joml/Vector3f;intermediary method_45661Lnet/minecraft/class_7743;method_45661()Lorg/joml/Vector3f;official mLfov;m()Lorg/joml/Vector3f;
-
translateForRender
- Mappings:
Namespace Name Mixin selector named translateForRenderLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;translateForRender(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/block/BlockState;)Vintermediary method_45654Lnet/minecraft/class_7743;method_45654(Lnet/minecraft/class_332;Lnet/minecraft/class_2680;)Vofficial bLfov;b(Lfhz;Ldtc;)V
-
renderSign
- Mappings:
Namespace Name Mixin selector named renderSignLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSign(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_45659Lnet/minecraft/class_7743;method_45659(Lnet/minecraft/class_332;)Vofficial cLfov;c(Lfhz;)V
-
renderSignText
- Mappings:
Namespace Name Mixin selector named renderSignTextLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;renderSignText(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_45655Lnet/minecraft/class_7743;method_45655(Lnet/minecraft/class_332;)Vofficial dLfov;d(Lfhz;)V
-
setCurrentRowMessage
- Mappings:
Namespace Name Mixin selector named setCurrentRowMessageLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;setCurrentRowMessage(Ljava/lang/String;)Vintermediary method_49913Lnet/minecraft/class_7743;method_49913(Ljava/lang/String;)Vofficial aLfov;a(Ljava/lang/String;)V
-
finishEditing
private void finishEditing()- Mappings:
Namespace Name Mixin selector named finishEditingLnet/minecraft/client/gui/screen/ingame/AbstractSignEditScreen;finishEditing()Vintermediary method_45662Lnet/minecraft/class_7743;method_45662()Vofficial DLfov;D()V
-