BiomesOPlenty/common/biomesoplenty/handlers/BOPCraftHandler.java

44 lines
1.4 KiB
Java
Raw Normal View History

2013-06-15 11:08:58 +00:00
package biomesoplenty.handlers;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
2013-11-13 01:55:01 +00:00
import biomesoplenty.api.Items;
import biomesoplenty.configuration.BOPAchievements;
import cpw.mods.fml.common.ICraftingHandler;
2013-06-15 11:08:58 +00:00
public class BOPCraftHandler implements ICraftingHandler
{
2013-05-31 10:34:02 +00:00
@Override
public void onCrafting(EntityPlayer var1, ItemStack var2, IInventory var3)
{
2013-11-13 03:48:32 +00:00
//Plant Killer
if (var2.itemID == Items.scytheAmethyst.get().itemID || var2.itemID == Items.scytheDiamond.get().itemID || var2.itemID == Items.scytheGold.get().itemID || var2.itemID == Items.scytheIron.get().itemID || var2.itemID == Items.scytheStone.get().itemID || var2.itemID == Items.scytheWood.get().itemID || var2.itemID == Items.scytheMud.get().itemID)
{
var1.addStat(BOPAchievements.achScythe, 1);
}
2013-11-13 01:55:01 +00:00
2013-11-13 03:48:32 +00:00
//Full Auto
if (var2.itemID == Items.dartBlower.get().itemID)
{
var1.addStat(BOPAchievements.achDartBlower, 1);
}
2013-11-13 01:55:01 +00:00
2013-11-13 03:48:32 +00:00
//Flower Power
if (var2.itemID == Items.flowerBand.get().itemID)
{
var1.addStat(BOPAchievements.achFlowerBand, 1);
}
//Drink of the Gods
if (var2.itemID == Items.food.get().itemID && var2.getItemDamage() == 10)
{
var1.addStat(BOPAchievements.achAmbrosia, 1);
}
2013-11-13 01:55:01 +00:00
}
2013-05-31 10:34:02 +00:00
@Override
public void onSmelting(EntityPlayer var1, ItemStack var2) {}
}