Class Explosion

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

public class Explosion extends Object
  • Field Details

    • EXPLOSION_DAMAGE_CALCULATOR

      private static final ExplosionContext EXPLOSION_DAMAGE_CALCULATOR
    • fire

      private final boolean fire
    • blockInteraction

      private final Explosion.Mode blockInteraction
    • random

      private final Random random
    • level

      private final World 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 ExplosionContext damageCalculator
    • toBlow

      private final List<BlockPos> toBlow
    • hitPlayers

      private final Map<PlayerEntity,Vector3d> hitPlayers
    • position

      private final Vector3d position
  • Constructor Details

    • Explosion

      public Explosion(World p_i45752_1_, @Nullable Entity p_i45752_2_, double p_i45752_3_, double p_i45752_5_, double p_i45752_7_, float p_i45752_9_, List<BlockPos> p_i45752_10_)
    • Explosion

      public Explosion(World p_i50006_1_, @Nullable Entity p_i50006_2_, double p_i50006_3_, double p_i50006_5_, double p_i50006_7_, float p_i50006_9_, boolean p_i50006_10_, Explosion.Mode p_i50006_11_, List<BlockPos> p_i50006_12_)
    • Explosion

      public Explosion(World p_i50007_1_, @Nullable Entity p_i50007_2_, double p_i50007_3_, double p_i50007_5_, double p_i50007_7_, float p_i50007_9_, boolean p_i50007_10_, Explosion.Mode p_i50007_11_)
    • Explosion

      public Explosion(World p_i231610_1_, @Nullable Entity p_i231610_2_, @Nullable DamageSource p_i231610_3_, @Nullable ExplosionContext p_i231610_4_, double p_i231610_5_, double p_i231610_7_, double p_i231610_9_, float p_i231610_11_, boolean p_i231610_12_, Explosion.Mode p_i231610_13_)
  • Method Details

    • makeDamageCalculator

      private ExplosionContext makeDamageCalculator(@Nullable Entity p_234894_1_)
    • getSeenPercent

      public static float getSeenPercent(Vector3d p_222259_0_, Entity p_222259_1_)
    • explode

      public void explode()
    • finalizeExplosion

      public void finalizeExplosion(boolean p_77279_1_)
    • addBlockDrops

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

      public DamageSource getDamageSource()
    • getHitPlayers

      public Map<PlayerEntity,Vector3d> getHitPlayers()
    • getSourceMob

      @Nullable public LivingEntity getSourceMob()
    • clearToBlow

      public void clearToBlow()
    • getToBlow

      public List<BlockPos> getToBlow()
    • getPosition

      public Vector3d getPosition()
    • getExploder

      @Nullable public Entity getExploder()