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 Vector2fprivate intprivate static final intprivate final String[]private @Nullable IMEPreeditOverlayprotected final SignBlockEntityprivate final TextFieldHelperprivate final SignTextSlotprivate final SignText.Mutableprivate final intprotected 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, SignTextSlot slot, boolean shouldFilter) AbstractSignEditScreen(SignBlockEntity sign, SignTextSlot slot, 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, Vector2f cursorPosOutput) protected abstract Vector3fcprotected abstract floatprotected voidinit()booleanbooleanbooleanprivate booleanisValid()booleankeyPressed(KeyEvent event) voidonClose()private voidonDone()booleanpreeditUpdated(@Nullable PreeditEvent event) voidremoved()private voidsetMessage(String newMessage) 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, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, repositionElements, resize, scheduleNarration, 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
capturesInput, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
LINE_COUNT
private static final int LINE_COUNT- See Also:
-
sign
-
text
-
messages
-
slot
-
textColor
private final int textColor -
woodType
-
cursorBlinkStartTime
private long cursorBlinkStartTime -
line
private int line -
signField
-
preeditOverlay
-
cursorPosScratch
-
-
Constructor Details
-
AbstractSignEditScreen
-
AbstractSignEditScreen
public AbstractSignEditScreen(SignBlockEntity sign, SignTextSlot slot, boolean shouldFilter, Component title)
-
-
Method Details
-
init
-
tick
-
isValid
private boolean isValid() -
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
isInputCaptured
public boolean isInputCaptured()- Overrides:
isInputCapturedin 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
-
getSignYOffset
protected abstract float getSignYOffset() -
extractSign
-
extractSignText
-
setMessage
-
onDone
private void onDone()
-