Package net.minecraft.world
Class EntityExplosionContext
- java.lang.Object
-
- net.minecraft.world.ExplosionContext
-
- net.minecraft.world.EntityExplosionContext
-
public class EntityExplosionContext extends ExplosionContext
-
-
Constructor Summary
Constructors Constructor Description EntityExplosionContext(Entity p_i231609_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Float>
getBlockExplosionResistance(Explosion p_230312_1_, IBlockReader p_230312_2_, BlockPos p_230312_3_, BlockState p_230312_4_, FluidState p_230312_5_)
boolean
shouldBlockExplode(Explosion p_230311_1_, IBlockReader p_230311_2_, BlockPos p_230311_3_, BlockState p_230311_4_, float p_230311_5_)
-
-
-
Field Detail
-
source
private final Entity source
-
-
Constructor Detail
-
EntityExplosionContext
public EntityExplosionContext(Entity p_i231609_1_)
-
-
Method Detail
-
getBlockExplosionResistance
public java.util.Optional<java.lang.Float> getBlockExplosionResistance(Explosion p_230312_1_, IBlockReader p_230312_2_, BlockPos p_230312_3_, BlockState p_230312_4_, FluidState p_230312_5_)
- Overrides:
getBlockExplosionResistance
in classExplosionContext
-
shouldBlockExplode
public boolean shouldBlockExplode(Explosion p_230311_1_, IBlockReader p_230311_2_, BlockPos p_230311_3_, BlockState p_230311_4_, float p_230311_5_)
- Overrides:
shouldBlockExplode
in classExplosionContext
-
-