Class SphereExplosion
java.lang.Object
net.minecraft.world.level.Explosion
me.emafire003.dev.ohmymeteors.util.SphereExplosion
public class SphereExplosion
extends net.minecraft.world.level.Explosion
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.Explosion
net.minecraft.world.level.Explosion.BlockInteraction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.core.BlockPos> protected final Map<net.minecraft.world.entity.player.Player, net.minecraft.world.phys.Vec3> protected final net.minecraft.world.level.ExplosionDamageCalculatorprotected final booleanprotected final net.minecraft.world.damagesource.DamageSourceprotected static final net.minecraft.world.level.ExplosionDamageCalculatorprotected final net.minecraft.world.level.Explosion.BlockInteractionprotected final net.minecraft.core.particles.ParticleOptionsprotected final @Nullable net.minecraft.world.entity.Entityprotected final net.minecraft.core.particles.ParticleOptionsprotected doubleprotected final floatprotected final net.minecraft.util.RandomSourceprotected final net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> protected doubleprotected final net.minecraft.world.level.Levelprotected final doubleprotected final doubleprotected final double -
Constructor Summary
ConstructorsConstructorDescriptionSphereExplosion(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) SphereExplosion(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, List<net.minecraft.core.BlockPos> affectedBlocks) SphereExplosion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, List<net.minecraft.core.BlockPos> affectedBlocks, net.minecraft.world.level.Explosion.BlockInteraction destructionType, net.minecraft.core.particles.ParticleOptions particle, net.minecraft.core.particles.ParticleOptions emitterParticle, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent) SphereExplosion(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, net.minecraft.core.particles.ParticleOptions particle, net.minecraft.core.particles.ParticleOptions emitterParticle, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent) -
Method Summary
Modifier and TypeMethodDescriptiondoublecalcDakaXdirection(int l) voidexplode()voidfinalizeExplosion(boolean particles) static voidtryMergeStack(List<com.mojang.datafixers.util.Pair<net.minecraft.world.item.ItemStack, net.minecraft.core.BlockPos>> stacks, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos) Methods inherited from class net.minecraft.world.level.Explosion
canTriggerBlocks, center, clearToBlow, getBlockInteraction, getDefaultDamageSource, getDirectSourceEntity, getExplosionSound, getHitPlayers, getIndirectSourceEntity, getLargeExplosionParticles, getSeenPercent, getSmallExplosionParticles, getToBlow, interactsWithBlocks, radius
-
Field Details
-
DEFAULT_BEHAVIOR
protected static final net.minecraft.world.level.ExplosionDamageCalculator DEFAULT_BEHAVIOR -
createFire
protected final boolean createFire -
destructionType
protected final net.minecraft.world.level.Explosion.BlockInteraction destructionType -
random
protected final net.minecraft.util.RandomSource random -
world
protected final net.minecraft.world.level.Level world -
x
protected final double x -
y
protected final double y -
z
protected final double z -
entity
@Nullable protected final @Nullable net.minecraft.world.entity.Entity entity -
power
protected final float power -
damageSource
protected final net.minecraft.world.damagesource.DamageSource damageSource -
behavior
protected final net.minecraft.world.level.ExplosionDamageCalculator behavior -
particle
protected final net.minecraft.core.particles.ParticleOptions particle -
emitterParticle
protected final net.minecraft.core.particles.ParticleOptions emitterParticle -
soundEvent
protected final net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent -
affectedBlocks
protected final it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.core.BlockPos> affectedBlocks -
affectedPlayers
protected final Map<net.minecraft.world.entity.player.Player,net.minecraft.world.phys.Vec3> affectedPlayers -
thetaRef
protected double thetaRef -
phiRef
protected double phiRef
-
-
Constructor Details
-
SphereExplosion
public SphereExplosion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, List<net.minecraft.core.BlockPos> affectedBlocks, net.minecraft.world.level.Explosion.BlockInteraction destructionType, net.minecraft.core.particles.ParticleOptions particle, net.minecraft.core.particles.ParticleOptions emitterParticle, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent) -
SphereExplosion
public SphereExplosion(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, List<net.minecraft.core.BlockPos> affectedBlocks) -
SphereExplosion
public SphereExplosion(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) -
SphereExplosion
public SphereExplosion(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, net.minecraft.core.particles.ParticleOptions particle, net.minecraft.core.particles.ParticleOptions emitterParticle, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent)
-
-
Method Details
-
calcDakaXdirection
public double calcDakaXdirection(int l) -
explode
public void explode()- Overrides:
explodein classnet.minecraft.world.level.Explosion
-
tryMergeStack
public static void tryMergeStack(List<com.mojang.datafixers.util.Pair<net.minecraft.world.item.ItemStack, net.minecraft.core.BlockPos>> stacks, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos) -
finalizeExplosion
public void finalizeExplosion(boolean particles) - Overrides:
finalizeExplosionin classnet.minecraft.world.level.Explosion
-