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 pLevel, Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, Vec3 pCenter, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addOrAppendStack
(List<ServerExplosion.StackCollector> pStackCollectors, ItemStack pStack, BlockPos pPos) boolean
center()
private void
createFire
(List<BlockPos> pBlocks) void
explode()
static float
getSeenPercent
(Vec3 pExplosionVector, Entity pEntity) private void
Deprecated.private void
hurtEntities
(List<BlockPos> blocks) private boolean
private void
interactWithBlocks
(List<BlockPos> pBlocks) boolean
isSmall()
level()
private ExplosionDamageCalculator
makeDamageCalculator
(Entity pEntity) 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 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:
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()
-