Package net.minecraft.client.gui.hud
Class ChatHud
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.hud.ChatHud
Responsible for rendering various game messages such as chat messages or
join/leave messages.
- See Also:
- Mappings:
Namespace Name official egu
intermediary net/minecraft/class_338
named net/minecraft/client/gui/hud/ChatHud
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClient
private static final int
private static final int
private static final int
private boolean
private long
private static final org.slf4j.Logger
private static final int
private final Deque<ChatHud.class_7593>
private final List<ChatHudLine>
private int
private final List<ChatHudLine.class_7590>
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(Text message) private void
addMessage
(Text message, int messageId, @Nullable class_7591 class_7591, boolean refresh) void
addMessage
(Text message, @Nullable class_7591 class_7591) void
addToMessageHistory
(String message) void
clear
(boolean clearHistory) private long
double
static double
int
static int
getHeight
(double heightOption) private static double
getMessageOpacityMultiplier
(int age) getTextStyleAt
(double x, double y) int
int
getWidth()
static int
getWidth
(double widthOption) private boolean
private boolean
private boolean
method_44718
(double double2, ChatHudLine.class_7590 class_7590, class_7591 class_7591) private void
method_44719
(MatrixStack matrixStack, int int2, int int3, class_7591.class_7592 class_7592) private int
method_44720
(ChatHudLine.class_7590 class_7590) void
method_44721
(Text text) private double
method_44722
(double double2) method_44723
(double double2, double double3) private double
method_44724
(double double2) private int
method_44725
(double double2) boolean
mouseClicked
(double mouseX, double mouseY) private void
void
queueMessage
(Text message, @Nullable class_7591 class_7591) void
render
(MatrixStack matrices, int tickDelta) void
reset()
void
void
scroll
(int scroll) 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
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official a
Legu;a:Lorg/slf4j/Logger;
intermediary field_2065
Lnet/minecraft/class_338;field_2065:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/gui/hud/ChatHud;LOGGER:Lorg/slf4j/Logger;
-
MAX_MESSAGES
private static final int MAX_MESSAGES- See Also:
- Mappings:
Namespace Name Mixin selector official b
Legu;b:I
intermediary field_32180
Lnet/minecraft/class_338;field_32180:I
named MAX_MESSAGES
Lnet/minecraft/client/gui/hud/ChatHud;MAX_MESSAGES:I
-
field_39771
private static final int field_39771- See Also:
- Mappings:
Namespace Name Mixin selector official c
Legu;c:I
intermediary field_39771
Lnet/minecraft/class_338;field_39771:I
named field_39771
Lnet/minecraft/client/gui/hud/ChatHud;field_39771:I
-
field_39772
private static final int field_39772- See Also:
- Mappings:
Namespace Name Mixin selector official d
Legu;d:I
intermediary field_39772
Lnet/minecraft/class_338;field_39772:I
named field_39772
Lnet/minecraft/client/gui/hud/ChatHud;field_39772:I
-
field_39773
private static final int field_39773- See Also:
- Mappings:
Namespace Name Mixin selector official e
Legu;e:I
intermediary field_39773
Lnet/minecraft/class_338;field_39773:I
named field_39773
Lnet/minecraft/client/gui/hud/ChatHud;field_39773:I
-
client
- Mappings:
Namespace Name Mixin selector official f
Legu;f:Leez;
intermediary field_2062
Lnet/minecraft/class_338;field_2062:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/hud/ChatHud;client:Lnet/minecraft/client/MinecraftClient;
-
messageHistory
- Mappings:
Namespace Name Mixin selector official j
Legu;j:Ljava/util/List;
intermediary field_2063
Lnet/minecraft/class_338;field_2063:Ljava/util/List;
named messageHistory
Lnet/minecraft/client/gui/hud/ChatHud;messageHistory:Ljava/util/List;
-
messages
- Mappings:
Namespace Name Mixin selector official k
Legu;k:Ljava/util/List;
intermediary field_2061
Lnet/minecraft/class_338;field_2061:Ljava/util/List;
named messages
Lnet/minecraft/client/gui/hud/ChatHud;messages:Ljava/util/List;
-
visibleMessages
- Mappings:
Namespace Name Mixin selector official l
Legu;l:Ljava/util/List;
intermediary field_2064
Lnet/minecraft/class_338;field_2064:Ljava/util/List;
named visibleMessages
Lnet/minecraft/client/gui/hud/ChatHud;visibleMessages:Ljava/util/List;
-
messageQueue
- Mappings:
Namespace Name Mixin selector official m
Legu;m:Ljava/util/Deque;
intermediary field_23934
Lnet/minecraft/class_338;field_23934:Ljava/util/Deque;
named messageQueue
Lnet/minecraft/client/gui/hud/ChatHud;messageQueue:Ljava/util/Deque;
-
scrolledLines
private int scrolledLines- Mappings:
Namespace Name Mixin selector official n
Legu;n:I
intermediary field_2066
Lnet/minecraft/class_338;field_2066:I
named scrolledLines
Lnet/minecraft/client/gui/hud/ChatHud;scrolledLines:I
-
hasUnreadNewMessages
private boolean hasUnreadNewMessages- Mappings:
Namespace Name Mixin selector official o
Legu;o:Z
intermediary field_2067
Lnet/minecraft/class_338;field_2067:Z
named hasUnreadNewMessages
Lnet/minecraft/client/gui/hud/ChatHud;hasUnreadNewMessages:Z
-
lastMessageAddedTime
private long lastMessageAddedTime- Mappings:
Namespace Name Mixin selector official p
Legu;p:J
intermediary field_23935
Lnet/minecraft/class_338;field_23935:J
named lastMessageAddedTime
Lnet/minecraft/client/gui/hud/ChatHud;lastMessageAddedTime:J
-
-
Constructor Details
-
ChatHud
- Mappings:
Namespace Name Mixin selector official <init>
Legu;<init>(Leez;)V
intermediary <init>
Lnet/minecraft/class_338;<init>(Lnet/minecraft/class_310;)V
named <init>
Lnet/minecraft/client/gui/hud/ChatHud;<init>(Lnet/minecraft/client/MinecraftClient;)V
-
-
Method Details
-
render
- Mappings:
Namespace Name Mixin selector official a
Legu;a(Ldzv;I)V
intermediary method_1805
Lnet/minecraft/class_338;method_1805(Lnet/minecraft/class_4587;I)V
named render
Lnet/minecraft/client/gui/hud/ChatHud;render(Lnet/minecraft/client/util/math/MatrixStack;I)V
-
method_44719
private void method_44719(MatrixStack matrixStack, int int2, int int3, class_7591.class_7592 class_7592) - Mappings:
Namespace Name Mixin selector official a
Legu;a(Ldzv;IILeev$a;)V
intermediary method_44719
Lnet/minecraft/class_338;method_44719(Lnet/minecraft/class_4587;IILnet/minecraft/class_7591$class_7592;)V
named method_44719
Lnet/minecraft/client/gui/hud/ChatHud;method_44719(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/class_7591$class_7592;)V
-
method_44720
- Mappings:
Namespace Name Mixin selector official a
Legu;a(Leeu$a;)I
intermediary method_44720
Lnet/minecraft/class_338;method_44720(Lnet/minecraft/class_303$class_7590;)I
named method_44720
Lnet/minecraft/client/gui/hud/ChatHud;method_44720(Lnet/minecraft/client/gui/hud/ChatHudLine$class_7590;)I
-
isChatHidden
private boolean isChatHidden()- Mappings:
Namespace Name Mixin selector official j
Legu;j()Z
intermediary method_23677
Lnet/minecraft/class_338;method_23677()Z
named isChatHidden
Lnet/minecraft/client/gui/hud/ChatHud;isChatHidden()Z
-
getMessageOpacityMultiplier
private static double getMessageOpacityMultiplier(int age) - Mappings:
Namespace Name Mixin selector official b
Legu;b(I)D
intermediary method_19348
Lnet/minecraft/class_338;method_19348(I)D
named getMessageOpacityMultiplier
Lnet/minecraft/client/gui/hud/ChatHud;getMessageOpacityMultiplier(I)D
-
clear
public void clear(boolean clearHistory) - Mappings:
Namespace Name Mixin selector official a
Legu;a(Z)V
intermediary method_1808
Lnet/minecraft/class_338;method_1808(Z)V
named clear
Lnet/minecraft/client/gui/hud/ChatHud;clear(Z)V
-
addMessage
- Mappings:
Namespace Name Mixin selector official a
Legu;a(Lrm;)V
intermediary method_1812
Lnet/minecraft/class_338;method_1812(Lnet/minecraft/class_2561;)V
named addMessage
Lnet/minecraft/client/gui/hud/ChatHud;addMessage(Lnet/minecraft/text/Text;)V
-
addMessage
- Mappings:
Namespace Name Mixin selector official a
Legu;a(Lrm;Leev;)V
intermediary method_1804
Lnet/minecraft/class_338;method_1804(Lnet/minecraft/class_2561;Lnet/minecraft/class_7591;)V
named addMessage
Lnet/minecraft/client/gui/hud/ChatHud;addMessage(Lnet/minecraft/text/Text;Lnet/minecraft/class_7591;)V
-
addMessage
private void addMessage(Text message, int messageId, @Nullable @Nullable class_7591 class_7591, boolean refresh) - Mappings:
Namespace Name Mixin selector official a
Legu;a(Lrm;ILeev;Z)V
intermediary method_1815
Lnet/minecraft/class_338;method_1815(Lnet/minecraft/class_2561;ILnet/minecraft/class_7591;Z)V
named addMessage
Lnet/minecraft/client/gui/hud/ChatHud;addMessage(Lnet/minecraft/text/Text;ILnet/minecraft/class_7591;Z)V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector official a
Legu;a()V
intermediary method_1817
Lnet/minecraft/class_338;method_1817()V
named reset
Lnet/minecraft/client/gui/hud/ChatHud;reset()V
-
getMessageHistory
- Mappings:
Namespace Name Mixin selector official b
Legu;b()Ljava/util/List;
intermediary method_1809
Lnet/minecraft/class_338;method_1809()Ljava/util/List;
named getMessageHistory
Lnet/minecraft/client/gui/hud/ChatHud;getMessageHistory()Ljava/util/List;
-
addToMessageHistory
- Mappings:
Namespace Name Mixin selector official a
Legu;a(Ljava/lang/String;)V
intermediary method_1803
Lnet/minecraft/class_338;method_1803(Ljava/lang/String;)V
named addToMessageHistory
Lnet/minecraft/client/gui/hud/ChatHud;addToMessageHistory(Ljava/lang/String;)V
-
resetScroll
public void resetScroll()- Mappings:
Namespace Name Mixin selector official c
Legu;c()V
intermediary method_1820
Lnet/minecraft/class_338;method_1820()V
named resetScroll
Lnet/minecraft/client/gui/hud/ChatHud;resetScroll()V
-
scroll
public void scroll(int scroll) - Mappings:
Namespace Name Mixin selector official a
Legu;a(I)V
intermediary method_1802
Lnet/minecraft/class_338;method_1802(I)V
named scroll
Lnet/minecraft/client/gui/hud/ChatHud;scroll(I)V
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY) - Mappings:
Namespace Name Mixin selector official a
Legu;a(DD)Z
intermediary method_27146
Lnet/minecraft/class_338;method_27146(DD)Z
named mouseClicked
Lnet/minecraft/client/gui/hud/ChatHud;mouseClicked(DD)Z
-
getTextStyleAt
- Mappings:
Namespace Name Mixin selector official b
Legu;b(DD)Lrv;
intermediary method_1816
Lnet/minecraft/class_338;method_1816(DD)Lnet/minecraft/class_2583;
named getTextStyleAt
Lnet/minecraft/client/gui/hud/ChatHud;getTextStyleAt(DD)Lnet/minecraft/text/Style;
-
method_44723
- Mappings:
Namespace Name Mixin selector official c
Legu;c(DD)Leev;
intermediary method_44723
Lnet/minecraft/class_338;method_44723(DD)Lnet/minecraft/class_7591;
named method_44723
Lnet/minecraft/client/gui/hud/ChatHud;method_44723(DD)Lnet/minecraft/class_7591;
-
method_44718
private boolean method_44718(double double2, ChatHudLine.class_7590 class_7590, class_7591 class_7591) - Mappings:
Namespace Name Mixin selector official a
Legu;a(DLeeu$a;Leev;)Z
intermediary method_44718
Lnet/minecraft/class_338;method_44718(DLnet/minecraft/class_303$class_7590;Lnet/minecraft/class_7591;)Z
named method_44718
Lnet/minecraft/client/gui/hud/ChatHud;method_44718(DLnet/minecraft/client/gui/hud/ChatHudLine$class_7590;Lnet/minecraft/class_7591;)Z
-
method_44722
private double method_44722(double double2) - Mappings:
Namespace Name Mixin selector official c
Legu;c(D)D
intermediary method_44722
Lnet/minecraft/class_338;method_44722(D)D
named method_44722
Lnet/minecraft/client/gui/hud/ChatHud;method_44722(D)D
-
method_44724
private double method_44724(double double2) - Mappings:
Namespace Name Mixin selector official d
Legu;d(D)D
intermediary method_44724
Lnet/minecraft/class_338;method_44724(D)D
named method_44724
Lnet/minecraft/client/gui/hud/ChatHud;method_44724(D)D
-
method_44725
private int method_44725(double double2) - Mappings:
Namespace Name Mixin selector official e
Legu;e(D)I
intermediary method_44725
Lnet/minecraft/class_338;method_44725(D)I
named method_44725
Lnet/minecraft/client/gui/hud/ChatHud;method_44725(D)I
-
getChatScreen
- Mappings:
Namespace Name Mixin selector official d
Legu;d()Lejk;
intermediary method_44047
Lnet/minecraft/class_338;method_44047()Lnet/minecraft/class_408;
named getChatScreen
Lnet/minecraft/client/gui/hud/ChatHud;getChatScreen()Lnet/minecraft/client/gui/screen/ChatScreen;
-
isChatFocused
private boolean isChatFocused()- Mappings:
Namespace Name Mixin selector official k
Legu;k()Z
intermediary method_1819
Lnet/minecraft/class_338;method_1819()Z
named isChatFocused
Lnet/minecraft/client/gui/hud/ChatHud;isChatFocused()Z
-
getWidth
public int getWidth()- Mappings:
Namespace Name Mixin selector official e
Legu;e()I
intermediary method_1811
Lnet/minecraft/class_338;method_1811()I
named getWidth
Lnet/minecraft/client/gui/hud/ChatHud;getWidth()I
-
getHeight
public int getHeight()- Mappings:
Namespace Name Mixin selector official f
Legu;f()I
intermediary method_1810
Lnet/minecraft/class_338;method_1810()I
named getHeight
Lnet/minecraft/client/gui/hud/ChatHud;getHeight()I
-
getChatScale
public double getChatScale()- Mappings:
Namespace Name Mixin selector official g
Legu;g()D
intermediary method_1814
Lnet/minecraft/class_338;method_1814()D
named getChatScale
Lnet/minecraft/client/gui/hud/ChatHud;getChatScale()D
-
getWidth
public static int getWidth(double widthOption) - Mappings:
Namespace Name Mixin selector official a
Legu;a(D)I
intermediary method_1806
Lnet/minecraft/class_338;method_1806(D)I
named getWidth
Lnet/minecraft/client/gui/hud/ChatHud;getWidth(D)I
-
getHeight
public static int getHeight(double heightOption) - Mappings:
Namespace Name Mixin selector official b
Legu;b(D)I
intermediary method_1818
Lnet/minecraft/class_338;method_1818(D)I
named getHeight
Lnet/minecraft/client/gui/hud/ChatHud;getHeight(D)I
-
getDefaultUnfocusedHeight
public static double getDefaultUnfocusedHeight()- Mappings:
Namespace Name Mixin selector official h
Legu;h()D
intermediary method_41831
Lnet/minecraft/class_338;method_41831()D
named getDefaultUnfocusedHeight
Lnet/minecraft/client/gui/hud/ChatHud;getDefaultUnfocusedHeight()D
-
getVisibleLineCount
public int getVisibleLineCount()- Mappings:
Namespace Name Mixin selector official i
Legu;i()I
intermediary method_1813
Lnet/minecraft/class_338;method_1813()I
named getVisibleLineCount
Lnet/minecraft/client/gui/hud/ChatHud;getVisibleLineCount()I
-
getChatDelayMillis
private long getChatDelayMillis()- Mappings:
Namespace Name Mixin selector official n
Legu;n()J
intermediary method_27148
Lnet/minecraft/class_338;method_27148()J
named getChatDelayMillis
Lnet/minecraft/client/gui/hud/ChatHud;getChatDelayMillis()J
-
processMessageQueue
private void processMessageQueue()- Mappings:
Namespace Name Mixin selector official o
Legu;o()V
intermediary method_27149
Lnet/minecraft/class_338;method_27149()V
named processMessageQueue
Lnet/minecraft/client/gui/hud/ChatHud;processMessageQueue()V
-
method_44721
- Mappings:
Namespace Name Mixin selector official b
Legu;b(Lrm;)V
intermediary method_44721
Lnet/minecraft/class_338;method_44721(Lnet/minecraft/class_2561;)V
named method_44721
Lnet/minecraft/client/gui/hud/ChatHud;method_44721(Lnet/minecraft/text/Text;)V
-
queueMessage
- Mappings:
Namespace Name Mixin selector official b
Legu;b(Lrm;Leev;)V
intermediary method_27147
Lnet/minecraft/class_338;method_27147(Lnet/minecraft/class_2561;Lnet/minecraft/class_7591;)V
named queueMessage
Lnet/minecraft/client/gui/hud/ChatHud;queueMessage(Lnet/minecraft/text/Text;Lnet/minecraft/class_7591;)V
-