Package net.minecraft.world.level
Class ExplosionDamageCalculator
java.lang.Object
net.minecraft.world.level.ExplosionDamageCalculator
- Direct Known Subclasses:
EntityBasedExplosionDamageCalculator
,WindCharge.WindChargeExplosionDamageCalculator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockExplosionResistance
(Explosion p_46099_, BlockGetter p_46100_, BlockPos p_46101_, BlockState p_46102_, FluidState p_46103_) float
getEntityDamageAmount
(Explosion p_311793_, Entity p_311929_) boolean
shouldBlockExplode
(Explosion p_46094_, BlockGetter p_46095_, BlockPos p_46096_, BlockState p_46097_, float p_46098_) boolean
shouldDamageEntity
(Explosion p_314652_, Entity p_314454_)
-
Constructor Details
-
ExplosionDamageCalculator
public ExplosionDamageCalculator()
-
-
Method Details
-
getBlockExplosionResistance
public Optional<Float> getBlockExplosionResistance(Explosion p_46099_, BlockGetter p_46100_, BlockPos p_46101_, BlockState p_46102_, FluidState p_46103_) -
shouldBlockExplode
public boolean shouldBlockExplode(Explosion p_46094_, BlockGetter p_46095_, BlockPos p_46096_, BlockState p_46097_, float p_46098_) -
shouldDamageEntity
-
getEntityDamageAmount
-