当前位置: 首页>>代码示例>>Java>>正文


Java GuiNewChat.deleteChatLine方法代码示例

本文整理汇总了Java中net.minecraft.client.gui.GuiNewChat.deleteChatLine方法的典型用法代码示例。如果您正苦于以下问题:Java GuiNewChat.deleteChatLine方法的具体用法?Java GuiNewChat.deleteChatLine怎么用?Java GuiNewChat.deleteChatLine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.client.gui.GuiNewChat的用法示例。


在下文中一共展示了GuiNewChat.deleteChatLine方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: sendNoSpamMessages

import net.minecraft.client.gui.GuiNewChat; //导入方法依赖的package包/类
private static void sendNoSpamMessages(ITextComponent[] messages)
{
    GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
    for (int i = DELETION_ID + messages.length - 1; i <= lastAdded; i++)
    {
        chat.deleteChatLine(i);
    }
    for (int i = 0; i < messages.length; i++)
    {
        chat.printChatMessageWithOptionalDeletion(messages[i], DELETION_ID + i);
    }
    lastAdded = DELETION_ID + messages.length - 1;
}
 
开发者ID:talandar,项目名称:ProgressiveDifficulty,代码行数:14,代码来源:ChatUtil.java

示例2: addChat

import net.minecraft.client.gui.GuiNewChat; //导入方法依赖的package包/类
private static synchronized void addChat(final IChatComponent[] chat) {
    final GuiNewChat chatGUI = Minecraft.getMinecraft().ingameGUI.getChatGUI();
    for (int i = 0; i < chat.length; ++i) {
        final IChatComponent iChatComponent = chat[i];
        chatGUI.printChatMessageWithOptionalDeletion(iChatComponent, 983423323 + i);
    }
    for (int i = chat.length; i < PacketTempChatMultiline.lastNum; ++i) {
        chatGUI.deleteChatLine(983423323 + i);
    }
    PacketTempChatMultiline.lastNum = Math.max(PacketTempChatMultiline.lastNum, chat.length);
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:12,代码来源:PacketTempChatMultiline.java

示例3: sendNoSpamMessages

import net.minecraft.client.gui.GuiNewChat; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
private static void sendNoSpamMessages(ITextComponent[] messages) {
	GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
	for (int i = DELETION_ID + messages.length - 1;i <= lastAdded;i++) {
		chat.deleteChatLine(i);
	}
	for (int i = 0;i < messages.length;i++) {
		chat.printChatMessageWithOptionalDeletion(messages[i], DELETION_ID + i);
	}
	lastAdded = DELETION_ID + messages.length - 1;
}
 
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:12,代码来源:TomsModUtils.java

示例4: sendNoSpamMessages

import net.minecraft.client.gui.GuiNewChat; //导入方法依赖的package包/类
private static void sendNoSpamMessages(IChatComponent[] messages) {
  GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
  for (int i = DELETION_ID + messages.length - 1; i <= lastAdded; i++) {
    chat.deleteChatLine(i);
  }
  for (int i = 0; i < messages.length; i++) {
    chat.printChatMessageWithOptionalDeletion(messages[i], DELETION_ID + i);
  }
  lastAdded = DELETION_ID + messages.length - 1;
}
 
开发者ID:SleepyTrousers,项目名称:EnderCore,代码行数:11,代码来源:ChatUtil.java

示例5: displayChatMessages

import net.minecraft.client.gui.GuiNewChat; //导入方法依赖的package包/类
private static void displayChatMessages(ITextComponent[] messages) {
    GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
    for (int i = DELETION_ID + messages.length - 1; i <= lastAdded; i++) {
        chat.deleteChatLine(i);
    }

    for (int i = 0; i < messages.length; i++) {
        chat.printChatMessageWithOptionalDeletion(messages[i], DELETION_ID + i);
    }

    lastAdded = DELETION_ID + messages.length - 1;
}
 
开发者ID:joshiejack,项目名称:Progression,代码行数:13,代码来源:ChatHelper.java

示例6: sendNoSpamMessages

import net.minecraft.client.gui.GuiNewChat; //导入方法依赖的package包/类
private static void sendNoSpamMessages(ITextComponent[] messages)
{
	GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
	for (int i = DELETION_ID + messages.length - 1; i <= lastAdded; i++)
	{
		chat.deleteChatLine(i);
	}
	for (int i = 0; i < messages.length; i++)
	{
		chat.printChatMessageWithOptionalDeletion(messages[i], DELETION_ID + i);
	}
	lastAdded = DELETION_ID + messages.length - 1;
}
 
开发者ID:Xilef11,项目名称:Runes-of-Wizardry,代码行数:14,代码来源:ChatUtils.java


注:本文中的net.minecraft.client.gui.GuiNewChat.deleteChatLine方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。