Class SphereExplosion

java.lang.Object
me.emafire003.dev.ohmymeteors.util.SphereExplosion
All Implemented Interfaces:
net.minecraft.world.level.Explosion

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

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

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

    Fields
    Modifier and Type
    Field
    Description
    protected double
     
    protected double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SphereExplosion(net.minecraft.server.level.ServerLevel world, @Nullable net.minecraft.world.entity.Entity entity, @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable net.minecraft.world.level.ExplosionDamageCalculator behavior, net.minecraft.world.phys.Vec3 pos, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    static float
    calculateReceivedDamage(net.minecraft.world.phys.Vec3 pos, net.minecraft.world.entity.Entity entity)
     
    boolean
     
    net.minecraft.world.phys.Vec3
     
    int
     
    net.minecraft.world.level.Explosion.BlockInteraction
     
    net.minecraft.world.damagesource.DamageSource
     
    @Nullable net.minecraft.world.entity.Entity
     
    @Nullable net.minecraft.world.entity.LivingEntity
     
    Map<net.minecraft.world.entity.player.Player, net.minecraft.world.phys.Vec3>
     
    boolean
     
    net.minecraft.server.level.ServerLevel
     
    float
     
    boolean
     

    Methods inherited from class Object

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

    • thetaRef

      protected double thetaRef
    • phiRef

      protected double phiRef
  • Constructor Details

    • SphereExplosion

      public SphereExplosion(net.minecraft.server.level.ServerLevel 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, net.minecraft.world.phys.Vec3 pos, float power, boolean createFire, net.minecraft.world.level.Explosion.BlockInteraction destructionType)
  • Method Details

    • calculateReceivedDamage

      public static float calculateReceivedDamage(net.minecraft.world.phys.Vec3 pos, net.minecraft.world.entity.Entity entity)
    • radius

      public float radius()
      Specified by:
      radius in interface net.minecraft.world.level.Explosion
    • center

      public net.minecraft.world.phys.Vec3 center()
      Specified by:
      center in interface net.minecraft.world.level.Explosion
    • getKnockbackByPlayer

      public Map<net.minecraft.world.entity.player.Player, net.minecraft.world.phys.Vec3> getKnockbackByPlayer()
    • level

      public net.minecraft.server.level.ServerLevel level()
      Specified by:
      level in interface net.minecraft.world.level.Explosion
    • getIndirectSourceEntity

      @Nullable public @Nullable net.minecraft.world.entity.LivingEntity getIndirectSourceEntity()
      Specified by:
      getIndirectSourceEntity in interface net.minecraft.world.level.Explosion
    • getDirectSourceEntity

      @Nullable public @Nullable net.minecraft.world.entity.Entity getDirectSourceEntity()
      Specified by:
      getDirectSourceEntity in interface net.minecraft.world.level.Explosion
    • getDamageSource

      public net.minecraft.world.damagesource.DamageSource getDamageSource()
    • getBlockInteraction

      public net.minecraft.world.level.Explosion.BlockInteraction getBlockInteraction()
      Specified by:
      getBlockInteraction in interface net.minecraft.world.level.Explosion
    • canTriggerBlocks

      public boolean canTriggerBlocks()
      Specified by:
      canTriggerBlocks in interface net.minecraft.world.level.Explosion
    • shouldAffectBlocklikeEntities

      public boolean shouldAffectBlocklikeEntities()
      Specified by:
      shouldAffectBlocklikeEntities in interface net.minecraft.world.level.Explosion
    • isSmall

      public boolean isSmall()
    • calcDakaXdirection

      public double calcDakaXdirection(int l)
    • explode

      public int explode()