Class ExplosionUtils

java.lang.Object
me.emafire003.dev.ohmymeteors.util.ExplosionUtils

public class ExplosionUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createExplosion(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.Level.ExplosionInteraction explosionSourceType)
    Creates an explosion.
    createExplosion(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.Level.ExplosionInteraction explosionSourceType)
     
    createExplosion(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.Level.ExplosionInteraction explosionSourceType)
     
    createExplosion(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.Level.ExplosionInteraction explosionSourceType, boolean particles, net.minecraft.core.particles.ParticleOptions particle, net.minecraft.core.particles.ParticleOptions emitterParticle, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent)
     
    createExplosion(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.Level.ExplosionInteraction explosionSourceType, net.minecraft.core.particles.ParticleOptions particle, net.minecraft.core.particles.ParticleOptions emitterParticle, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent)
    Creates an explosion.
    createExplosion(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, net.minecraft.world.phys.Vec3 pos, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionSourceType)
    Creates an explosion.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.Level.ExplosionInteraction explosionSourceType)
    • 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.Level.ExplosionInteraction explosionSourceType)
      Creates an explosion.
      See Also:
    • 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, net.minecraft.world.phys.Vec3 pos, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionSourceType)
      Creates an explosion.
      See Also:
    • 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.Level.ExplosionInteraction explosionSourceType)
    • 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.Level.ExplosionInteraction explosionSourceType, net.minecraft.core.particles.ParticleOptions particle, net.minecraft.core.particles.ParticleOptions emitterParticle, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent)
      Creates an explosion.
      Parameters:
      entity - the entity that exploded (like TNT) or null to indicate no entity exploded
      damageSource - the custom damage source, or null to use the default
      behavior - the explosion behavior, or null to use the default
      createFire - whether the explosion should create fire
    • 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.Level.ExplosionInteraction explosionSourceType, boolean particles, net.minecraft.core.particles.ParticleOptions particle, net.minecraft.core.particles.ParticleOptions emitterParticle, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent)