Class ExplosionUtils
java.lang.Object
me.emafire003.dev.ohmymeteors.util.ExplosionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateExplosion(net.minecraft.world.level.Level world, MeteorProjectileEntity entity, net.minecraft.world.damagesource.DamageSource explosion, net.minecraft.world.level.ExplosionDamageCalculator safeExplosion, net.minecraft.world.phys.Vec3 pos, int power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType) static SphereExplosioncreateExplosion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType) static SphereExplosioncreateExplosion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, net.minecraft.world.level.Explosion.BlockInteraction destructionType) static SphereExplosioncreateExplosion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.Entity entity, @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable net.minecraft.world.level.ExplosionDamageCalculator behavior, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType) Creates an explosion.
-
Constructor Details
-
ExplosionUtils
public ExplosionUtils()
-
-
Method Details
-
createExplosion
public static SphereExplosion createExplosion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, net.minecraft.world.level.Explosion.BlockInteraction destructionType) -
createExplosion
public static SphereExplosion createExplosion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType) -
createExplosion
public static SphereExplosion createExplosion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.Entity entity, @Nullable @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable @Nullable net.minecraft.world.level.ExplosionDamageCalculator behavior, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType) Creates an explosion.- Parameters:
entity- the entity that exploded (like TNT) ornullto indicate no entity explodeddamageSource- the custom damage source, ornullto use the default (DamageSource.explosion(Explosion))behavior- the explosion behavior, ornullto use the defaultcreateFire- whether the explosion should create firedestructionType- the destruction type of the explosion
-
createExplosion
public static void createExplosion(net.minecraft.world.level.Level world, MeteorProjectileEntity entity, net.minecraft.world.damagesource.DamageSource explosion, net.minecraft.world.level.ExplosionDamageCalculator safeExplosion, net.minecraft.world.phys.Vec3 pos, int power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType)
-