Class SphereExplosion

java.lang.Object
net.minecraft.world.level.Explosion
me.emafire003.dev.ohmymeteors.util.SphereExplosion

public class SphereExplosion extends net.minecraft.world.level.Explosion
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.Explosion

    net.minecraft.world.level.Explosion.BlockInteraction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.core.BlockPos>
     
    protected final Map<net.minecraft.world.entity.player.Player,net.minecraft.world.phys.Vec3>
     
    protected final net.minecraft.world.level.ExplosionDamageCalculator
     
    protected final boolean
     
    protected final net.minecraft.world.damagesource.DamageSource
     
    protected static final net.minecraft.world.level.ExplosionDamageCalculator
     
    protected final net.minecraft.world.level.Explosion.BlockInteraction
     
    protected final @Nullable net.minecraft.world.entity.Entity
     
    protected double
     
    protected final float
     
    protected final net.minecraft.util.RandomSource
     
    protected double
     
    protected final net.minecraft.world.level.Level
     
    protected final double
     
    protected final double
     
    protected final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SphereExplosion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType)
     
    SphereExplosion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType, List<net.minecraft.core.BlockPos> affectedBlocks)
     
    SphereExplosion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, List<net.minecraft.core.BlockPos> affectedBlocks)
     
    SphereExplosion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.Entity entity, @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable net.minecraft.world.level.ExplosionDamageCalculator behavior, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    void
     
    void
    finalizeExplosion(boolean particles)
     
    static void
    tryMergeStack(List<com.mojang.datafixers.util.Pair<net.minecraft.world.item.ItemStack,net.minecraft.core.BlockPos>> stacks, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos)
     

    Methods inherited from class net.minecraft.world.level.Explosion

    clearToBlow, getDamageSource, getDirectSourceEntity, getHitPlayers, getIndirectSourceEntity, getSeenPercent, getToBlow, interactsWithBlocks

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_BEHAVIOR

      protected static final net.minecraft.world.level.ExplosionDamageCalculator DEFAULT_BEHAVIOR
    • createFire

      protected final boolean createFire
    • destructionType

      protected final net.minecraft.world.level.Explosion.BlockInteraction destructionType
    • random

      protected final net.minecraft.util.RandomSource random
    • world

      protected final net.minecraft.world.level.Level world
    • x

      protected final double x
    • y

      protected final double y
    • z

      protected final double z
    • entity

      @Nullable protected final @Nullable net.minecraft.world.entity.Entity entity
    • power

      protected final float power
    • damageSource

      protected final net.minecraft.world.damagesource.DamageSource damageSource
    • behavior

      protected final net.minecraft.world.level.ExplosionDamageCalculator behavior
    • affectedBlocks

      protected final it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.core.BlockPos> affectedBlocks
    • affectedPlayers

      protected final Map<net.minecraft.world.entity.player.Player,net.minecraft.world.phys.Vec3> affectedPlayers
    • thetaRef

      protected double thetaRef
    • phiRef

      protected double phiRef
  • Constructor Details

    • SphereExplosion

      public SphereExplosion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, List<net.minecraft.core.BlockPos> affectedBlocks)
    • SphereExplosion

      public SphereExplosion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType, List<net.minecraft.core.BlockPos> affectedBlocks)
    • SphereExplosion

      public SphereExplosion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.Entity entity, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType)
    • SphereExplosion

      public SphereExplosion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.Entity entity, @Nullable @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable @Nullable net.minecraft.world.level.ExplosionDamageCalculator behavior, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType)
  • Method Details

    • calcDakaXdirection

      public double calcDakaXdirection(int l)
    • explode

      public void explode()
      Overrides:
      explode in class net.minecraft.world.level.Explosion
    • tryMergeStack

      public static void tryMergeStack(List<com.mojang.datafixers.util.Pair<net.minecraft.world.item.ItemStack,net.minecraft.core.BlockPos>> stacks, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos)
    • finalizeExplosion

      public void finalizeExplosion(boolean particles)
      Overrides:
      finalizeExplosion in class net.minecraft.world.level.Explosion