Package net.minecraft.client.gui.screen
Class SleepingChatScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ChatScreen
net.minecraft.client.gui.screen.SleepingChatScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement
- Mappings:
Namespace Name official ejsintermediary net/minecraft/class_423named net/minecraft/client/gui/screen/SleepingChatScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
Fields inherited from class net.minecraft.client.gui.screen.ChatScreen
chatField, commandSuggestor, SHIFT_SCROLL_AMOUNTFields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidprotected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.private voidMethods inherited from class net.minecraft.client.gui.screen.ChatScreen
addScreenNarrations, getChatPreviewer, insertText, mouseClicked, mouseScrolled, normalize, removed, render, renderChatPreview, resize, sendMessage, setChatFromHistory, shouldPause, tickMethods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, remove, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, shouldCloseOnEsc, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, setInitialFocus
-
Constructor Details
-
SleepingChatScreen
public SleepingChatScreen()
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
- Overrides:
initin classChatScreen- Mappings:
Namespace Name Mixin selector official bLekj;b()Vintermediary method_25426Lnet/minecraft/class_437;method_25426()Vnamed initLnet/minecraft/client/gui/screen/Screen;init()V
-
close
public void close() -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classChatScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLehq;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
stopSleeping
private void stopSleeping()- Mappings:
Namespace Name Mixin selector official xLejs;x()Vintermediary method_2180Lnet/minecraft/class_423;method_2180()Vnamed stopSleepingLnet/minecraft/client/gui/screen/SleepingChatScreen;stopSleeping()V
-
closeChatIfEmpty
public void closeChatIfEmpty()- Mappings:
Namespace Name Mixin selector official jLejs;j()Vintermediary method_38530Lnet/minecraft/class_423;method_38530()Vnamed closeChatIfEmptyLnet/minecraft/client/gui/screen/SleepingChatScreen;closeChatIfEmpty()V
-