resonant-induction/APIs/icbm/api/explosion/IEMPItem.java
2013-07-22 01:20:20 -04:00

26 lines
644 B
Java

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
*
*/
public interface IEMPItem extends IItemElectric {
/**
* Called when this item is being EMPed
*
* @param itemStack
* - The itemstack attacked by EMP
* @param entity
* - The entity holding the item
* @param empExplosives
* - The IExplosive object
*/
public void onEMP(ItemStack itemStack, Entity entity,
IExplosion empExplosive);
}