Class ExplosionUtils
java.lang.Object
me.emafire003.dev.ohmymeteors.util.ExplosionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Level.ExplosionInteraction explosionSourceType) Creates an explosion.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.Level.ExplosionInteraction explosionSourceType) 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.Level.ExplosionInteraction explosionSourceType) 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.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) 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.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.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, net.minecraft.world.phys.Vec3 pos, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionSourceType) 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.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) ornullto indicate no entity explodeddamageSource- the custom damage source, ornullto use the defaultbehavior- the explosion behavior, ornullto use the defaultcreateFire- 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)
-