2015-03-07 12:51:28 +01:00
|
|
|
package ellpeck.actuallyadditions.event;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
|
|
|
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
|
|
|
|
|
|
|
public class CraftEvent{
|
2015-03-29 15:29:05 +02:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
@SubscribeEvent
|
|
|
|
public void onCraftedEvent(PlayerEvent.ItemCraftedEvent event){
|
2015-03-30 15:08:19 +02:00
|
|
|
/*if(event.crafting.getItem() == InitItems.itemMisc && event.crafting.getItemDamage() == TheMiscItems.DOUGH.ordinal()){
|
2015-03-07 02:23:31 +01:00
|
|
|
event.player.addStat(InitAchievements.achievementCraftDough, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem() == InitItems.itemMisc && event.crafting.getItemDamage() == TheMiscItems.MASHED_FOOD.ordinal()){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftMashedFood, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem() == InitItems.itemMisc && event.crafting.getItemDamage() == TheMiscItems.KNIFE_BLADE.ordinal()){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftKnifeBlade, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem() == InitItems.itemKnife){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftKnife, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem() == InitItems.itemFoods && event.crafting.getItemDamage() == TheFoods.SUBMARINE_SANDWICH.ordinal()){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftSubSandwich, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem() == InitItems.itemMisc && event.crafting.getItemDamage() == TheMiscItems.PAPER_CONE.ordinal()){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftPaperCone, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem() == InitItems.itemFoods && event.crafting.getItemDamage() == TheFoods.FRENCH_FRY.ordinal()){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftFrenchFry, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem() == InitItems.itemFoods && event.crafting.getItemDamage() == TheFoods.FRENCH_FRIES.ordinal()){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftFrenchFries, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem() == InitItems.itemFoods && event.crafting.getItemDamage() == TheFoods.FISH_N_CHIPS.ordinal()){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftFishNChips, 1);
|
|
|
|
}
|
|
|
|
if(event.crafting.getItem()== Item.getItemFromBlock(InitBlocks.blockCompost)){
|
|
|
|
event.player.addStat(InitAchievements.achievementCraftCompost, 1);
|
2015-03-30 15:08:19 +02:00
|
|
|
}*/
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
}
|