blob: abed0aefaf45b0f0054bc723a5a20f37dfc74ada [file] [log] [blame] [raw]
package com.legacy.aether.items.food;
import com.legacy.aether.items.ItemsAether;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import com.legacy.aether.player.PlayerAether;
public class ItemWhiteApple extends ItemAetherFood {
public ItemWhiteApple() {
super(0);
this.setAlwaysEdible();
}
@Override
protected void onFoodEaten(ItemStack stack, World world, EntityPlayer player) {
PlayerAether.get(player).setCured(300);
if (!world.isRemote)
{
player.curePotionEffects(new ItemStack(ItemsAether.white_apple));
}
}
}