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.BlockInteraction
private final Vec3
private final ExplosionDamageCalculator
private final DamageSource
private static final ExplosionDamageCalculator
private final boolean
private static final float
private final ServerLevel
private static final int
private final float
private final Entity
-
Constructor Summary
ConstructorsConstructorDescriptionServerExplosion
(ServerLevel p_361323_, Entity p_365060_, DamageSource p_360713_, ExplosionDamageCalculator p_360818_, Vec3 p_365404_, float p_365227_, boolean p_365067_, Explosion.BlockInteraction p_363174_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addOrAppendStack
(List<ServerExplosion.StackCollector> p_363272_, ItemStack p_362153_, BlockPos p_361248_) boolean
center()
private void
createFire
(List<BlockPos> p_362665_) void
explode()
static float
getSeenPercent
(Vec3 p_363930_, Entity p_363796_) private void
Deprecated.private void
hurtEntities
(List<BlockPos> blocks) private boolean
private void
interactWithBlocks
(List<BlockPos> p_362013_) boolean
isSmall()
level()
private ExplosionDamageCalculator
makeDamageCalculator
(Entity p_364459_) float
radius()
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 p_361323_, @Nullable Entity p_365060_, @Nullable DamageSource p_360713_, @Nullable ExplosionDamageCalculator p_360818_, Vec3 p_365404_, float p_365227_, boolean p_365067_, Explosion.BlockInteraction p_363174_)
-
-
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> p_363272_, ItemStack p_362153_, BlockPos p_361248_) -
interactsWithBlocks
private boolean interactsWithBlocks() -
getHitPlayers
-
level
-
getIndirectSourceEntity
- Specified by:
getIndirectSourceEntity
in interfaceExplosion
-
getDirectSourceEntity
- Specified by:
getDirectSourceEntity
in interfaceExplosion
-
getDamageSource
-
getBlockInteraction
- Specified by:
getBlockInteraction
in interfaceExplosion
-
canTriggerBlocks
public boolean canTriggerBlocks()- Specified by:
canTriggerBlocks
in interfaceExplosion
-
shouldAffectBlocklikeEntities
public boolean shouldAffectBlocklikeEntities()- Specified by:
shouldAffectBlocklikeEntities
in interfaceExplosion
-
isSmall
public boolean isSmall()
-