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 ItemMilkerUpgrade extends ItemUpgrade { public ItemMilkerUpgrade() { super("MilkerUpgrade", UpgradeType.MILKER); } @SideOnly(Side.CLIENT) public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean par) { list.add(TextFormatting.GRAY + "Allows the Farmer to Milk animals into buckets"); } @Override protected void addNormalRecipe() { ShapedOreRecipe recipe = new ShapedOreRecipe(new ItemStack(this), new Object[]{ "ppp", "brb", "ppp", 'p', Blocks.STONE, 'r', Blocks.REDSTONE_BLOCK, 'b', Items.MILK_BUCKET}); GameRegistry.addRecipe(recipe); } }