use of com.bergerkiller.generated.net.minecraft.server.ExplosionHandle in project BKCommonLib by bergerhealer.
the class CommonMethods method DamageSource_explosion.
public static DamageSourceHandle DamageSource_explosion(org.bukkit.entity.Entity entity, DamageCause cause, double damage) {
Location loc = entity.getLocation();
ExplosionHandle ex = Explosion_new(loc.getWorld(), loc.getX(), loc.getY(), loc.getZ());
return DamageSourceHandle.explosion(ex);
}
use of com.bergerkiller.generated.net.minecraft.server.ExplosionHandle in project BKCommonLib by bergerhealer.
the class BlockDataImpl method ignite.
@Override
public final void ignite(org.bukkit.World world, int x, int y, int z) {
ExplosionHandle ex = ExplosionHandle.createNew(world, null, x, y, z, 4.0f, true, true);
this.block.ignite(world, new IntVector3(x, y, z), ex);
}
Aggregations