Package net.minecraft.world
Class Explosion
- java.lang.Object
-
- net.minecraft.world.Explosion
-
public class Explosion extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Explosion.Mode
-
Field Summary
Fields Modifier and Type Field Description private Explosion.Mode
blockInteraction
private ExplosionContext
damageCalculator
private DamageSource
damageSource
private static ExplosionContext
EXPLOSION_DAMAGE_CALCULATOR
private boolean
fire
private java.util.Map<PlayerEntity,Vector3d>
hitPlayers
private World
level
private Vector3d
position
private float
radius
private java.util.Random
random
private Entity
source
private java.util.List<BlockPos>
toBlow
private double
x
private double
y
private double
z
-
Constructor Summary
Constructors Constructor Description Explosion(World p_i50007_1_, Entity p_i50007_2_, double p_i50007_3_, double p_i50007_5_, double p_i50007_7_, float p_i50007_9_, boolean p_i50007_10_, Explosion.Mode p_i50007_11_)
Explosion(World p_i50006_1_, Entity p_i50006_2_, double p_i50006_3_, double p_i50006_5_, double p_i50006_7_, float p_i50006_9_, boolean p_i50006_10_, Explosion.Mode p_i50006_11_, java.util.List<BlockPos> p_i50006_12_)
Explosion(World p_i45752_1_, Entity p_i45752_2_, double p_i45752_3_, double p_i45752_5_, double p_i45752_7_, float p_i45752_9_, java.util.List<BlockPos> p_i45752_10_)
Explosion(World p_i231610_1_, Entity p_i231610_2_, DamageSource p_i231610_3_, ExplosionContext p_i231610_4_, double p_i231610_5_, double p_i231610_7_, double p_i231610_9_, float p_i231610_11_, boolean p_i231610_12_, Explosion.Mode p_i231610_13_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
addBlockDrops(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> p_229976_0_, ItemStack p_229976_1_, BlockPos p_229976_2_)
void
clearToBlow()
void
explode()
void
finalizeExplosion(boolean p_77279_1_)
DamageSource
getDamageSource()
Entity
getExploder()
java.util.Map<PlayerEntity,Vector3d>
getHitPlayers()
Vector3d
getPosition()
static float
getSeenPercent(Vector3d p_222259_0_, Entity p_222259_1_)
LivingEntity
getSourceMob()
java.util.List<BlockPos>
getToBlow()
private ExplosionContext
makeDamageCalculator(Entity p_234894_1_)
-
-
-
Field Detail
-
EXPLOSION_DAMAGE_CALCULATOR
private static final ExplosionContext EXPLOSION_DAMAGE_CALCULATOR
-
fire
private final boolean fire
-
blockInteraction
private final Explosion.Mode blockInteraction
-
random
private final java.util.Random random
-
level
private final World level
-
x
private final double x
-
y
private final double y
-
z
private final double z
-
source
@Nullable private final Entity source
-
radius
private final float radius
-
damageSource
private final DamageSource damageSource
-
damageCalculator
private final ExplosionContext damageCalculator
-
toBlow
private final java.util.List<BlockPos> toBlow
-
hitPlayers
private final java.util.Map<PlayerEntity,Vector3d> hitPlayers
-
position
private final Vector3d position
-
-
Constructor Detail
-
Explosion
public Explosion(World p_i45752_1_, @Nullable Entity p_i45752_2_, double p_i45752_3_, double p_i45752_5_, double p_i45752_7_, float p_i45752_9_, java.util.List<BlockPos> p_i45752_10_)
-
Explosion
public Explosion(World p_i50006_1_, @Nullable Entity p_i50006_2_, double p_i50006_3_, double p_i50006_5_, double p_i50006_7_, float p_i50006_9_, boolean p_i50006_10_, Explosion.Mode p_i50006_11_, java.util.List<BlockPos> p_i50006_12_)
-
Explosion
public Explosion(World p_i50007_1_, @Nullable Entity p_i50007_2_, double p_i50007_3_, double p_i50007_5_, double p_i50007_7_, float p_i50007_9_, boolean p_i50007_10_, Explosion.Mode p_i50007_11_)
-
Explosion
public Explosion(World p_i231610_1_, @Nullable Entity p_i231610_2_, @Nullable DamageSource p_i231610_3_, @Nullable ExplosionContext p_i231610_4_, double p_i231610_5_, double p_i231610_7_, double p_i231610_9_, float p_i231610_11_, boolean p_i231610_12_, Explosion.Mode p_i231610_13_)
-
-
Method Detail
-
makeDamageCalculator
private ExplosionContext makeDamageCalculator(@Nullable Entity p_234894_1_)
-
explode
public void explode()
-
finalizeExplosion
public void finalizeExplosion(boolean p_77279_1_)
-
addBlockDrops
private static void addBlockDrops(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> p_229976_0_, ItemStack p_229976_1_, BlockPos p_229976_2_)
-
getDamageSource
public DamageSource getDamageSource()
-
getHitPlayers
public java.util.Map<PlayerEntity,Vector3d> getHitPlayers()
-
getSourceMob
@Nullable public LivingEntity getSourceMob()
-
clearToBlow
public void clearToBlow()
-
getToBlow
public java.util.List<BlockPos> getToBlow()
-
getPosition
public Vector3d getPosition()
-
getExploder
@Nullable public Entity getExploder()
-
-