Package net.minecraft.world.level
Class ExplosionDamageCalculator
java.lang.Object
net.minecraft.world.level.ExplosionDamageCalculator
- Direct Known Subclasses:
EntityBasedExplosionDamageCalculator
,SimpleExplosionDamageCalculator
-
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_310428_, Entity p_310135_) float
getKnockbackMultiplier
(Entity p_330296_) boolean
shouldBlockExplode
(Explosion p_46094_, BlockGetter p_46095_, BlockPos p_46096_, BlockState p_46097_, float p_46098_) boolean
shouldDamageEntity
(Explosion p_312772_, Entity p_311132_)
-
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
-
getKnockbackMultiplier
-
getEntityDamageAmount
-