public class Explosion extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Explosion.DestructionType |
Modifier and Type | Field and Description |
---|---|
private List<BlockPos> |
affectedBlocks |
private Map<PlayerEntity,Vec3d> |
affectedPlayers |
private ExplosionBehavior |
behavior |
private boolean |
createFire |
private DamageSource |
damageSource |
private Explosion.DestructionType |
destructionType |
private Entity |
entity |
private static ExplosionBehavior |
field_25818 |
private float |
power |
private Random |
random |
private World |
world |
private double |
x |
private double |
y |
private double |
z |
Constructor and Description |
---|
Explosion(World world,
Entity entity,
DamageSource damageSource,
ExplosionBehavior explosionBehavior,
double double2,
double double3,
double double4,
float float2,
boolean bool,
Explosion.DestructionType destructionType) |
Explosion(World world,
Entity entity,
double double2,
double double3,
double double4,
float float2,
boolean bool,
Explosion.DestructionType destructionType) |
Explosion(World world,
Entity entity,
double x,
double y,
double z,
float power,
boolean createFire,
Explosion.DestructionType destructionType,
List<BlockPos> affectedBlocks) |
Explosion(World world,
Entity entity,
double x,
double y,
double z,
float power,
List<BlockPos> affectedBlocks) |
Modifier and Type | Method and Description |
---|---|
void |
affectWorld(boolean bool) |
private ExplosionBehavior |
chooseBehavior(Entity entity) |
void |
clearAffectedBlocks() |
void |
collectBlocksAndDamageEntities() |
List<BlockPos> |
getAffectedBlocks() |
Map<PlayerEntity,Vec3d> |
getAffectedPlayers() |
LivingEntity |
getCausingEntity() |
DamageSource |
getDamageSource() |
static float |
getExposure(Vec3d source,
Entity entity) |
private static void |
method_24023(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> objectArrayList,
ItemStack itemStack,
BlockPos blockPos) |
private static final ExplosionBehavior field_25818
private final boolean createFire
private final Explosion.DestructionType destructionType
private final Random random
private final World world
private final double x
private final double y
private final double z
private final float power
private final DamageSource damageSource
private final ExplosionBehavior behavior
private final Map<PlayerEntity,Vec3d> affectedPlayers
@Environment(value=CLIENT) public Explosion(World world, @Nullable Entity entity, double x, double y, double z, float power, List<BlockPos> affectedBlocks)
@Environment(value=CLIENT) public Explosion(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, List<BlockPos> affectedBlocks)
@Environment(value=CLIENT) public Explosion(World world, @Nullable Entity entity, double double2, double double3, double double4, float float2, boolean bool, Explosion.DestructionType destructionType)
public Explosion(World world, @Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior explosionBehavior, double double2, double double3, double double4, float float2, boolean bool, Explosion.DestructionType destructionType)
private ExplosionBehavior chooseBehavior(@Nullable Entity entity)
public void collectBlocksAndDamageEntities()
public void affectWorld(boolean bool)
private static void method_24023(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> objectArrayList, ItemStack itemStack, BlockPos blockPos)
public DamageSource getDamageSource()
public Map<PlayerEntity,Vec3d> getAffectedPlayers()
@Nullable public LivingEntity getCausingEntity()
public void clearAffectedBlocks()