Package net.minecraft.world.explosion
Class Explosion
java.lang.Object
net.minecraft.world.explosion.Explosion
public class Explosion extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Explosion.DestructionType
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description Explosion(World world, Entity entity, double x, double y, double z, float power, boolean createFire, 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)
Explosion(World world, Entity entity, DamageSource damageSource, ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType)
-
Method Summary
Modifier and Type Method 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(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> objectArrayList, ItemStack itemStack, BlockPos blockPos)
-
Field Details
-
field_25818
-
createFire
private final boolean createFire -
destructionType
-
random
-
world
-
x
private final double x -
y
private final double y -
z
private final double z -
entity
-
power
private final float power -
damageSource
-
behavior
-
affectedBlocks
-
affectedPlayers
-
-
Constructor Details
-
Explosion
-
Explosion
-
Explosion
@Environment(CLIENT) public Explosion(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) -
Explosion
public Explosion(World world, @Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType)
-
-
Method Details
-
chooseBehavior
-
getExposure
-
collectBlocksAndDamageEntities
public void collectBlocksAndDamageEntities() -
affectWorld
public void affectWorld(boolean bool) -
method_24023
private static void method_24023(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> objectArrayList, ItemStack itemStack, BlockPos blockPos) -
getDamageSource
-
getAffectedPlayers
-
getCausingEntity
-
clearAffectedBlocks
public void clearAffectedBlocks() -
getAffectedBlocks
-