use of net.minecraft.util.text.Style in project Railcraft by Railcraft.
the class CommandHelpers method printHelp.
public static void printHelp(ICommandSender sender, IModCommand command) {
Style header = new Style();
header.setColor(TextFormatting.BLUE);
sendLocalizedChatMessage(sender, header, "command.railcraft." + command.getFullString().replace(" ", ".").replace('_', '.') + ".format", command.getFullString());
Style body = new Style();
body.setColor(TextFormatting.GRAY);
sendLocalizedChatMessage(sender, body, "command.railcraft.aliases", command.getAliases().toString().replace("[", "").replace("]", ""));
sendLocalizedChatMessage(sender, body, "command.railcraft.permlevel", command.getPermissionLevel());
sendLocalizedChatMessage(sender, body, "command.railcraft." + command.getFullString().replace(" ", ".").replace('_', '.') + ".help");
if (!command.getChildren().isEmpty()) {
sendLocalizedChatMessage(sender, "command.railcraft.list");
for (SubCommand child : command.getChildren()) {
sendLocalizedChatMessage(sender, "command.railcraft." + child.getFullString().replace(" ", ".").replace('_', '.') + ".desc", child.getName());
}
}
}
use of net.minecraft.util.text.Style in project GregTech by GregTechCE.
the class VacuumFreezerInfo method generateBlockTooltips.
@Override
protected void generateBlockTooltips() {
super.generateBlockTooltips();
ITextComponent tooltip = new TextComponentTranslation("gregtech.multiblock.preview.limit", 14).setStyle(new Style().setColor(TextFormatting.AQUA));
addBlockTooltip(MetaBlocks.METAL_CASING.getItemVariant(MetalCasingType.ALUMINIUM_FROSTPROOF), tooltip);
}
use of net.minecraft.util.text.Style in project GregTech by GregTechCE.
the class CrackerUnitInfo method generateBlockTooltips.
@Override
protected void generateBlockTooltips() {
super.generateBlockTooltips();
ITextComponent tooltip = new TextComponentTranslation("gregtech.multiblock.preview.limit", 20).setStyle(new Style().setColor(TextFormatting.AQUA));
addBlockTooltip(MetaBlocks.METAL_CASING.getItemVariant(BlockMetalCasing.MetalCasingType.STAINLESS_CLEAN), tooltip);
}
use of net.minecraft.util.text.Style in project GregTech by GregTechCE.
the class DistillationTowerInfo method generateBlockTooltips.
@Override
protected void generateBlockTooltips() {
super.generateBlockTooltips();
ITextComponent tooltip = new TextComponentTranslation("gregtech.multiblock.preview.limit_per_layer", 1).setStyle(new Style().setColor(TextFormatting.DARK_RED));
ITextComponent inputTooltip = new TextComponentTranslation("gregtech.multiblock.preview.only_location", I18n.format("gregtech.multiblock.preview.location.b_c")).setStyle(new Style().setColor(TextFormatting.DARK_RED));
for (int i = 0; i < GTValues.V.length; i++) {
addBlockTooltip(MetaTileEntities.FLUID_EXPORT_HATCH[i].getStackForm(), tooltip);
addBlockTooltip(MetaTileEntities.FLUID_IMPORT_HATCH[i].getStackForm(), inputTooltip);
}
}
use of net.minecraft.util.text.Style in project GregTech by GregTechCE.
the class PyrolyzeOvenInfo method generateBlockTooltips.
@Override
protected void generateBlockTooltips() {
super.generateBlockTooltips();
ItemStack coils = MetaBlocks.WIRE_COIL.getItemVariant(BlockWireCoil.CoilType.CUPRONICKEL);
ITextComponent tooltip = new TextComponentTranslation("gregtech.multiblock.preview.only", coils.getDisplayName()).setStyle(new Style().setColor(TextFormatting.RED));
addBlockTooltip(coils, tooltip);
}
Aggregations