Package net.minecraft.client.gui
Class NewChatGui
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.NewChatGui
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<ChatLine<ITextComponent>>
private final Deque<ITextComponent>
private int
private long
private static final org.apache.logging.log4j.Logger
private final Minecraft
private boolean
private final List<ChatLine<IReorderingProcessor>>
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(ITextComponent p_146227_1_) private void
addMessage
(ITextComponent p_146234_1_, int p_146234_2_) private void
addMessage
(ITextComponent p_238493_1_, int p_238493_2_, int p_238493_3_, boolean p_238493_4_) void
addRecentChat
(String p_146239_1_) void
clearMessages
(boolean p_146231_1_) void
enqueueMessage
(ITextComponent p_238495_1_) private long
getClickedComponentStyleAt
(double p_238494_1_, double p_238494_3_) int
static int
getHeight
(double p_194816_0_) int
double
getScale()
private static double
getTimeFactor
(int p_212915_0_) int
getWidth()
static int
getWidth
(double p_194814_0_) boolean
handleChatQueueClicked
(double p_238491_1_, double p_238491_3_) private boolean
private boolean
private void
private void
removeById
(int p_146242_1_) void
render
(MatrixStack p_238492_1_, int p_238492_2_) void
void
void
scrollChat
(double p_194813_1_) Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
minecraft
-
recentChat
-
allMessages
-
trimmedMessages
-
chatQueue
-
chatScrollbarPos
private int chatScrollbarPos -
newMessageSinceScroll
private boolean newMessageSinceScroll -
lastMessage
private long lastMessage
-
-
Constructor Details
-
NewChatGui
-
-
Method Details
-
render
-
isChatHidden
private boolean isChatHidden() -
getTimeFactor
private static double getTimeFactor(int p_212915_0_) -
clearMessages
public void clearMessages(boolean p_146231_1_) -
addMessage
-
addMessage
-
addMessage
private void addMessage(ITextComponent p_238493_1_, int p_238493_2_, int p_238493_3_, boolean p_238493_4_) -
rescaleChat
public void rescaleChat() -
getRecentChat
-
addRecentChat
-
resetChatScroll
public void resetChatScroll() -
scrollChat
public void scrollChat(double p_194813_1_) -
handleChatQueueClicked
public boolean handleChatQueueClicked(double p_238491_1_, double p_238491_3_) -
getClickedComponentStyleAt
-
isChatFocused
private boolean isChatFocused() -
removeById
private void removeById(int p_146242_1_) -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getScale
public double getScale() -
getWidth
public static int getWidth(double p_194814_0_) -
getHeight
public static int getHeight(double p_194816_0_) -
getLinesPerPage
public int getLinesPerPage() -
getChatRateMillis
private long getChatRateMillis() -
processPendingMessages
private void processPendingMessages() -
enqueueMessage
-