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 Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescription(package private) CommandSuggestions
private String
private int
private String
protected EditBox
static final double
private static final int
private static final Component
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
-
Method Summary
Modifier and TypeMethodDescriptionprivate Style
getComponentStyleAt
(double p_232702_, double p_232703_) boolean
handleChatInput
(String p_242400_, boolean p_242161_) protected void
init()
protected void
insertText
(String p_95606_, boolean p_95607_) boolean
boolean
keyPressed
(int p_95591_, int p_95592_, int p_95593_) boolean
mouseClicked
(double p_95585_, double p_95586_, int p_95587_) boolean
mouseScrolled
(double p_95581_, double p_95582_, double p_95583_, double p_295977_) void
moveInHistory
(int p_95589_) normalizeChatMessage
(String p_232707_) private void
void
removed()
void
render
(GuiGraphics p_282470_, int p_282674_, int p_282014_, float p_283132_) void
renderBackground
(GuiGraphics p_295929_, int p_296130_, int p_296353_, float p_294668_) void
private void
setChatLine
(String p_95613_) protected void
updateNarrationState
(NarrationElementOutput p_169238_) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, 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, 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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, 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
-
MOUSE_SCROLL_SPEED
public static final double MOUSE_SCROLL_SPEED- See Also:
-
USAGE_TEXT
-
TOOLTIP_MAX_WIDTH
private static final int TOOLTIP_MAX_WIDTH- See Also:
-
historyBuffer
-
historyPos
private int historyPos -
input
-
initial
-
commandSuggestions
CommandSuggestions commandSuggestions
-
-
Constructor Details
-
ChatScreen
-
-
Method Details
-
init
protected void init() -
resize
-
removed
public void removed() -
onEdited
-
keyPressed
public boolean keyPressed(int p_95591_, int p_95592_, int p_95593_) - Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
-
mouseScrolled
public boolean mouseScrolled(double p_95581_, double p_95582_, double p_95583_, double p_295977_) -
mouseClicked
public boolean mouseClicked(double p_95585_, double p_95586_, int p_95587_) -
insertText
- Overrides:
insertText
in classScreen
-
moveInHistory
public void moveInHistory(int p_95589_) -
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
renderBackground
- Overrides:
renderBackground
in classScreen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
-
setChatLine
-
updateNarrationState
- Overrides:
updateNarrationState
in classScreen
-
getComponentStyleAt
-
handleChatInput
-
normalizeChatMessage
-