mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
24 lines
618 B
Java
24 lines
618 B
Java
package com.hbm.items.food;
|
|
|
|
import com.hbm.explosion.ExplosionNukeSmall;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemFood;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.world.World;
|
|
|
|
public class ItemWaffle extends ItemFood {
|
|
|
|
public ItemWaffle(int heal, boolean canWolfEat) {
|
|
super(heal, canWolfEat);
|
|
}
|
|
|
|
@Override
|
|
public void onFoodEaten(ItemStack stack, World world, EntityPlayer player) {
|
|
|
|
if(!world.isRemote)
|
|
ExplosionNukeSmall.explode(world, player.posX, player.posY + 0.5, player.posZ, ExplosionNukeSmall.medium);
|
|
}
|
|
|
|
}
|