Class AbstractSignEditScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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 int
protected final String[]
protected final SignBlockEntity
private TextFieldHelper
protected final WoodType
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionAbstractSignEditScreen
(SignBlockEntity p_251089_, boolean p_251797_) AbstractSignEditScreen
(SignBlockEntity p_248630_, boolean p_252232_, Component p_248522_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char p_252008_, int p_251178_) protected abstract org.joml.Vector3f
protected void
init()
boolean
keyPressed
(int p_252300_, int p_250424_, int p_250697_) protected void
offsetSign
(PoseStack p_248687_, BlockState p_250435_) void
onClose()
private void
onDone()
void
removed()
void
private void
renderSign
(PoseStack p_252304_) protected abstract void
renderSignBackground
(PoseStack p_250452_, MultiBufferSource.BufferSource p_250160_, BlockState p_250054_) private void
renderSignText
(PoseStack p_250711_, MultiBufferSource.BufferSource p_250502_) void
tick()
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, 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 net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLine
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
-
messages
-
woodType
-
frame
private int frame -
line
private int line -
signField
-
-
Constructor Details
-
AbstractSignEditScreen
-
AbstractSignEditScreen
-
-
Method Details
-
init
protected void init() -
removed
public void removed() -
tick
public void tick() -
onDone
private void onDone() -
charTyped
public boolean charTyped(char p_252008_, int p_251178_) -
onClose
public void onClose() -
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
-
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
renderSignBackground
protected abstract void renderSignBackground(PoseStack p_250452_, MultiBufferSource.BufferSource p_250160_, BlockState p_250054_) -
getSignTextScale
protected abstract org.joml.Vector3f getSignTextScale() -
offsetSign
-
renderSign
-
renderSignText
-