Java Code Examples for net.minecraft.util.EnumChatFormatting.WHITE

The following are Jave code examples for showing how to use WHITE of the net.minecraft.util.EnumChatFormatting class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: HazardsLib   File: ClientEventHandler.java   Source Code and License Vote up 5 votes
public String getRadiationLine(PlayerTracker tracker)
  { 	
  	int rads = MathHelper.clamp_int(tracker.radiation, 0, PlayerTracker.RADIATION_INSTAKILL_DOSE);
  	
String full = "||||||||||||||||||||";
String rep = full.substring(0, (rads / 1000));
full = full.replace(rep, rep + EnumChatFormatting.BLACK);

return EnumChatFormatting.WHITE + "[ " + EnumChatFormatting.YELLOW + full + EnumChatFormatting.WHITE + " ]";
  }