本文整理汇总了Java中net.minecraft.util.EnumChatFormatting.OBFUSCATED属性的典型用法代码示例。如果您正苦于以下问题:Java EnumChatFormatting.OBFUSCATED属性的具体用法?Java EnumChatFormatting.OBFUSCATED怎么用?Java EnumChatFormatting.OBFUSCATED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.minecraft.util.EnumChatFormatting
的用法示例。
在下文中一共展示了EnumChatFormatting.OBFUSCATED属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawSlot
protected void drawSlot(int entryID, int p_180791_2_, int p_180791_3_, int p_180791_4_, int mouseXIn, int mouseYIn)
{
IngestServer ingestserver = this.mc.getTwitchStream().func_152925_v()[entryID];
String s = ingestserver.serverUrl.replaceAll("\\{stream_key\\}", "");
String s1 = (int)ingestserver.bitrateKbps + " kbps";
String s2 = null;
IngestServerTester ingestservertester = this.mc.getTwitchStream().func_152932_y();
if (ingestservertester != null)
{
if (ingestserver == ingestservertester.func_153040_c())
{
s = EnumChatFormatting.GREEN + s;
s1 = (int)(ingestservertester.func_153030_h() * 100.0F) + "%";
}
else if (entryID < ingestservertester.func_153028_p())
{
if (ingestserver.bitrateKbps == 0.0F)
{
s1 = EnumChatFormatting.RED + "Down!";
}
}
else
{
s1 = EnumChatFormatting.OBFUSCATED + "1234" + EnumChatFormatting.RESET + " kbps";
}
}
else if (ingestserver.bitrateKbps == 0.0F)
{
s1 = EnumChatFormatting.RED + "Down!";
}
p_180791_2_ = p_180791_2_ - 15;
if (this.isSelected(entryID))
{
s2 = EnumChatFormatting.BLUE + "(Preferred)";
}
else if (ingestserver.defaultServer)
{
s2 = EnumChatFormatting.GREEN + "(Default)";
}
GuiIngestServers.this.drawString(GuiIngestServers.this.fontRendererObj, ingestserver.serverName, p_180791_2_ + 2, p_180791_3_ + 5, 16777215);
GuiIngestServers.this.drawString(GuiIngestServers.this.fontRendererObj, s, p_180791_2_ + 2, p_180791_3_ + GuiIngestServers.this.fontRendererObj.FONT_HEIGHT + 5 + 3, 3158064);
GuiIngestServers.this.drawString(GuiIngestServers.this.fontRendererObj, s1, this.getScrollBarX() - 5 - GuiIngestServers.this.fontRendererObj.getStringWidth(s1), p_180791_3_ + 5, 8421504);
if (s2 != null)
{
GuiIngestServers.this.drawString(GuiIngestServers.this.fontRendererObj, s2, this.getScrollBarX() - 5 - GuiIngestServers.this.fontRendererObj.getStringWidth(s2), p_180791_3_ + 5 + 3 + GuiIngestServers.this.fontRendererObj.FONT_HEIGHT, 8421504);
}
}