本文整理匯總了Java中net.minecraft.util.text.TextFormatting.DARK_PURPLE屬性的典型用法代碼示例。如果您正苦於以下問題:Java TextFormatting.DARK_PURPLE屬性的具體用法?Java TextFormatting.DARK_PURPLE怎麽用?Java TextFormatting.DARK_PURPLE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraft.util.text.TextFormatting
的用法示例。
在下文中一共展示了TextFormatting.DARK_PURPLE屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getItemStackDisplayName
@Override
public String getItemStackDisplayName(ItemStack stack) {
if (ItemFromData.getData(stack) == BLANK_DATA)
return "Weapon";
String name = ItemFromData.getData(stack).getString(PropertyType.NAME);
if (stack.getTagCompound().getBoolean("Strange"))
name = TextFormatting.GOLD
+ TF2EventsCommon.STRANGE_TITLES[stack.getTagCompound().getInteger("StrangeLevel")] + " "
+ name;
if (stack.getTagCompound().getBoolean("Australium"))
name = TextFormatting.GOLD + "Australium " + name;
if (stack.getTagCompound().getBoolean("Valve"))
name = TextFormatting.DARK_PURPLE + "Valve " + name;
return name;
}
示例2: getItemStackDisplayName
@Override
public String getItemStackDisplayName(ItemStack stack) {
String name = super.getItemStackDisplayName(stack);
if (stack.hasTagCompound() && stack.getTagCompound().hasKey("UEffect"))
name = TextFormatting.DARK_PURPLE + "Unusual " + name;
return name;
}
示例3: ItemNotebook
public ItemNotebook(String name)
{
super(name, TextFormatting.DARK_PURPLE);
maxStackSize = 1;
}