2013-07-22 07:05:40 +02:00
|
|
|
package icbm.api.explosion;
|
|
|
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
import universalelectricity.core.vector.Vector3;
|
|
|
|
|
|
|
|
/**
|
2013-07-23 00:24:55 +02:00
|
|
|
* Applied to all blocks that has a custom reaction to EMPs. Blocks not TileEntities.
|
2013-07-22 07:05:40 +02:00
|
|
|
*
|
|
|
|
* @author Calclavia
|
|
|
|
*
|
|
|
|
*/
|
2013-07-23 00:24:55 +02:00
|
|
|
public interface IEMPBlock
|
|
|
|
{
|
2013-07-22 07:05:40 +02:00
|
|
|
/**
|
|
|
|
* Called when this block gets attacked by EMP.
|
|
|
|
*
|
2013-07-23 00:24:55 +02:00
|
|
|
* @param world - The world object.
|
|
|
|
* @param position - The position.
|
|
|
|
* @param empExplosive - The explosion
|
2013-07-22 07:05:40 +02:00
|
|
|
*/
|
|
|
|
public void onEMP(World world, Vector3 position, IExplosion empExplosive);
|
|
|
|
}
|