resonant-induction/APIs/icbm/api/explosion/IEMPItem.java

24 lines
596 B
Java
Raw Normal View History

package icbm.api.explosion;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import universalelectricity.core.item.IItemElectric;
/**
* Applied to all items that can be protected from EMP somehow.
*
* @author Calclavia
*
*/
2013-07-23 00:24:55 +02:00
public interface IEMPItem extends IItemElectric
{
/**
* Called when this item is being EMPed
*
2013-07-23 00:24:55 +02:00
* @param itemStack - The itemstack attacked by EMP
* @param entity - The entity holding the item
* @param empExplosives - The IExplosive object
*/
2013-07-23 00:24:55 +02:00
public void onEMP(ItemStack itemStack, Entity entity, IExplosion empExplosive);
}