mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-05 16:39:10 +01:00
17 lines
674 B
Java
17 lines
674 B
Java
|
package ellpeck.someprettyrandomstuff.event;
|
||
|
|
||
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||
|
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
||
|
import ellpeck.someprettyrandomstuff.achievement.InitAchievements;
|
||
|
import ellpeck.someprettyrandomstuff.items.InitItems;
|
||
|
import ellpeck.someprettyrandomstuff.items.metalists.TheFoods;
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|