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 classExplosion.DestructionType -
Field Summary
Fields Modifier and Type Field Description private List<BlockPos>affectedBlocksprivate Map<PlayerEntity,Vec3d>affectedPlayersprivate ExplosionBehaviorbehaviorprivate booleancreateFireprivate DamageSourcedamageSourceprivate Explosion.DestructionTypedestructionTypeprivate Entityentityprivate static ExplosionBehaviorfield_25818private floatpowerprivate Randomrandomprivate Worldworldprivate doublexprivate doubleyprivate doublez -
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 voidaffectWorld(boolean bool)private ExplosionBehaviorchooseBehavior(Entity entity)voidclearAffectedBlocks()voidcollectBlocksAndDamageEntities()List<BlockPos>getAffectedBlocks()Map<PlayerEntity,Vec3d>getAffectedPlayers()LivingEntitygetCausingEntity()DamageSourcegetDamageSource()static floatgetExposure(Vec3d source, Entity entity)private static voidmethod_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
-