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 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final boolean
private int
private final String[]
private final SignBlockEntity
private TextFieldHelper
private SignText
protected final WoodType
Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionAbstractSignEditScreen
(SignBlockEntity p_277842_, boolean p_277719_, boolean p_277969_) AbstractSignEditScreen
(SignBlockEntity p_277792_, boolean p_277607_, boolean p_278039_, Component p_277393_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char p_252008_, int p_251178_) protected abstract org.joml.Vector3f
protected void
init()
boolean
private boolean
isValid()
boolean
keyPressed
(int p_252300_, int p_250424_, int p_250697_) protected void
offsetSign
(GuiGraphics p_282672_, BlockState p_283056_) void
onClose()
private void
onDone()
void
removed()
void
render
(GuiGraphics p_282418_, int p_281700_, int p_283040_, float p_282799_) private void
renderSign
(GuiGraphics p_282006_) protected abstract void
renderSignBackground
(GuiGraphics p_281459_, BlockState p_250054_) private void
renderSignText
(GuiGraphics p_282366_) private void
setMessage
(String p_277913_) void
tick()
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
sign
-
text
-
messages
-
isFrontText
private final boolean isFrontText -
woodType
-
frame
private int frame -
line
private int line -
signField
-
-
Constructor Details
-
AbstractSignEditScreen
-
AbstractSignEditScreen
public AbstractSignEditScreen(SignBlockEntity p_277792_, boolean p_277607_, boolean p_278039_, Component p_277393_)
-
-
Method Details
-
init
protected void init() -
tick
public void tick() -
isValid
private boolean isValid() -
keyPressed
public boolean keyPressed(int p_252300_, int p_250424_, int p_250697_) - Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
-
charTyped
public boolean charTyped(char p_252008_, int p_251178_) -
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
onClose
public void onClose() -
removed
public void removed() -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
-
renderSignBackground
-
getSignTextScale
protected abstract org.joml.Vector3f getSignTextScale() -
offsetSign
-
renderSign
-
renderSignText
-
setMessage
-
onDone
private void onDone()
-