Class SignEditScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.SignEditScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class SignEditScreen extends Screen
- Mappings:
Namespace Name official dxg
intermediary net/minecraft/class_498
named net/minecraft/client/gui/screen/ingame/SignEditScreen
-
Field Summary
Fields Modifier and Type Field Description private int
currentRow
private SignBlockEntityRenderer.SignModel
model
private SelectionManager
selectionManager
private SignBlockEntity
sign
private SignType
signType
private String[]
text
private int
ticksSinceOpened
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description SignEditScreen(SignBlockEntity sign)
-
Method Summary
Modifier and Type Method Description boolean
charTyped(char chr, int modifiers)
Callback for when a character input has been captured.private void
finishEditing()
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
onClose()
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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.ParentElement
changeFocus, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
sign
- Mappings:
Namespace Name Mixin selector official a
Ldxg;a:Lcgr;
intermediary field_3031
Lnet/minecraft/class_498;field_3031:Lnet/minecraft/class_2625;
named sign
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;sign:Lnet/minecraft/block/entity/SignBlockEntity;
-
ticksSinceOpened
private int ticksSinceOpened- Mappings:
Namespace Name Mixin selector official b
Ldxg;b:I
intermediary field_3030
Lnet/minecraft/class_498;field_3030:I
named ticksSinceOpened
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;ticksSinceOpened:I
-
currentRow
private int currentRow- Mappings:
Namespace Name Mixin selector official c
Ldxg;c:I
intermediary field_3029
Lnet/minecraft/class_498;field_3029:I
named currentRow
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;currentRow:I
-
selectionManager
- Mappings:
Namespace Name Mixin selector official p
Ldxg;p:Ldtj;
intermediary field_3032
Lnet/minecraft/class_498;field_3032:Lnet/minecraft/class_3728;
named selectionManager
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;selectionManager:Lnet/minecraft/client/util/SelectionManager;
-
signType
- Mappings:
Namespace Name Mixin selector official q
Ldxg;q:Lcjf;
intermediary field_27390
Lnet/minecraft/class_498;field_27390:Lnet/minecraft/class_4719;
named signType
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;signType:Lnet/minecraft/util/SignType;
-
model
- Mappings:
Namespace Name Mixin selector official r
Ldxg;r:Lejz$a;
intermediary field_21525
Lnet/minecraft/class_498;field_21525:Lnet/minecraft/class_837$class_4702;
named model
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;model:Lnet/minecraft/client/render/block/entity/SignBlockEntityRenderer$SignModel;
-
text
- Mappings:
Namespace Name Mixin selector official s
Ldxg;s:[Ljava/lang/String;
intermediary field_24285
Lnet/minecraft/class_498;field_24285:[Ljava/lang/String;
named text
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;text:[Ljava/lang/String;
-
-
Constructor Details
-
SignEditScreen
- Mappings:
Namespace Name Mixin selector official <init>
Ldxg;<init>(Lcgr;)V
intermediary <init>
Lnet/minecraft/class_498;<init>(Lnet/minecraft/class_2625;)V
named <init>
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;<init>(Lnet/minecraft/block/entity/SignBlockEntity;)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.
-
removed
public void removed() -
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classScreen
- Mappings:
Namespace Name Mixin selector official d
Ldsn;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/TickableElement;tick()V
-
finishEditing
private void finishEditing()- Mappings:
Namespace Name Mixin selector official h
Ldxg;h()V
intermediary method_2526
Lnet/minecraft/class_498;method_2526()V
named finishEditing
Lnet/minecraft/client/gui/screen/ingame/SignEditScreen;finishEditing()V
-
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:
Keyboard.onChar(long, int, int)
,GLFW.GLFW_KEY_Q
,GLFWKeyCallbackI.invoke(long, int, int, int, int)
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(CI)Z
intermediary method_25400
Lnet/minecraft/class_364;method_25400(CI)Z
named charTyped
Lnet/minecraft/client/gui/Element;charTyped(CI)Z
-
onClose
public void onClose() -
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:
Keyboard.onKey(long, int, int, int, int)
,GLFW.GLFW_KEY_Q
,GLFWKeyCallbackI.invoke(long, int, int, int, int)
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-