package com.vanhal.progressiveautomation.items.upgrades;
import java.util.List;
import com.vanhal.progressiveautomation.upgrades.UpgradeType;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.oredict.ShapedOreRecipe;
public class ItemFillerUpgrade extends ItemUpgrade {
public ItemFillerUpgrade() {
super("FillerUpgrade", UpgradeType.FILLER);
}
@Override
protected void addNormalRecipe() {
ShapedOreRecipe recipe = new ShapedOreRecipe(new ItemStack(this), new Object[]{
"ppp", "brb", "ppp", 'p', Blocks.STONE, 'r', Blocks.FURNACE, 'b', Items.BUCKET});
GameRegistry.addRecipe(recipe);
}
@Override
protected void addUpgradeRecipe() {
this.addNormalRecipe();
}
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean par) {
list.add(TextFormatting.GRAY + "Will make the miner fill in any air and fluid blocks while mining");
}
}