本文整理汇总了Java中tv.twitch.chat.ChatUserSubscription类的典型用法代码示例。如果您正苦于以下问题:Java ChatUserSubscription类的具体用法?Java ChatUserSubscription怎么用?Java ChatUserSubscription使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ChatUserSubscription类属于tv.twitch.chat包,在下文中一共展示了ChatUserSubscription类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_152328_a
import tv.twitch.chat.ChatUserSubscription; //导入依赖的package包/类
public static List<IChatComponent> func_152328_a(Set<ChatUserMode> p_152328_0_, Set<ChatUserSubscription> p_152328_1_, IStream p_152328_2_)
{
String s = p_152328_2_ == null ? null : p_152328_2_.func_152921_C();
boolean flag = p_152328_2_ != null && p_152328_2_.func_152927_B();
List<IChatComponent> list = Lists.<IChatComponent>newArrayList();
for (ChatUserMode chatusermode : p_152328_0_)
{
IChatComponent ichatcomponent = func_152329_a(chatusermode, s, flag);
if (ichatcomponent != null)
{
IChatComponent ichatcomponent1 = new ChatComponentText("- ");
ichatcomponent1.appendSibling(ichatcomponent);
list.add(ichatcomponent1);
}
}
for (ChatUserSubscription chatusersubscription : p_152328_1_)
{
IChatComponent ichatcomponent2 = func_152330_a(chatusersubscription, s, flag);
if (ichatcomponent2 != null)
{
IChatComponent ichatcomponent3 = new ChatComponentText("- ");
ichatcomponent3.appendSibling(ichatcomponent2);
list.add(ichatcomponent3);
}
}
return list;
}
示例2: func_152328_a
import tv.twitch.chat.ChatUserSubscription; //导入依赖的package包/类
public static List func_152328_a(Set p_152328_0_, Set p_152328_1_, IStream p_152328_2_)
{
String s = p_152328_2_ == null ? null : p_152328_2_.func_152921_C();
boolean flag = p_152328_2_ != null && p_152328_2_.func_152927_B();
ArrayList arraylist = Lists.newArrayList();
Iterator iterator = p_152328_0_.iterator();
IChatComponent ichatcomponent;
ChatComponentText chatcomponenttext;
while (iterator.hasNext())
{
ChatUserMode chatusermode = (ChatUserMode)iterator.next();
ichatcomponent = func_152329_a(chatusermode, s, flag);
if (ichatcomponent != null)
{
chatcomponenttext = new ChatComponentText("- ");
chatcomponenttext.appendSibling(ichatcomponent);
arraylist.add(chatcomponenttext);
}
}
iterator = p_152328_1_.iterator();
while (iterator.hasNext())
{
ChatUserSubscription chatusersubscription = (ChatUserSubscription)iterator.next();
ichatcomponent = func_152330_a(chatusersubscription, s, flag);
if (ichatcomponent != null)
{
chatcomponenttext = new ChatComponentText("- ");
chatcomponenttext.appendSibling(ichatcomponent);
arraylist.add(chatcomponenttext);
}
}
return arraylist;
}
示例3: func_152330_a
import tv.twitch.chat.ChatUserSubscription; //导入依赖的package包/类
public static IChatComponent func_152330_a(ChatUserSubscription p_152330_0_, String p_152330_1_, boolean p_152330_2_)
{
ChatComponentTranslation chatcomponenttranslation = null;
if (p_152330_0_ == ChatUserSubscription.TTV_CHAT_USERSUB_SUBSCRIBER)
{
if (p_152330_1_ == null)
{
chatcomponenttranslation = new ChatComponentTranslation("stream.user.subscription.subscriber", new Object[0]);
}
else if (p_152330_2_)
{
chatcomponenttranslation = new ChatComponentTranslation("stream.user.subscription.subscriber.self", new Object[0]);
}
else
{
chatcomponenttranslation = new ChatComponentTranslation("stream.user.subscription.subscriber.other", new Object[] {p_152330_1_});
}
chatcomponenttranslation.getChatStyle().setColor(field_152331_a);
}
else if (p_152330_0_ == ChatUserSubscription.TTV_CHAT_USERSUB_TURBO)
{
chatcomponenttranslation = new ChatComponentTranslation("stream.user.subscription.turbo", new Object[0]);
chatcomponenttranslation.getChatStyle().setColor(field_152336_g);
}
return chatcomponenttranslation;
}
示例4: func_176028_a
import tv.twitch.chat.ChatUserSubscription; //导入依赖的package包/类
private boolean func_176028_a(Set<ChatUserMode> p_176028_1_, Set<ChatUserSubscription> p_176028_2_, int p_176028_3_)
{
return p_176028_1_.contains(ChatUserMode.TTV_CHAT_USERMODE_BANNED) ? false : (p_176028_1_.contains(ChatUserMode.TTV_CHAT_USERMODE_ADMINSTRATOR) ? true : (p_176028_1_.contains(ChatUserMode.TTV_CHAT_USERMODE_MODERATOR) ? true : (p_176028_1_.contains(ChatUserMode.TTV_CHAT_USERMODE_STAFF) ? true : (p_176028_3_ == 0 ? true : (p_176028_3_ == 1 ? p_176028_2_.contains(ChatUserSubscription.TTV_CHAT_USERSUB_SUBSCRIBER) : false)))));
}
示例5: func_152940_a
import tv.twitch.chat.ChatUserSubscription; //导入依赖的package包/类
private boolean func_152940_a(HashSet p_152940_1_, HashSet p_152940_2_, int p_152940_3_)
{
return p_152940_1_.contains(ChatUserMode.TTV_CHAT_USERMODE_BANNED) ? false : (p_152940_1_.contains(ChatUserMode.TTV_CHAT_USERMODE_ADMINSTRATOR) ? true : (p_152940_1_.contains(ChatUserMode.TTV_CHAT_USERMODE_MODERATOR) ? true : (p_152940_1_.contains(ChatUserMode.TTV_CHAT_USERMODE_STAFF) ? true : (p_152940_3_ == 0 ? true : (p_152940_3_ == 1 ? p_152940_2_.contains(ChatUserSubscription.TTV_CHAT_USERSUB_SUBSCRIBER) : false)))));
}