Package net.minecraft.world.explosion
Class Explosion
java.lang.Object
net.minecraft.world.explosion.Explosion
- Mappings:
Namespace Name named net/minecraft/world/explosion/Explosion
intermediary net/minecraft/class_1927
official dcm
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ObjectArrayList
<BlockPos> private final Map
<PlayerEntity, Vec3d> private final ExplosionBehavior
private final boolean
private final DamageSource
private static final ExplosionBehavior
private final Explosion.DestructionType
private final ParticleEffect
private static final int
private final ParticleEffect
private final float
private final Random
private final RegistryEntry
<SoundEvent> private final World
private final double
private final double
private final double
-
Constructor Summary
ConstructorDescriptionExplosion
(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) Explosion
(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, List<BlockPos> affectedBlocks) Explosion
(World world, @Nullable Entity entity, double x, double y, double z, float power, List<BlockPos> affectedBlocks, Explosion.DestructionType destructionType, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> soundEvent) 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, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> soundEvent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
affectWorld
(boolean particles) boolean
private ExplosionBehavior
chooseBehavior
(@Nullable Entity entity) void
void
static DamageSource
createDamageSource
(World world, @Nullable Entity source) private static @Nullable LivingEntity
getCausingEntity
(@Nullable Entity from) static float
getExposure
(Vec3d source, Entity entity) float
getPower()
boolean
private static void
tryMergeStack
(List<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos)
-
Field Details
-
DEFAULT_BEHAVIOR
- Mappings:
Namespace Name Mixin selector named DEFAULT_BEHAVIOR
Lnet/minecraft/world/explosion/Explosion;DEFAULT_BEHAVIOR:Lnet/minecraft/world/explosion/ExplosionBehavior;
intermediary field_25818
Lnet/minecraft/class_1927;field_25818:Lnet/minecraft/class_5362;
official a
Ldcm;a:Ldcn;
-
field_30960
private static final int field_30960- See Also:
- Mappings:
Namespace Name Mixin selector named field_30960
Lnet/minecraft/world/explosion/Explosion;field_30960:I
intermediary field_30960
Lnet/minecraft/class_1927;field_30960:I
official b
Ldcm;b:I
-
createFire
private final boolean createFire- Mappings:
Namespace Name Mixin selector named createFire
Lnet/minecraft/world/explosion/Explosion;createFire:Z
intermediary field_9186
Lnet/minecraft/class_1927;field_9186:Z
official c
Ldcm;c:Z
-
destructionType
- Mappings:
Namespace Name Mixin selector named destructionType
Lnet/minecraft/world/explosion/Explosion;destructionType:Lnet/minecraft/world/explosion/Explosion$DestructionType;
intermediary field_9184
Lnet/minecraft/class_1927;field_9184:Lnet/minecraft/class_1927$class_4179;
official d
Ldcm;d:Ldcm$a;
-
random
- Mappings:
Namespace Name Mixin selector named random
Lnet/minecraft/world/explosion/Explosion;random:Lnet/minecraft/util/math/random/Random;
intermediary field_9191
Lnet/minecraft/class_1927;field_9191:Lnet/minecraft/class_5819;
official e
Ldcm;e:Layv;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/world/explosion/Explosion;world:Lnet/minecraft/world/World;
intermediary field_9187
Lnet/minecraft/class_1927;field_9187:Lnet/minecraft/class_1937;
official f
Ldcm;f:Ldcu;
-
x
private final double x- Mappings:
Namespace Name Mixin selector named x
Lnet/minecraft/world/explosion/Explosion;x:D
intermediary field_9195
Lnet/minecraft/class_1927;field_9195:D
official g
Ldcm;g:D
-
y
private final double y- Mappings:
Namespace Name Mixin selector named y
Lnet/minecraft/world/explosion/Explosion;y:D
intermediary field_9192
Lnet/minecraft/class_1927;field_9192:D
official h
Ldcm;h:D
-
z
private final double z- Mappings:
Namespace Name Mixin selector named z
Lnet/minecraft/world/explosion/Explosion;z:D
intermediary field_9189
Lnet/minecraft/class_1927;field_9189:D
official i
Ldcm;i:D
-
entity
- Mappings:
Namespace Name Mixin selector named entity
Lnet/minecraft/world/explosion/Explosion;entity:Lnet/minecraft/entity/Entity;
intermediary field_9185
Lnet/minecraft/class_1927;field_9185:Lnet/minecraft/class_1297;
official j
Ldcm;j:Lbsq;
-
power
private final float power- Mappings:
Namespace Name Mixin selector named power
Lnet/minecraft/world/explosion/Explosion;power:F
intermediary field_9190
Lnet/minecraft/class_1927;field_9190:F
official k
Ldcm;k:F
-
damageSource
- Mappings:
Namespace Name Mixin selector named damageSource
Lnet/minecraft/world/explosion/Explosion;damageSource:Lnet/minecraft/entity/damage/DamageSource;
intermediary field_9193
Lnet/minecraft/class_1927;field_9193:Lnet/minecraft/class_1282;
official l
Ldcm;l:Lbrj;
-
behavior
- Mappings:
Namespace Name Mixin selector named behavior
Lnet/minecraft/world/explosion/Explosion;behavior:Lnet/minecraft/world/explosion/ExplosionBehavior;
intermediary field_25400
Lnet/minecraft/class_1927;field_25400:Lnet/minecraft/class_5362;
official m
Ldcm;m:Ldcn;
-
particle
- Mappings:
Namespace Name Mixin selector named particle
Lnet/minecraft/world/explosion/Explosion;particle:Lnet/minecraft/particle/ParticleEffect;
intermediary field_47328
Lnet/minecraft/class_1927;field_47328:Lnet/minecraft/class_2394;
official n
Ldcm;n:Llk;
-
emitterParticle
- Mappings:
Namespace Name Mixin selector named emitterParticle
Lnet/minecraft/world/explosion/Explosion;emitterParticle:Lnet/minecraft/particle/ParticleEffect;
intermediary field_47329
Lnet/minecraft/class_1927;field_47329:Lnet/minecraft/class_2394;
official o
Ldcm;o:Llk;
-
soundEvent
- Mappings:
Namespace Name Mixin selector named soundEvent
Lnet/minecraft/world/explosion/Explosion;soundEvent:Lnet/minecraft/registry/entry/RegistryEntry;
intermediary field_47330
Lnet/minecraft/class_1927;field_47330:Lnet/minecraft/class_6880;
official p
Ldcm;p:Ljm;
-
affectedBlocks
- Mappings:
Namespace Name Mixin selector named affectedBlocks
Lnet/minecraft/world/explosion/Explosion;affectedBlocks:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
intermediary field_9188
Lnet/minecraft/class_1927;field_9188:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
official q
Ldcm;q:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
affectedPlayers
- Mappings:
Namespace Name Mixin selector named affectedPlayers
Lnet/minecraft/world/explosion/Explosion;affectedPlayers:Ljava/util/Map;
intermediary field_9194
Lnet/minecraft/class_1927;field_9194:Ljava/util/Map;
official r
Ldcm;r:Ljava/util/Map;
-
-
Constructor Details
-
Explosion
public Explosion(World world, @Nullable @Nullable Entity entity, double x, double y, double z, float power, List<BlockPos> affectedBlocks, Explosion.DestructionType destructionType, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> soundEvent) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/explosion/Explosion;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;DDDFLjava/util/List;Lnet/minecraft/world/explosion/Explosion$DestructionType;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary <init>
Lnet/minecraft/class_1927;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;DDDFLjava/util/List;Lnet/minecraft/class_1927$class_4179;Lnet/minecraft/class_2394;Lnet/minecraft/class_2394;Lnet/minecraft/class_6880;)V
official <init>
Ldcm;<init>(Ldcu;Lbsq;DDDFLjava/util/List;Ldcm$a;Llk;Llk;Ljm;)V
-
Explosion
public Explosion(World world, @Nullable @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, List<BlockPos> affectedBlocks) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/explosion/Explosion;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;DDDFZLnet/minecraft/world/explosion/Explosion$DestructionType;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_1927;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;DDDFZLnet/minecraft/class_1927$class_4179;Ljava/util/List;)V
official <init>
Ldcm;<init>(Ldcu;Lbsq;DDDFZLdcm$a;Ljava/util/List;)V
-
Explosion
public Explosion(World world, @Nullable @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/explosion/Explosion;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;DDDFZLnet/minecraft/world/explosion/Explosion$DestructionType;)V
intermediary <init>
Lnet/minecraft/class_1927;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;DDDFZLnet/minecraft/class_1927$class_4179;)V
official <init>
Ldcm;<init>(Ldcu;Lbsq;DDDFZLdcm$a;)V
-
Explosion
public Explosion(World world, @Nullable @Nullable Entity entity, @Nullable @Nullable DamageSource damageSource, @Nullable @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> soundEvent) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/explosion/Explosion;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/world/explosion/ExplosionBehavior;DDDFZLnet/minecraft/world/explosion/Explosion$DestructionType;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary <init>
Lnet/minecraft/class_1927;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lnet/minecraft/class_5362;DDDFZLnet/minecraft/class_1927$class_4179;Lnet/minecraft/class_2394;Lnet/minecraft/class_2394;Lnet/minecraft/class_6880;)V
official <init>
Ldcm;<init>(Ldcu;Lbsq;Lbrj;Ldcn;DDDFZLdcm$a;Llk;Llk;Ljm;)V
-
-
Method Details
-
createDamageSource
- Mappings:
Namespace Name Mixin selector named createDamageSource
Lnet/minecraft/world/explosion/Explosion;createDamageSource(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
intermediary method_55108
Lnet/minecraft/class_1927;method_55108(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Lnet/minecraft/class_1282;
official a
Ldcm;a(Ldcu;Lbsq;)Lbrj;
-
chooseBehavior
- Mappings:
Namespace Name Mixin selector named chooseBehavior
Lnet/minecraft/world/explosion/Explosion;chooseBehavior(Lnet/minecraft/entity/Entity;)Lnet/minecraft/world/explosion/ExplosionBehavior;
intermediary method_29553
Lnet/minecraft/class_1927;method_29553(Lnet/minecraft/class_1297;)Lnet/minecraft/class_5362;
official a
Ldcm;a(Lbsq;)Ldcn;
-
getExposure
- Mappings:
Namespace Name Mixin selector named getExposure
Lnet/minecraft/world/explosion/Explosion;getExposure(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;)F
intermediary method_17752
Lnet/minecraft/class_1927;method_17752(Lnet/minecraft/class_243;Lnet/minecraft/class_1297;)F
official a
Ldcm;a(Leww;Lbsq;)F
-
getPower
public float getPower()- Mappings:
Namespace Name Mixin selector named getPower
Lnet/minecraft/world/explosion/Explosion;getPower()F
intermediary method_55107
Lnet/minecraft/class_1927;method_55107()F
official a
Ldcm;a()F
-
getPosition
- Mappings:
Namespace Name Mixin selector named getPosition
Lnet/minecraft/world/explosion/Explosion;getPosition()Lnet/minecraft/util/math/Vec3d;
intermediary method_55109
Lnet/minecraft/class_1927;method_55109()Lnet/minecraft/class_243;
official b
Ldcm;b()Leww;
-
collectBlocksAndDamageEntities
public void collectBlocksAndDamageEntities()- Mappings:
Namespace Name Mixin selector named collectBlocksAndDamageEntities
Lnet/minecraft/world/explosion/Explosion;collectBlocksAndDamageEntities()V
intermediary method_8348
Lnet/minecraft/class_1927;method_8348()V
official c
Ldcm;c()V
-
affectWorld
public void affectWorld(boolean particles) - Parameters:
particles
- whether this explosion should emit explosion or explosion emitter particles around the source of the explosion- Mappings:
Namespace Name Mixin selector named affectWorld
Lnet/minecraft/world/explosion/Explosion;affectWorld(Z)V
intermediary method_8350
Lnet/minecraft/class_1927;method_8350(Z)V
official a
Ldcm;a(Z)V
-
tryMergeStack
private static void tryMergeStack(List<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos) - Mappings:
Namespace Name Mixin selector named tryMergeStack
Lnet/minecraft/world/explosion/Explosion;tryMergeStack(Ljava/util/List;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_24023
Lnet/minecraft/class_1927;method_24023(Ljava/util/List;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)V
official a
Ldcm;a(Ljava/util/List;Lcuo;Ljd;)V
-
shouldDestroy
public boolean shouldDestroy()- Mappings:
Namespace Name Mixin selector named shouldDestroy
Lnet/minecraft/world/explosion/Explosion;shouldDestroy()Z
intermediary method_46667
Lnet/minecraft/class_1927;method_46667()Z
official d
Ldcm;d()Z
-
getAffectedPlayers
- Mappings:
Namespace Name Mixin selector named getAffectedPlayers
Lnet/minecraft/world/explosion/Explosion;getAffectedPlayers()Ljava/util/Map;
intermediary method_8351
Lnet/minecraft/class_1927;method_8351()Ljava/util/Map;
official e
Ldcm;e()Ljava/util/Map;
-
getCausingEntity
- Mappings:
Namespace Name Mixin selector named getCausingEntity
Lnet/minecraft/world/explosion/Explosion;getCausingEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/LivingEntity;
intermediary method_55110
Lnet/minecraft/class_1927;method_55110(Lnet/minecraft/class_1297;)Lnet/minecraft/class_1309;
official b
Ldcm;b(Lbsq;)Lbtl;
-
getCausingEntity
- Mappings:
Namespace Name Mixin selector named getCausingEntity
Lnet/minecraft/world/explosion/Explosion;getCausingEntity()Lnet/minecraft/entity/LivingEntity;
intermediary method_8347
Lnet/minecraft/class_1927;method_8347()Lnet/minecraft/class_1309;
official f
Ldcm;f()Lbtl;
-
getEntity
- Mappings:
Namespace Name Mixin selector named getEntity
Lnet/minecraft/world/explosion/Explosion;getEntity()Lnet/minecraft/entity/Entity;
intermediary method_46406
Lnet/minecraft/class_1927;method_46406()Lnet/minecraft/class_1297;
official g
Ldcm;g()Lbsq;
-
clearAffectedBlocks
public void clearAffectedBlocks()- Mappings:
Namespace Name Mixin selector named clearAffectedBlocks
Lnet/minecraft/world/explosion/Explosion;clearAffectedBlocks()V
intermediary method_8352
Lnet/minecraft/class_1927;method_8352()V
official h
Ldcm;h()V
-
getAffectedBlocks
- Mappings:
Namespace Name Mixin selector named getAffectedBlocks
Lnet/minecraft/world/explosion/Explosion;getAffectedBlocks()Ljava/util/List;
intermediary method_8346
Lnet/minecraft/class_1927;method_8346()Ljava/util/List;
official i
Ldcm;i()Ljava/util/List;
-
getDestructionType
- Mappings:
Namespace Name Mixin selector named getDestructionType
Lnet/minecraft/world/explosion/Explosion;getDestructionType()Lnet/minecraft/world/explosion/Explosion$DestructionType;
intermediary method_55111
Lnet/minecraft/class_1927;method_55111()Lnet/minecraft/class_1927$class_4179;
official j
Ldcm;j()Ldcm$a;
-
getParticle
- Mappings:
Namespace Name Mixin selector named getParticle
Lnet/minecraft/world/explosion/Explosion;getParticle()Lnet/minecraft/particle/ParticleEffect;
intermediary method_55112
Lnet/minecraft/class_1927;method_55112()Lnet/minecraft/class_2394;
official k
Ldcm;k()Llk;
-
getEmitterParticle
- Mappings:
Namespace Name Mixin selector named getEmitterParticle
Lnet/minecraft/world/explosion/Explosion;getEmitterParticle()Lnet/minecraft/particle/ParticleEffect;
intermediary method_55113
Lnet/minecraft/class_1927;method_55113()Lnet/minecraft/class_2394;
official l
Ldcm;l()Llk;
-
getSoundEvent
- Mappings:
Namespace Name Mixin selector named getSoundEvent
Lnet/minecraft/world/explosion/Explosion;getSoundEvent()Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_55114
Lnet/minecraft/class_1927;method_55114()Lnet/minecraft/class_6880;
official m
Ldcm;m()Ljm;
-
canTriggerBlocks
public boolean canTriggerBlocks()- Mappings:
Namespace Name Mixin selector named canTriggerBlocks
Lnet/minecraft/world/explosion/Explosion;canTriggerBlocks()Z
intermediary method_60274
Lnet/minecraft/class_1927;method_60274()Z
official n
Ldcm;n()Z
-