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 eok
intermediary net/minecraft/class_423
named 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, chatInputSuggestor, SHIFT_SCROLL_AMOUNT
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char chr, int modifiers) Callback for when a character input has been captured.void
close()
void
protected void
init()
Called when a screen should be initialized.boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.void
render
(MatrixStack matrices, int mouseX, int mouseY, float delta) private void
Methods inherited from class net.minecraft.client.gui.screen.ChatScreen
addScreenNarrations, insertText, mouseClicked, mouseScrolled, normalize, removed, resize, sendMessage, setChatFromHistory, shouldPause, tick
Methods 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, renderWithTooltip, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
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.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, setInitialFocus
-
Field Details
-
stopSleepingButton
- Mappings:
Namespace Name Mixin selector official c
Leok;c:Leky;
intermediary field_41710
Lnet/minecraft/class_423;field_41710:Lnet/minecraft/class_4185;
named stopSleepingButton
Lnet/minecraft/client/gui/screen/SleepingChatScreen;stopSleepingButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
-
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:
init
in classChatScreen
- Mappings:
Namespace Name Mixin selector official b
Lepb;b()V
intermediary method_25426
Lnet/minecraft/class_437;method_25426()V
named init
Lnet/minecraft/client/gui/screen/Screen;init()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classChatScreen
- Mappings:
Namespace Name Mixin selector official a
Lely;a(Leed;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
close
public void close() -
charTyped
public boolean charTyped(char chr, int modifiers) Callback for when a character input has been captured. The key code is identified by the constants inGLFW
class.- Parameters:
chr
- the captured charactermodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lemg;a(CI)Z
intermediary method_25400
Lnet/minecraft/class_364;method_25400(CI)Z
named charTyped
Lnet/minecraft/client/gui/Element;charTyped(CI)Z
-
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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classChatScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lemg;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
stopSleeping
private void stopSleeping()- Mappings:
Namespace Name Mixin selector official w
Leok;w()V
intermediary method_2180
Lnet/minecraft/class_423;method_2180()V
named stopSleeping
Lnet/minecraft/client/gui/screen/SleepingChatScreen;stopSleeping()V
-
closeChatIfEmpty
public void closeChatIfEmpty()- Mappings:
Namespace Name Mixin selector official i
Leok;i()V
intermediary method_38530
Lnet/minecraft/class_423;method_38530()V
named closeChatIfEmpty
Lnet/minecraft/client/gui/screen/SleepingChatScreen;closeChatIfEmpty()V
-