Java Code Examples for net.minecraft.util.text.TextFormatting#RESET
The following examples show how to use
net.minecraft.util.text.TextFormatting#RESET .
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: ItemMobHarness.java From enderutilities with GNU Lesser General Public License v3.0 | 5 votes |
@Override public String getItemStackDisplayName(ItemStack stack) { if (stack.getTagCompound() == null || this.hasTarget(stack) == false) { return super.getItemStackDisplayName(stack); } String target = stack.getTagCompound().getString("TargetName"); return super.getItemStackDisplayName(stack) + " " + TextFormatting.GREEN + target + TextFormatting.RESET + TextFormatting.WHITE; }
Example 2
Source File: MiscUtils.java From OpenModsLib with MIT License | 5 votes |
public static String getTranslatedFluidName(FluidStack fluidStack) { if (fluidStack == null) return ""; final Fluid fluid = fluidStack.getFluid(); String localizedName = fluid.getLocalizedName(fluidStack); if (!Strings.isNullOrEmpty(localizedName) && !localizedName.equals(fluid.getUnlocalizedName())) { return fluid.getRarity(fluidStack).rarityColor.toString() + localizedName; } else { return TextFormatting.OBFUSCATED + "LOLNOPE" + TextFormatting.RESET; } }
Example 3
Source File: WorktableGui.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
public String getToastHeader() { return TextFormatting.YELLOW.toString() + getSpellName() + TextFormatting.RESET + "\n\n"; }
Example 4
Source File: Tooltips.java From TinkersToolLeveling with MIT License | 4 votes |
public static String getLevelString(int level) { return getLevelColor(level) + getRawLevelString(level) + TextFormatting.RESET; }