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();
}
Aggregations