Package net.minecraft.world.explosion
Class EntityExplosionBehavior
java.lang.Object
net.minecraft.world.explosion.EntityExplosionBehavior
- All Implemented Interfaces:
ExplosionBehavior
class EntityExplosionBehavior extends Object implements ExplosionBehavior
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityExplosionBehavior(Entity entity) -
Method Summary
Modifier and Type Method Description booleancanDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float power)Optional<Float>getBlastResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState)
-
Field Details
-
Constructor Details
-
EntityExplosionBehavior
EntityExplosionBehavior(Entity entity)
-
-
Method Details
-
getBlastResistance
public Optional<Float> getBlastResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState)- Specified by:
getBlastResistancein interfaceExplosionBehavior
-
canDestroyBlock
public boolean canDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float power)- Specified by:
canDestroyBlockin interfaceExplosionBehavior
-