本文整理汇总了Java中net.minecraft.client.gui.ChatLine.getUpdatedCounter方法的典型用法代码示例。如果您正苦于以下问题:Java ChatLine.getUpdatedCounter方法的具体用法?Java ChatLine.getUpdatedCounter怎么用?Java ChatLine.getUpdatedCounter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.client.gui.ChatLine
的用法示例。
在下文中一共展示了ChatLine.getUpdatedCounter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: applyChatLines
import net.minecraft.client.gui.ChatLine; //导入方法依赖的package包/类
public void applyChatLines(final @Nonnull List<ChatLine> lines) {
if (!lines.equals(this.linescache)) {
this.pendentryids.clear();
int updateCounterCreated = -1;
int chatLineID = -1;
{
final Set<EntryId> addedentries = Sets.newHashSet();
for (final ChatLine line : lines) {
updateCounterCreated = line.getUpdatedCounter();
chatLineID = line.getChatLineID();
final IChatComponent cc = line.func_151461_a();
final List<ClickEvent> clinks = getLinksFromChat(cc);
for (final ClickEvent clink : clinks) {
final EntryId entryid = new EntryIdBuilder().setURI(clink.getValue()).build();
if (!addedentries.contains(entryid))
this.pendentryids.add(entryid);
addedentries.add(entryid);
}
}
}
this.updateCounterCreated = updateCounterCreated;
this.chatLineID = chatLineID;
}
this.linescache = lines;
}
示例2: ChatMessage
import net.minecraft.client.gui.ChatLine; //导入方法依赖的package包/类
public ChatMessage(ChatLine chatline) {
this(chatline.getUpdatedCounter(), chatline.getChatComponent(), chatline.getChatLineID(), true);
}