2013-06-15 11:08:58 +00:00
|
|
|
package biomesoplenty.handlers;
|
2013-05-10 07:12:56 +00:00
|
|
|
|
|
|
|
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;
|
2013-05-29 01:05:27 +00:00
|
|
|
import cpw.mods.fml.common.ICraftingHandler;
|
2013-05-10 07:12:56 +00:00
|
|
|
|
2013-06-15 11:08:58 +00:00
|
|
|
public class BOPCraftHandler implements ICraftingHandler
|
2013-05-10 07:12:56 +00:00
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
@Override
|
2013-05-10 07:12:56 +00:00
|
|
|
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);
|
|
|
|
}
|
2013-11-15 09:28:40 +00:00
|
|
|
|
|
|
|
//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-10 07:12:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
@Override
|
2013-05-10 07:12:56 +00:00
|
|
|
public void onSmelting(EntityPlayer var1, ItemStack var2) {}
|
|
|
|
}
|