本文整理匯總了Java中net.minecraft.util.EnumChatFormatting.BOLD屬性的典型用法代碼示例。如果您正苦於以下問題:Java EnumChatFormatting.BOLD屬性的具體用法?Java EnumChatFormatting.BOLD怎麽用?Java EnumChatFormatting.BOLD使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraft.util.EnumChatFormatting
的用法示例。
在下文中一共展示了EnumChatFormatting.BOLD屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: drawCountDown
@Override
protected void drawCountDown(int secondsRemaining)
{
Map<String, String> data = new HashMap<String, String>();
String text = EnumChatFormatting.BOLD + "" + secondsRemaining + "...";
if (secondsRemaining <= 5)
text = EnumChatFormatting.RED + text;
data.put("chat", text);
MalmoMod.safeSendToAll(MalmoMessageType.SERVER_TEXT, data);
}
示例2: drawListHeader
/**
* Handles drawing a list's header row.
*/
protected void drawListHeader(int p_148129_1_, int p_148129_2_, Tessellator p_148129_3_)
{
String s = EnumChatFormatting.UNDERLINE + "" + EnumChatFormatting.BOLD + this.getListHeader();
this.mc.fontRendererObj.drawString(s, p_148129_1_ + this.width / 2 - this.mc.fontRendererObj.getStringWidth(s) / 2, Math.min(this.top + 3, p_148129_2_), 16777215);
}