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 ItemShearingUpgrade extends ItemUpgrade {
public ItemShearingUpgrade() {
super("ShearingUpgrade", UpgradeType.SHEARING);
}
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean par) {
list.add(TextFormatting.GRAY + "Allows the Farmer shear animals");
}
@Override
protected void addNormalRecipe() {
ShapedOreRecipe recipe = new ShapedOreRecipe(new ItemStack(this), new Object[]{
"plp", "wsw", "plp", 'p', Blocks.STONE, 's', Items.SHEARS, 'l', Items.LEATHER, 'w', Blocks.WOOL});
GameRegistry.addRecipe(recipe);
}
}