package ValkyrienWarfareBase.API.Block.Engine;

import java.util.List;

import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextFormatting;

/**
 * The same as a normal engine, but says speed in the tooltip
 */
public abstract class BlockAirshipEngineLore extends BlockAirshipEngine {

	String[] lore;

	public BlockAirshipEngineLore(Material materialIn, double enginePower) {
		super(materialIn, enginePower);
		lore = new String[] { TextFormatting.BOLD + "" + TextFormatting.GRAY + TextFormatting.ITALIC + "Power:", "  " + this.getEnginePowerTooltip(), "" };
	}

	@Override
	public void addInformation(ItemStack stack, EntityPlayer player, List itemInformation, boolean par4) {
		for (String s : lore)	{
			itemInformation.add(s);
		}
	}
	
	public abstract String getEnginePowerTooltip();
}

package ValkyrienWarfareBase.API.Block.Engine;

import java.util.List;

import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextFormatting;

/**
 * The same as a normal engine, but says speed in the tooltip
 */
public abstract class BlockAirshipEngineLore extends BlockAirshipEngine {

	String[] lore;

	public BlockAirshipEngineLore(Material materialIn, double enginePower) {
		super(materialIn, enginePower);
		lore = new String[] { "" + TextFormatting.GRAY + TextFormatting.ITALIC + TextFormatting.BOLD + "Power:", "  " + this.getEnginePowerTooltip() };
	}

	@Override
	public void addInformation(ItemStack stack, EntityPlayer player, List itemInformation, boolean par4) {
		for (String s : lore) {
			itemInformation.add(s);
		}
	}

	public abstract String getEnginePowerTooltip();
}

make formatting look nicer