Package net.minecraft.client.gui
Class NewChatGui
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.NewChatGui
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ChatLine<ITextComponent>>private final Deque<ITextComponent>private intprivate longprivate static final org.apache.logging.log4j.Loggerprivate final Minecraftprivate booleanprivate final List<ChatLine<IReorderingProcessor>>Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(ITextComponent p_146227_1_) private voidaddMessage(ITextComponent p_146234_1_, int p_146234_2_) private voidaddMessage(ITextComponent p_238493_1_, int p_238493_2_, int p_238493_3_, boolean p_238493_4_) voidaddRecentChat(String p_146239_1_) voidclearMessages(boolean p_146231_1_) voidenqueueMessage(ITextComponent p_238495_1_) private longgetClickedComponentStyleAt(double p_238494_1_, double p_238494_3_) intstatic intgetHeight(double p_194816_0_) intdoublegetScale()private static doublegetTimeFactor(int p_212915_0_) intgetWidth()static intgetWidth(double p_194814_0_) booleanhandleChatQueueClicked(double p_238491_1_, double p_238491_3_) private booleanprivate booleanprivate voidprivate voidremoveById(int p_146242_1_) voidrender(MatrixStack p_238492_1_, int p_238492_2_) voidvoidvoidscrollChat(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
-