public class Explosion
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Explosion.Mode |
Modifier and Type | Field and Description |
---|---|
private java.util.List<BlockPos> |
affectedBlockPositions |
private boolean |
causesFire |
private DamageSource |
damageSource |
private Entity |
exploder |
private Explosion.Mode |
mode |
private java.util.Map<PlayerEntity,Vec3d> |
playerKnockbackMap |
private Vec3d |
position |
private java.util.Random |
random |
private float |
size |
private World |
world |
private double |
x |
private double |
y |
private double |
z |
Constructor and Description |
---|
Explosion(World worldIn,
Entity exploderIn,
double xIn,
double yIn,
double zIn,
float sizeIn,
boolean causesFireIn,
Explosion.Mode modeIn) |
Explosion(World worldIn,
Entity exploderIn,
double xIn,
double yIn,
double zIn,
float sizeIn,
boolean causesFireIn,
Explosion.Mode modeIn,
java.util.List<BlockPos> affectedBlockPositionsIn) |
Explosion(World worldIn,
Entity entityIn,
double x,
double y,
double z,
float size,
java.util.List<BlockPos> affectedPositions) |
Modifier and Type | Method and Description |
---|---|
void |
clearAffectedBlockPositions() |
void |
doExplosionA() |
void |
doExplosionB(boolean spawnParticles) |
private static void |
func_229976_a_(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> p_229976_0_,
ItemStack p_229976_1_,
BlockPos p_229976_2_) |
java.util.List<BlockPos> |
getAffectedBlockPositions() |
static float |
getBlockDensity(Vec3d p_222259_0_,
Entity p_222259_1_) |
DamageSource |
getDamageSource() |
LivingEntity |
getExplosivePlacedBy() |
java.util.Map<PlayerEntity,Vec3d> |
getPlayerKnockbackMap() |
Vec3d |
getPosition() |
void |
setDamageSource(DamageSource damageSourceIn) |
private final boolean causesFire
private final Explosion.Mode mode
private final java.util.Random random
private final World world
private final double x
private final double y
private final double z
@Nullable private final Entity exploder
private final float size
private DamageSource damageSource
private final java.util.List<BlockPos> affectedBlockPositions
private final java.util.Map<PlayerEntity,Vec3d> playerKnockbackMap
private final Vec3d position
public Explosion(World worldIn, @Nullable Entity entityIn, double x, double y, double z, float size, java.util.List<BlockPos> affectedPositions)
public Explosion(World worldIn, @Nullable Entity exploderIn, double xIn, double yIn, double zIn, float sizeIn, boolean causesFireIn, Explosion.Mode modeIn, java.util.List<BlockPos> affectedBlockPositionsIn)
public Explosion(World worldIn, @Nullable Entity exploderIn, double xIn, double yIn, double zIn, float sizeIn, boolean causesFireIn, Explosion.Mode modeIn)
public void doExplosionA()
public void doExplosionB(boolean spawnParticles)
private static void func_229976_a_(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> p_229976_0_, ItemStack p_229976_1_, BlockPos p_229976_2_)
public DamageSource getDamageSource()
public void setDamageSource(DamageSource damageSourceIn)
public java.util.Map<PlayerEntity,Vec3d> getPlayerKnockbackMap()
@Nullable public LivingEntity getExplosivePlacedBy()
public void clearAffectedBlockPositions()
public java.util.List<BlockPos> getAffectedBlockPositions()
public Vec3d getPosition()