Class Explosion


  • public class Explosion
    extends java.lang.Object
    • Field Detail

      • EXPLOSION_DAMAGE_CALCULATOR

        private static final ExplosionContext EXPLOSION_DAMAGE_CALCULATOR
      • fire

        private final boolean fire
      • random

        private final java.util.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
      • toBlow

        private final java.util.List<BlockPos> toBlow
      • position

        private final Vector3d position
    • Constructor Detail

      • 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_,
                         java.util.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_,
                         java.util.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 Detail

      • 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_)
      • getSourceMob

        @Nullable
        public LivingEntity getSourceMob()
      • clearToBlow

        public void clearToBlow()
      • getToBlow

        public java.util.List<BlockPos> getToBlow()
      • getPosition

        public Vector3d getPosition()
      • getExploder

        @Nullable
        public Entity getExploder()