Package net.minecraft.world.level
Class Explosion
java.lang.Object
net.minecraft.world.level.Explosion
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Explosion.BlockInteraction
private final ExplosionDamageCalculator
private final DamageSource
private static final ExplosionDamageCalculator
private final SoundEvent
private final boolean
private final ParticleOptions
private final Level
private static final int
private final Vec3
private final float
private final RandomSource
private final ParticleOptions
private final Entity
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<BlockPos>
private final double
private final double
private final double
-
Constructor Summary
ConstructorDescriptionExplosion
(Level p_46032_, Entity p_46033_, double p_46034_, double p_46035_, double p_46036_, float p_46037_, boolean p_46038_, Explosion.BlockInteraction p_46039_) Explosion
(Level p_46041_, Entity p_46042_, double p_46043_, double p_46044_, double p_46045_, float p_46046_, boolean p_46047_, Explosion.BlockInteraction p_46048_, List<BlockPos> p_46049_) Explosion
(Level p_46024_, Entity p_46025_, double p_46026_, double p_46027_, double p_46028_, float p_46029_, List<BlockPos> p_46030_, Explosion.BlockInteraction p_312129_, ParticleOptions p_311112_, ParticleOptions p_311120_, SoundEvent p_311288_) Explosion
(Level p_46051_, Entity p_46052_, DamageSource p_46053_, ExplosionDamageCalculator p_46054_, double p_46055_, double p_46056_, double p_46057_, float p_46058_, boolean p_46059_, Explosion.BlockInteraction p_46060_, ParticleOptions p_312175_, ParticleOptions p_310459_, SoundEvent p_311795_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addOrAppendStack
(List<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> p_311090_, ItemStack p_311817_, BlockPos p_309821_) center()
void
void
explode()
void
finalizeExplosion
(boolean p_46076_) static DamageSource
getDefaultDamageSource
(Level p_309890_, Entity p_311046_) private static LivingEntity
getIndirectSourceEntityInternal
(Entity p_309719_) static float
getSeenPercent
(Vec3 p_46065_, Entity p_46066_) boolean
private ExplosionDamageCalculator
makeDamageCalculator
(Entity p_46063_) float
radius()
-
Field Details
-
EXPLOSION_DAMAGE_CALCULATOR
-
MAX_DROPS_PER_COMBINED_STACK
private static final int MAX_DROPS_PER_COMBINED_STACK- See Also:
-
fire
private final boolean fire -
blockInteraction
-
random
-
level
-
x
private final double x -
y
private final double y -
z
private final double z -
source
-
radius
private final float radius -
damageSource
-
damageCalculator
-
smallExplosionParticles
-
largeExplosionParticles
-
explosionSound
-
toBlow
-
hitPlayers
-
position
-
-
Constructor Details
-
Explosion
public Explosion(Level p_46024_, @Nullable Entity p_46025_, double p_46026_, double p_46027_, double p_46028_, float p_46029_, List<BlockPos> p_46030_, Explosion.BlockInteraction p_312129_, ParticleOptions p_311112_, ParticleOptions p_311120_, SoundEvent p_311288_) -
Explosion
public Explosion(Level p_46041_, @Nullable Entity p_46042_, double p_46043_, double p_46044_, double p_46045_, float p_46046_, boolean p_46047_, Explosion.BlockInteraction p_46048_, List<BlockPos> p_46049_) -
Explosion
public Explosion(Level p_46032_, @Nullable Entity p_46033_, double p_46034_, double p_46035_, double p_46036_, float p_46037_, boolean p_46038_, Explosion.BlockInteraction p_46039_) -
Explosion
public Explosion(Level p_46051_, @Nullable Entity p_46052_, @Nullable DamageSource p_46053_, @Nullable ExplosionDamageCalculator p_46054_, double p_46055_, double p_46056_, double p_46057_, float p_46058_, boolean p_46059_, Explosion.BlockInteraction p_46060_, ParticleOptions p_312175_, ParticleOptions p_310459_, SoundEvent p_311795_)
-
-
Method Details
-
getDefaultDamageSource
-
makeDamageCalculator
-
getSeenPercent
-
radius
public float radius() -
center
-
explode
public void explode() -
finalizeExplosion
public void finalizeExplosion(boolean p_46076_) -
addOrAppendStack
-
interactsWithBlocks
public boolean interactsWithBlocks() -
getHitPlayers
-
getIndirectSourceEntityInternal
-
getIndirectSourceEntity
-
getDirectSourceEntity
-
clearToBlow
public void clearToBlow() -
getToBlow
-
getPosition
-
getExploder
-
getBlockInteraction
-
getSmallExplosionParticles
-
getLargeExplosionParticles
-
getExplosionSound
-