Search in sources :

Example 1 with IExplosiveContainer

use of resonant.api.explosion.IExplosiveContainer in project ICBM-Classic by BuiltBrokenModding.

the class ExEnder method doCreateExplosion.

@SuppressWarnings("deprecation")
@Override
public void doCreateExplosion(World world, double x, double y, double z, Entity entity) {
    Pos teleportTarget = null;
    if (entity instanceof IExplosiveContainer) {
        if (((IExplosiveContainer) entity).getTagCompound().hasKey("x") && ((IExplosiveContainer) entity).getTagCompound().hasKey("y") && ((IExplosiveContainer) entity).getTagCompound().hasKey("z")) {
            teleportTarget = new Pos(((IExplosiveContainer) entity).getTagCompound());
        }
    }
    new BlastEnderman(world, entity, x, y, z, 30, teleportTarget).explode();
}
Also used : IExplosiveContainer(resonant.api.explosion.IExplosiveContainer) BlastEnderman(icbm.classic.content.explosive.blast.BlastEnderman) Pos(com.builtbroken.mc.imp.transform.vector.Pos)

Aggregations

Pos (com.builtbroken.mc.imp.transform.vector.Pos)1 BlastEnderman (icbm.classic.content.explosive.blast.BlastEnderman)1 IExplosiveContainer (resonant.api.explosion.IExplosiveContainer)1