Package net.minecraft.client.gui.screens
Class ChatScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.ChatScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement
- Direct Known Subclasses:
- InBedChatScreen
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.DeferredTooltipRendering, Screen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) CommandSuggestionsprivate Stringprivate intprivate Stringprotected EditBoxstatic final doubleprivate static final intprivate static final ComponentFields inherited from class net.minecraft.client.gui.screens.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate StylegetComponentStyleAt(double p_232702_, double p_232703_) booleanhandleChatInput(String p_242400_, boolean p_242161_) protected voidinit()protected voidinsertText(String p_95606_, boolean p_95607_) booleanbooleankeyPressed(int p_95591_, int p_95592_, int p_95593_) booleanmouseClicked(double p_95585_, double p_95586_, int p_95587_) booleanmouseScrolled(double p_95581_, double p_95582_, double p_95583_, double p_295977_) voidmoveInHistory(int p_95589_) normalizeChatMessage(String p_232707_) private voidvoidremoved()voidrender(GuiGraphics p_282470_, int p_282674_, int p_282014_, float p_283132_) voidrenderBackground(GuiGraphics p_295929_, int p_296130_, int p_296353_, float p_294668_) voidprivate voidsetChatLine(String p_95613_) protected voidupdateNarrationState(NarrationElementOutput p_169238_) Methods inherited from class net.minecraft.client.gui.screens.Screenadded, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
MOUSE_SCROLL_SPEEDpublic static final double MOUSE_SCROLL_SPEED- See Also:
 
- 
USAGE_TEXT
- 
TOOLTIP_MAX_WIDTHprivate static final int TOOLTIP_MAX_WIDTH- See Also:
 
- 
historyBuffer
- 
historyPosprivate int historyPos
- 
input
- 
initial
- 
commandSuggestionsCommandSuggestions commandSuggestions
 
- 
- 
Constructor Details- 
ChatScreen
 
- 
- 
Method Details- 
initprotected void init()
- 
resize
- 
removedpublic void removed()
- 
onEdited
- 
keyPressedpublic boolean keyPressed(int p_95591_, int p_95592_, int p_95593_) - Specified by:
- keyPressedin interface- ContainerEventHandler
- Specified by:
- keyPressedin interface- GuiEventListener
- Overrides:
- keyPressedin class- Screen
 
- 
mouseScrolledpublic boolean mouseScrolled(double p_95581_, double p_95582_, double p_95583_, double p_295977_) 
- 
mouseClickedpublic boolean mouseClicked(double p_95585_, double p_95586_, int p_95587_) 
- 
insertText- Overrides:
- insertTextin class- Screen
 
- 
moveInHistorypublic void moveInHistory(int p_95589_) 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- Screen
 
- 
renderBackground- Overrides:
- renderBackgroundin class- Screen
 
- 
isPauseScreenpublic boolean isPauseScreen()- Overrides:
- isPauseScreenin class- Screen
 
- 
setChatLine
- 
updateNarrationState- Overrides:
- updateNarrationStatein class- Screen
 
- 
getComponentStyleAt
- 
handleChatInput
- 
normalizeChatMessage
 
-