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_346109_, BlockGetter p_345381_, BlockPos p_344921_, BlockState p_346239_, FluidState p_345105_) float
getKnockbackMultiplier
(Entity p_345651_) boolean
shouldBlockExplode
(Explosion p_345994_, BlockGetter p_345042_, BlockPos p_345057_, BlockState p_345932_, float p_345776_) boolean
shouldDamageEntity
(Explosion p_346248_, Entity p_344983_) 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_346109_, BlockGetter p_345381_, BlockPos p_344921_, BlockState p_346239_, FluidState p_345105_) - Overrides:
getBlockExplosionResistance
in classExplosionDamageCalculator
-
shouldBlockExplode
public boolean shouldBlockExplode(Explosion p_345994_, BlockGetter p_345042_, BlockPos p_345057_, BlockState p_345932_, float p_345776_) - Overrides:
shouldBlockExplode
in classExplosionDamageCalculator
-
shouldDamageEntity
- Overrides:
shouldDamageEntity
in classExplosionDamageCalculator
-
getKnockbackMultiplier
- Overrides:
getKnockbackMultiplier
in classExplosionDamageCalculator
-