Java Code Examples for net.minecraft.util.text.TextFormatting#BOLD

The following examples show how to use net.minecraft.util.text.TextFormatting#BOLD . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BlockAirshipEngineLore.java    From Valkyrien-Skies with Apache License 2.0 5 votes vote down vote up
@Override
public void setEnginePower(double power) {
    super.setEnginePower(power);
    lore = new String[]{
        "" + TextFormatting.GRAY + TextFormatting.ITALIC + TextFormatting.BOLD + "Force:",
        "  " + this.getEnginePowerTooltip() + " Newtons"};
}
 
Example 2
Source File: ServerQuitFromTimeUpImplementation.java    From malmo with MIT License 5 votes vote down vote up
@Override
protected void drawCountDown(int secondsRemaining)
{
	Map<String, String> data = new HashMap<String, String>();
	
       String text = TextFormatting.BOLD + "" + secondsRemaining + "...";
       if (secondsRemaining <= 5)
           text = TextFormatting.RED + text;

	data.put("chat", text);
	MalmoMod.safeSendToAll(MalmoMessageType.SERVER_TEXT, data);
}
 
Example 3
Source File: GuiSubModList.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
protected void drawListHeader(int insideLeft, int insideTop, Tessellator tessellator)
{
    String s = TextFormatting.UNDERLINE + "" + TextFormatting.BOLD + header;
    mc.fontRenderer.drawString(s, insideLeft + width / 2 - mc.fontRenderer.getStringWidth(s) / 2, Math.min(top + 3, insideTop), 16777215);
}
 
Example 4
Source File: LocatedSectionString.java    From IGW-mod with GNU General Public License v2.0 2 votes vote down vote up
/**
 * A constructor for unlinked located strings. You can specify a color.
 * @param string
 * @param x
 * @param y
 * @param color
 * @param shadow
 */
public LocatedSectionString(String string, int x, int y, int color, boolean shadow){
    super(TextFormatting.BOLD + string, x, y, color, shadow);
    beforeFormat = string;
}
 
Example 5
Source File: LocatedSectionString.java    From IGW-mod with GNU General Public License v2.0 2 votes vote down vote up
/**
 * A constructor for unlinked located strings.
 * @param string
 * @param x
 * @param y
 * @param shadow
 */
public LocatedSectionString(String string, int x, int y, boolean shadow){
    super(TextFormatting.BOLD + string, x, y, 0, shadow);
    beforeFormat = string;
}