Class Explosion

java.lang.Object
net.minecraft.world.level.Explosion

public class Explosion extends Object
  • Field Details

    • EXPLOSION_DAMAGE_CALCULATOR

      private static final ExplosionDamageCalculator 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

      private final Explosion.BlockInteraction blockInteraction
    • random

      private final RandomSource random
    • level

      private final Level level
    • x

      private final double x
    • y

      private final double y
    • z

      private final double z
    • source

      @Nullable private final Entity source
    • radius

      private final float radius
    • damageSource

      private final DamageSource damageSource
    • damageCalculator

      private final ExplosionDamageCalculator damageCalculator
    • smallExplosionParticles

      private final ParticleOptions smallExplosionParticles
    • largeExplosionParticles

      private final ParticleOptions largeExplosionParticles
    • explosionSound

      private final SoundEvent explosionSound
    • toBlow

      private final it.unimi.dsi.fastutil.objects.ObjectArrayList<BlockPos> toBlow
    • hitPlayers

      private final Map<Player,Vec3> hitPlayers
    • position

      private final Vec3 position
  • Constructor Details

  • Method Details

    • getDefaultDamageSource

      public static DamageSource getDefaultDamageSource(Level p_309890_, @Nullable Entity p_311046_)
    • makeDamageCalculator

      private ExplosionDamageCalculator makeDamageCalculator(@Nullable Entity p_46063_)
    • getSeenPercent

      public static float getSeenPercent(Vec3 p_46065_, Entity p_46066_)
    • radius

      public float radius()
    • center

      public Vec3 center()
    • explode

      public void explode()
    • finalizeExplosion

      public void finalizeExplosion(boolean p_46076_)
    • addOrAppendStack

      private static void addOrAppendStack(List<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> p_311090_, ItemStack p_311817_, BlockPos p_309821_)
    • interactsWithBlocks

      public boolean interactsWithBlocks()
    • getHitPlayers

      public Map<Player,Vec3> getHitPlayers()
    • getIndirectSourceEntityInternal

      @Nullable private static LivingEntity getIndirectSourceEntityInternal(@Nullable Entity p_309719_)
    • getIndirectSourceEntity

      @Nullable public LivingEntity getIndirectSourceEntity()
    • getDirectSourceEntity

      @Nullable public Entity getDirectSourceEntity()
    • clearToBlow

      public void clearToBlow()
    • getToBlow

      public List<BlockPos> getToBlow()
    • getPosition

      public Vec3 getPosition()
    • getExploder

      @Nullable public Entity getExploder()
    • getBlockInteraction

      public Explosion.BlockInteraction getBlockInteraction()
    • getSmallExplosionParticles

      public ParticleOptions getSmallExplosionParticles()
    • getLargeExplosionParticles

      public ParticleOptions getLargeExplosionParticles()
    • getExplosionSound

      public SoundEvent getExplosionSound()