Package net.minecraft.client.gui
Class NewChatGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.NewChatGui
-
public class NewChatGui extends AbstractGui
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ChatLine<ITextComponent>>
allMessages
private java.util.Deque<ITextComponent>
chatQueue
private int
chatScrollbarPos
private long
lastMessage
private static org.apache.logging.log4j.Logger
LOGGER
private Minecraft
minecraft
private boolean
newMessageSinceScroll
private java.util.List<java.lang.String>
recentChat
private java.util.List<ChatLine<IReorderingProcessor>>
trimmedMessages
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description NewChatGui(Minecraft p_i1022_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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(java.lang.String p_146239_1_)
void
clearMessages(boolean p_146231_1_)
void
enqueueMessage(ITextComponent p_238495_1_)
private long
getChatRateMillis()
Style
getClickedComponentStyleAt(double p_238494_1_, double p_238494_3_)
int
getHeight()
static int
getHeight(double p_194816_0_)
int
getLinesPerPage()
java.util.List<java.lang.String>
getRecentChat()
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
isChatFocused()
private boolean
isChatHidden()
private void
processPendingMessages()
private void
removeById(int p_146242_1_)
void
render(MatrixStack p_238492_1_, int p_238492_2_)
void
rescaleChat()
void
resetChatScroll()
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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
minecraft
private final Minecraft minecraft
-
recentChat
private final java.util.List<java.lang.String> recentChat
-
allMessages
private final java.util.List<ChatLine<ITextComponent>> allMessages
-
trimmedMessages
private final java.util.List<ChatLine<IReorderingProcessor>> trimmedMessages
-
chatQueue
private final java.util.Deque<ITextComponent> chatQueue
-
chatScrollbarPos
private int chatScrollbarPos
-
newMessageSinceScroll
private boolean newMessageSinceScroll
-
lastMessage
private long lastMessage
-
-
Constructor Detail
-
NewChatGui
public NewChatGui(Minecraft p_i1022_1_)
-
-
Method Detail
-
render
public void render(MatrixStack p_238492_1_, int p_238492_2_)
-
isChatHidden
private boolean isChatHidden()
-
getTimeFactor
private static double getTimeFactor(int p_212915_0_)
-
clearMessages
public void clearMessages(boolean p_146231_1_)
-
addMessage
public void addMessage(ITextComponent p_146227_1_)
-
addMessage
private void addMessage(ITextComponent p_146234_1_, int p_146234_2_)
-
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
public java.util.List<java.lang.String> getRecentChat()
-
addRecentChat
public void addRecentChat(java.lang.String p_146239_1_)
-
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
@Nullable public Style getClickedComponentStyleAt(double p_238494_1_, double p_238494_3_)
-
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
public void enqueueMessage(ITextComponent p_238495_1_)
-
-