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
    • 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

    • Explosion

      public Explosion(Level p_151471_, @Nullable Entity p_151472_, double p_151473_, double p_151474_, double p_151475_, float p_151476_)
    • 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

      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_)
  • Method Details

    • makeDamageCalculator

      private ExplosionDamageCalculator makeDamageCalculator(@Nullable Entity p_46063_)
    • getSeenPercent

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

      public void explode()
    • finalizeExplosion

      public void finalizeExplosion(boolean p_46076_)
    • addBlockDrops

      private static void addBlockDrops(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> p_46068_, ItemStack p_46069_, BlockPos p_46070_)
    • getDamageSource

      public DamageSource getDamageSource()
    • getHitPlayers

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

      @Nullable public LivingEntity getSourceMob()
    • clearToBlow

      public void clearToBlow()
    • getToBlow

      public List<BlockPos> getToBlow()
    • getPosition

      public Vec3 getPosition()
    • getExploder

      @Nullable public Entity getExploder()