类 ServerExplosion
java.lang.Object
net.minecraft.world.level.ServerExplosion
- 所有已实现的接口:
Explosion
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.world.level.Explosion
Explosion.BlockInteraction
-
字段概要
字段修饰符和类型字段说明private 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
-
构造器概要
构造器构造器说明ServerExplosion
(ServerLevel p_363225_, Entity p_367780_, DamageSource p_367845_, ExplosionDamageCalculator p_361628_, Vec3 p_364875_, float p_361128_, boolean p_362786_, Explosion.BlockInteraction p_367128_) -
方法概要
修饰符和类型方法说明private static void
addOrAppendStack
(List<ServerExplosion.StackCollector> p_364783_, ItemStack p_365928_, BlockPos p_366332_) boolean
center()
private void
createFire
(List<BlockPos> p_365156_) void
explode()
static float
getSeenPercent
(Vec3 p_367358_, Entity p_369280_) private void
hurtEntities
(List<BlockPos> blocks) private boolean
private void
interactWithBlocks
(List<BlockPos> p_361066_) boolean
isSmall()
level()
private ExplosionDamageCalculator
makeDamageCalculator
(Entity p_362997_) float
radius()
boolean
-
字段详细资料
-
EXPLOSION_DAMAGE_CALCULATOR
-
MAX_DROPS_PER_COMBINED_STACK
private static final int MAX_DROPS_PER_COMBINED_STACK- 另请参阅:
-
LARGE_EXPLOSION_RADIUS
private static final float LARGE_EXPLOSION_RADIUS- 另请参阅:
-
fire
private final boolean fire -
blockInteraction
-
level
-
center
-
source
-
radius
private final float radius -
damageSource
-
damageCalculator
-
hitPlayers
-
-
构造器详细资料
-
ServerExplosion
public ServerExplosion(ServerLevel p_363225_, @Nullable Entity p_367780_, @Nullable DamageSource p_367845_, @Nullable ExplosionDamageCalculator p_361628_, Vec3 p_364875_, float p_361128_, boolean p_362786_, Explosion.BlockInteraction p_367128_)
-
-
方法详细资料
-
makeDamageCalculator
-
getSeenPercent
-
radius
public float radius() -
center
-
calculateExplodedPositions
-
hurtEntities
-
interactWithBlocks
-
createFire
-
explode
public void explode() -
addOrAppendStack
private static void addOrAppendStack(List<ServerExplosion.StackCollector> p_364783_, ItemStack p_365928_, BlockPos p_366332_) -
interactsWithBlocks
private boolean interactsWithBlocks() -
getHitPlayers
-
level
-
getIndirectSourceEntity
- 指定者:
getIndirectSourceEntity
在接口中Explosion
-
getDirectSourceEntity
- 指定者:
getDirectSourceEntity
在接口中Explosion
-
getDamageSource
-
getBlockInteraction
- 指定者:
getBlockInteraction
在接口中Explosion
-
canTriggerBlocks
public boolean canTriggerBlocks()- 指定者:
canTriggerBlocks
在接口中Explosion
-
shouldAffectBlocklikeEntities
public boolean shouldAffectBlocklikeEntities()- 指定者:
shouldAffectBlocklikeEntities
在接口中Explosion
-
isSmall
public boolean isSmall()
-