类 Explosion
java.lang.Object
net.minecraft.world.level.Explosion
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final Explosion.BlockInteraction
private final ExplosionDamageCalculator
private final DamageSource
private static final ExplosionDamageCalculator
private final boolean
private final Level
private static final int
private final Vec3
private final float
private final RandomSource
private final Entity
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<BlockPos>
private final double
private final double
private final double
-
构造器概要
构造器构造器说明Explosion
(Level pLevel, Entity pSource, double pToBlowX, double pToBlowY, double pToBlowZ, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction) Explosion
(Level pLevel, Entity pSource, double pToBlowX, double pToBlowY, double pToBlowZ, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction, List<BlockPos> pPositions) Explosion
(Level pLevel, Entity pSource, double pToBlowX, double pToBlowY, double pToBlowZ, float pRadius, List<BlockPos> pPositions) Explosion
(Level pLevel, Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, double pToBlowX, double pToBlowY, double pToBlowZ, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction) -
方法概要
修饰符和类型方法说明private static void
addBlockDrops
(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> pDropPositionArray, ItemStack pStack, BlockPos pPos) void
void
explode()
void
finalizeExplosion
(boolean pSpawnParticles) static float
getSeenPercent
(Vec3 pExplosionVector, Entity pEntity) boolean
private ExplosionDamageCalculator
makeDamageCalculator
(Entity pEntity)
-
字段详细资料
-
EXPLOSION_DAMAGE_CALCULATOR
-
MAX_DROPS_PER_COMBINED_STACK
private static final int MAX_DROPS_PER_COMBINED_STACK- 另请参阅:
-
fire
private final boolean fire -
blockInteraction
-
random
-
level
-
x
private final double x -
y
private final double y -
z
private final double z -
source
-
radius
private final float radius -
damageSource
-
damageCalculator
-
toBlow
-
hitPlayers
-
position
-
-
构造器详细资料
-
Explosion
-
Explosion
public Explosion(Level pLevel, @Nullable Entity pSource, double pToBlowX, double pToBlowY, double pToBlowZ, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction, List<BlockPos> pPositions) -
Explosion
public Explosion(Level pLevel, @Nullable Entity pSource, double pToBlowX, double pToBlowY, double pToBlowZ, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction) -
Explosion
public Explosion(Level pLevel, @Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, double pToBlowX, double pToBlowY, double pToBlowZ, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction)
-
-
方法详细资料
-
makeDamageCalculator
-
getSeenPercent
-
explode
public void explode() -
finalizeExplosion
public void finalizeExplosion(boolean pSpawnParticles) -
interactsWithBlocks
public boolean interactsWithBlocks() -
addBlockDrops
-
getDamageSource
-
getHitPlayers
-
getIndirectSourceEntity
-
getDirectSourceEntity
-
clearToBlow
public void clearToBlow() -
getToBlow
-
getPosition
-
getExploder
-