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;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.achievement.InitAchievements;
|
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
public class SmeltEvent{
|
|
|
|
@SubscribeEvent
|
|
|
|
public void onSmeltedEvent(PlayerEvent.ItemSmeltedEvent event){
|
|
|
|
if(event.smelting.getItem() == InitItems.itemFoods && event.smelting.getItemDamage() == TheFoods.BAGUETTE.ordinal()){
|
|
|
|
event.player.addStat(InitAchievements.achievementSmeltBaguette, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|