Package net.minecraft.world.level
Class SimpleExplosionDamageCalculator
java.lang.Object
net.minecraft.world.level.ExplosionDamageCalculator
net.minecraft.world.level.SimpleExplosionDamageCalculator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockExplosionResistance
(Explosion p_344500_, BlockGetter p_342364_, BlockPos p_342845_, BlockState p_343076_, FluidState p_343209_) float
getKnockbackMultiplier
(Entity p_342532_) boolean
shouldBlockExplode
(Explosion p_344299_, BlockGetter p_344794_, BlockPos p_343238_, BlockState p_345107_, float p_343990_) boolean
shouldDamageEntity
(Explosion p_342404_, Entity p_345509_) Methods inherited from class net.minecraft.world.level.ExplosionDamageCalculator
getEntityDamageAmount
-
Field Details
-
explodesBlocks
private final boolean explodesBlocks -
damagesEntities
private final boolean damagesEntities -
knockbackMultiplier
-
immuneBlocks
-
-
Constructor Details
-
SimpleExplosionDamageCalculator
-
-
Method Details
-
getBlockExplosionResistance
public Optional<Float> getBlockExplosionResistance(Explosion p_344500_, BlockGetter p_342364_, BlockPos p_342845_, BlockState p_343076_, FluidState p_343209_) - Overrides:
getBlockExplosionResistance
in classExplosionDamageCalculator
-
shouldBlockExplode
public boolean shouldBlockExplode(Explosion p_344299_, BlockGetter p_344794_, BlockPos p_343238_, BlockState p_345107_, float p_343990_) - Overrides:
shouldBlockExplode
in classExplosionDamageCalculator
-
shouldDamageEntity
- Overrides:
shouldDamageEntity
in classExplosionDamageCalculator
-
getKnockbackMultiplier
- Overrides:
getKnockbackMultiplier
in classExplosionDamageCalculator
-