Class SphereExplosion
java.lang.Object
me.emafire003.dev.ohmymeteors.util.SphereExplosion
- All Implemented Interfaces:
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 -
Constructor Summary
ConstructorsConstructorDescriptionSphereExplosion(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 TypeMethodDescriptiondoublecalcDakaXdirection(int l) static floatcalculateReceivedDamage(net.minecraft.world.phys.Vec3 pos, net.minecraft.world.entity.Entity entity) booleannet.minecraft.world.phys.Vec3center()intexplode()net.minecraft.world.level.Explosion.BlockInteractionnet.minecraft.world.damagesource.DamageSource@Nullable net.minecraft.world.entity.Entity@Nullable net.minecraft.world.entity.LivingEntityMap<net.minecraft.world.entity.player.Player, net.minecraft.world.phys.Vec3> booleanisSmall()net.minecraft.server.level.ServerLevellevel()floatradius()boolean
-
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:
radiusin interfacenet.minecraft.world.level.Explosion
-
center
public net.minecraft.world.phys.Vec3 center()- Specified by:
centerin interfacenet.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:
levelin interfacenet.minecraft.world.level.Explosion
-
getIndirectSourceEntity
@Nullable public @Nullable net.minecraft.world.entity.LivingEntity getIndirectSourceEntity()- Specified by:
getIndirectSourceEntityin interfacenet.minecraft.world.level.Explosion
-
getDirectSourceEntity
@Nullable public @Nullable net.minecraft.world.entity.Entity getDirectSourceEntity()- Specified by:
getDirectSourceEntityin interfacenet.minecraft.world.level.Explosion
-
getDamageSource
public net.minecraft.world.damagesource.DamageSource getDamageSource() -
getBlockInteraction
public net.minecraft.world.level.Explosion.BlockInteraction getBlockInteraction()- Specified by:
getBlockInteractionin interfacenet.minecraft.world.level.Explosion
-
canTriggerBlocks
public boolean canTriggerBlocks()- Specified by:
canTriggerBlocksin interfacenet.minecraft.world.level.Explosion
-
shouldAffectBlocklikeEntities
public boolean shouldAffectBlocklikeEntities()- Specified by:
shouldAffectBlocklikeEntitiesin interfacenet.minecraft.world.level.Explosion
-
isSmall
public boolean isSmall() -
calcDakaXdirection
public double calcDakaXdirection(int l) -
explode
public int explode()
-