Class AbstractSignEditScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractSignEditScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
- Direct Known Subclasses:
HangingSignEditScreen, SignEditScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate final org.joml.Vector2fprivate final booleanprivate intprivate final String[]private @Nullable IMEPreeditOverlayprotected final SignBlockEntityprivate @Nullable TextFieldHelperprivate SignTextprotected final WoodTypeFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSignEditScreen(SignBlockEntity sign, boolean isFrontText, boolean shouldFilter) AbstractSignEditScreen(SignBlockEntity sign, boolean isFrontText, boolean shouldFilter, Component title) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharTyped(CharacterEvent event) voidextractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) private voidextractSign(GuiGraphicsExtractor graphics) protected abstract voidextractSignBackground(GuiGraphicsExtractor graphics) private voidextractSignText(GuiGraphicsExtractor graphics, org.joml.Vector2f cursorPosOutput) protected abstract org.joml.Vector3fprotected abstract floatprotected voidinit()booleanbooleanprivate booleanisValid()booleankeyPressed(KeyEvent event) voidonClose()private voidonDone()booleanpreeditUpdated(@Nullable PreeditEvent event) voidremoved()private voidsetMessage(String message) voidtick()Methods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
sign
-
text
-
messages
-
isFrontText
private final boolean isFrontText -
woodType
-
cursorBlinkStartTime
private long cursorBlinkStartTime -
line
private int line -
signField
-
preeditOverlay
-
cursorPosScratch
private final org.joml.Vector2f cursorPosScratch
-
-
Constructor Details
-
AbstractSignEditScreen
-
AbstractSignEditScreen
public AbstractSignEditScreen(SignBlockEntity sign, boolean isFrontText, boolean shouldFilter, Component title)
-
-
Method Details
-
init
-
tick
-
isValid
private boolean isValid() -
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
charTyped
-
preeditUpdated
-
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable- Overrides:
extractRenderStatein classScreen
-
onClose
-
removed
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
isInGameUi
public boolean isInGameUi()- Overrides:
isInGameUiin classScreen
-
extractSignBackground
-
getSignTextScale
protected abstract org.joml.Vector3f getSignTextScale() -
getSignYOffset
protected abstract float getSignYOffset() -
extractSign
-
extractSignText
-
setMessage
-
onDone
private void onDone()
-