Class NonEntityDamagingExplosion
java.lang.Object
net.minecraft.world.explosion.Explosion
io.github.xrickastley.sevenelements.util.NonEntityDamagingExplosion
A class for explosions that don't damage entities.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.explosion.Explosion
Explosion.DestructionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.objects.ObjectArrayList<BlockPos>private Map<PlayerEntity,Vec3d> private ExplosionBehaviorprivate @Nullable Entityprivate floatprivate Worldprivate doubleprivate doubleprivate double -
Constructor Summary
ConstructorsConstructorDescriptionNonEntityDamagingExplosion(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) NonEntityDamagingExplosion(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, List<BlockPos> affectedBlocks) NonEntityDamagingExplosion(World world, @Nullable Entity entity, double x, double y, double z, float power, List<BlockPos> affectedBlocks) NonEntityDamagingExplosion(World world, @Nullable Entity entity, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) -
Method Summary
Modifier and TypeMethodDescriptionvoidAnother version ofExplosion.collectBlocksAndDamageEntities(), but pushes entities (applies velocity) instead of damaging them.private voidMethods inherited from class net.minecraft.world.explosion.Explosion
affectWorld, clearAffectedBlocks, collectBlocksAndDamageEntities, getAffectedBlocks, getAffectedPlayers, getCausingEntity, getDamageSource, getEntity, getExposure, shouldDestroy
-
Field Details
-
world
-
x
private double x -
y
private double y -
z
private double z -
entity
-
power
private float power -
behavior
-
affectedBlocks
-
affectedPlayers
-
affectedEntities
-
-
Constructor Details
-
NonEntityDamagingExplosion
-
NonEntityDamagingExplosion
public NonEntityDamagingExplosion(World world, @Nullable @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, List<BlockPos> affectedBlocks) -
NonEntityDamagingExplosion
public NonEntityDamagingExplosion(World world, @Nullable @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) -
NonEntityDamagingExplosion
public NonEntityDamagingExplosion(World world, @Nullable @Nullable Entity entity, @Nullable @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType)
-
-
Method Details
-
collectBlocksAndPushEntities
public void collectBlocksAndPushEntities()Another version ofExplosion.collectBlocksAndDamageEntities(), but pushes entities (applies velocity) instead of damaging them. -
getAffectedEntities
-
supplyFromAccessor
private void supplyFromAccessor()
-