Package net.minecraft.world.level
Class ExplosionDamageCalculator
java.lang.Object
net.minecraft.world.level.ExplosionDamageCalculator
- Direct Known Subclasses:
EntityBasedExplosionDamageCalculator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockExplosionResistance
(Explosion p_46099_, BlockGetter p_46100_, BlockPos p_46101_, BlockState p_46102_, FluidState p_46103_) boolean
shouldBlockExplode
(Explosion p_46094_, BlockGetter p_46095_, BlockPos p_46096_, BlockState p_46097_, float p_46098_)
-
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_)
-