Package net.minecraft.world.level
Class ServerExplosion
java.lang.Object
net.minecraft.world.level.ServerExplosion
- All Implemented Interfaces:
Explosion
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.level.Explosion
Explosion.BlockInteraction -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Explosion.BlockInteractionprivate final Vec3private final ExplosionDamageCalculatorprivate final DamageSourceprivate static final ExplosionDamageCalculatorprivate final booleanprivate static final floatprivate final ServerLevelprivate static final intprivate final floatprivate final Entity -
Constructor Summary
ConstructorsConstructorDescriptionServerExplosion(ServerLevel pLevel, Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, Vec3 pCenter, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddOrAppendStack(List<ServerExplosion.StackCollector> pStackCollectors, ItemStack pStack, BlockPos pPos) booleancenter()private voidcreateFire(List<BlockPos> pBlocks) voidexplode()static floatgetSeenPercent(Vec3 pExplosionVector, Entity pEntity) private voidDeprecated.private voidhurtEntities(List<BlockPos> blocks) private booleanprivate voidinteractWithBlocks(List<BlockPos> pBlocks) booleanisSmall()level()private ExplosionDamageCalculatormakeDamageCalculator(Entity pEntity) floatradius()boolean
-
Field Details
-
EXPLOSION_DAMAGE_CALCULATOR
-
MAX_DROPS_PER_COMBINED_STACK
private static final int MAX_DROPS_PER_COMBINED_STACK- See Also:
-
LARGE_EXPLOSION_RADIUS
private static final float LARGE_EXPLOSION_RADIUS- See Also:
-
fire
private final boolean fire -
blockInteraction
-
level
-
center
-
source
-
radius
private final float radius -
damageSource
-
damageCalculator
-
hitPlayers
-
-
Constructor Details
-
ServerExplosion
public ServerExplosion(ServerLevel pLevel, @Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, Vec3 pCenter, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction)
-
-
Method Details
-
makeDamageCalculator
-
getSeenPercent
-
radius
public float radius() -
center
-
calculateExplodedPositions
-
hurtEntities
Deprecated. -
hurtEntities
-
interactWithBlocks
-
createFire
-
explode
public void explode() -
addOrAppendStack
private static void addOrAppendStack(List<ServerExplosion.StackCollector> pStackCollectors, ItemStack pStack, BlockPos pPos) -
interactsWithBlocks
private boolean interactsWithBlocks() -
getHitPlayers
-
level
-
getIndirectSourceEntity
- Specified by:
getIndirectSourceEntityin interfaceExplosion
-
getDirectSourceEntity
- Specified by:
getDirectSourceEntityin interfaceExplosion
-
getDamageSource
-
getBlockInteraction
- Specified by:
getBlockInteractionin interfaceExplosion
-
canTriggerBlocks
public boolean canTriggerBlocks()- Specified by:
canTriggerBlocksin interfaceExplosion
-
shouldAffectBlocklikeEntities
public boolean shouldAffectBlocklikeEntities()- Specified by:
shouldAffectBlocklikeEntitiesin interfaceExplosion
-
isSmall
public boolean isSmall()
-