Search in sources :

Example 1 with ExplosionHandle

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);
}
Also used : ExplosionHandle(com.bergerkiller.generated.net.minecraft.server.ExplosionHandle) Location(org.bukkit.Location)

Example 2 with ExplosionHandle

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);
}
Also used : ExplosionHandle(com.bergerkiller.generated.net.minecraft.server.ExplosionHandle) IntVector3(com.bergerkiller.bukkit.common.bases.IntVector3)

Aggregations

ExplosionHandle (com.bergerkiller.generated.net.minecraft.server.ExplosionHandle)2 IntVector3 (com.bergerkiller.bukkit.common.bases.IntVector3)1 Location (org.bukkit.Location)1