Package net.minecraft.client.gui.hud
Class ChatHud
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.hud.ChatHud
@Environment(CLIENT) public class ChatHud extends DrawableHelper
- Mappings:
Namespace Name official drv
intermediary net/minecraft/class_338
named net/minecraft/client/gui/hud/ChatHud
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClient
client
private boolean
hasUnreadNewMessages
private long
lastMessageAddedTime
private static Logger
LOGGER
private List<String>
messageHistory
private Deque<Text>
messageQueue
private List<ChatHudLine<Text>>
messages
private int
scrolledLines
private List<ChatHudLine<OrderedText>>
visibleMessages
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description ChatHud(MinecraftClient client)
-
Method Summary
Modifier and Type Method Description void
addMessage(Text message)
private void
addMessage(Text message, int messageId)
private void
addMessage(Text message, int messageId, int timestamp, boolean refresh)
void
addToMessageHistory(String message)
void
clear(boolean clearHistory)
private long
getChatDelayMillis()
double
getChatScale()
int
getHeight()
static int
getHeight(double heightOption)
List<String>
getMessageHistory()
private static double
getMessageOpacityMultiplier(int age)
Style
getText(double x, double y)
int
getVisibleLineCount()
int
getWidth()
static int
getWidth(double widthOption)
private boolean
isChatFocused()
private boolean
isChatHidden()
boolean
mouseClicked(double mouseX, double mouseY)
private void
processMessageQueue()
void
queueMessage(Text message)
private void
removeMessage(int messageId)
void
render(MatrixStack matrices, int tickDelta)
void
reset()
void
resetScroll()
void
scroll(double amount)
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldrv;a:Lorg/apache/logging/log4j/Logger;
intermediary field_2065
Lnet/minecraft/class_338;field_2065:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/gui/hud/ChatHud;LOGGER:Lorg/apache/logging/log4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector official b
Ldrv;b:Ldqk;
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 c
Ldrv;c: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 d
Ldrv;d: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 e
Ldrv;e: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 i
Ldrv;i: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 j
Ldrv;j: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 k
Ldrv;k: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 l
Ldrv;l: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>
Ldrv;<init>(Ldqk;)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
Ldrv;a(Ldlr;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
-
isChatHidden
private boolean isChatHidden()- Mappings:
Namespace Name Mixin selector official h
Ldrv;h()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 a
Ldrv;a(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
Ldrv;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
Ldrv;a(Loi;)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
Ldrv;a(Loi;I)V
intermediary method_1804
Lnet/minecraft/class_338;method_1804(Lnet/minecraft/class_2561;I)V
named addMessage
Lnet/minecraft/client/gui/hud/ChatHud;addMessage(Lnet/minecraft/text/Text;I)V
-
addMessage
- Mappings:
Namespace Name Mixin selector official a
Ldrv;a(Loi;IIZ)V
intermediary method_1815
Lnet/minecraft/class_338;method_1815(Lnet/minecraft/class_2561;IIZ)V
named addMessage
Lnet/minecraft/client/gui/hud/ChatHud;addMessage(Lnet/minecraft/text/Text;IIZ)V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector official a
Ldrv;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
Ldrv;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
Ldrv;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
Ldrv;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(double amount)- Mappings:
Namespace Name Mixin selector official a
Ldrv;a(D)V
intermediary method_1802
Lnet/minecraft/class_338;method_1802(D)V
named scroll
Lnet/minecraft/client/gui/hud/ChatHud;scroll(D)V
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY)- Mappings:
Namespace Name Mixin selector official a
Ldrv;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
-
getText
- Mappings:
Namespace Name Mixin selector official b
Ldrv;b(DD)Los;
intermediary method_1816
Lnet/minecraft/class_338;method_1816(DD)Lnet/minecraft/class_2583;
named getText
Lnet/minecraft/client/gui/hud/ChatHud;getText(DD)Lnet/minecraft/text/Style;
-
isChatFocused
private boolean isChatFocused()- Mappings:
Namespace Name Mixin selector official i
Ldrv;i()Z
intermediary method_1819
Lnet/minecraft/class_338;method_1819()Z
named isChatFocused
Lnet/minecraft/client/gui/hud/ChatHud;isChatFocused()Z
-
removeMessage
private void removeMessage(int messageId)- Mappings:
Namespace Name Mixin selector official b
Ldrv;b(I)V
intermediary method_1807
Lnet/minecraft/class_338;method_1807(I)V
named removeMessage
Lnet/minecraft/client/gui/hud/ChatHud;removeMessage(I)V
-
getWidth
public int getWidth()- Mappings:
Namespace Name Mixin selector official d
Ldrv;d()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 e
Ldrv;e()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 f
Ldrv;f()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 b
Ldrv;b(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 c
Ldrv;c(D)I
intermediary method_1818
Lnet/minecraft/class_338;method_1818(D)I
named getHeight
Lnet/minecraft/client/gui/hud/ChatHud;getHeight(D)I
-
getVisibleLineCount
public int getVisibleLineCount()- Mappings:
Namespace Name Mixin selector official g
Ldrv;g()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 j
Ldrv;j()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 k
Ldrv;k()V
intermediary method_27149
Lnet/minecraft/class_338;method_27149()V
named processMessageQueue
Lnet/minecraft/client/gui/hud/ChatHud;processMessageQueue()V
-
queueMessage
- Mappings:
Namespace Name Mixin selector official b
Ldrv;b(Loi;)V
intermediary method_27147
Lnet/minecraft/class_338;method_27147(Lnet/minecraft/class_2561;)V
named queueMessage
Lnet/minecraft/client/gui/hud/ChatHud;queueMessage(Lnet/minecraft/text/Text;)V
-