Class Explosion

java.lang.Object
net.minecraft.world.explosion.Explosion

public class Explosion extends Object
Mappings:
Namespace Name
official cth
intermediary net/minecraft/class_1927
named net/minecraft/world/explosion/Explosion
  • Field Details

    • DEFAULT_BEHAVIOR

      private static final ExplosionBehavior DEFAULT_BEHAVIOR
      Mappings:
      Namespace Name Mixin selector
      official a Lcth;a:Lcti;
      intermediary field_25818 Lnet/minecraft/class_1927;field_25818:Lnet/minecraft/class_5362;
      named DEFAULT_BEHAVIOR Lnet/minecraft/world/explosion/Explosion;DEFAULT_BEHAVIOR:Lnet/minecraft/world/explosion/ExplosionBehavior;
    • field_30960

      private static final int field_30960
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcth;b:I
      intermediary field_30960 Lnet/minecraft/class_1927;field_30960:I
      named field_30960 Lnet/minecraft/world/explosion/Explosion;field_30960:I
    • createFire

      private final boolean createFire
      Mappings:
      Namespace Name Mixin selector
      official c Lcth;c:Z
      intermediary field_9186 Lnet/minecraft/class_1927;field_9186:Z
      named createFire Lnet/minecraft/world/explosion/Explosion;createFire:Z
    • destructionType

      private final Explosion.DestructionType destructionType
      Mappings:
      Namespace Name Mixin selector
      official d Lcth;d:Lcth$a;
      intermediary field_9184 Lnet/minecraft/class_1927;field_9184:Lnet/minecraft/class_1927$class_4179;
      named destructionType Lnet/minecraft/world/explosion/Explosion;destructionType:Lnet/minecraft/world/explosion/Explosion$DestructionType;
    • random

      private final Random random
      Mappings:
      Namespace Name Mixin selector
      official e Lcth;e:Lauv;
      intermediary field_9191 Lnet/minecraft/class_1927;field_9191:Lnet/minecraft/class_5819;
      named random Lnet/minecraft/world/explosion/Explosion;random:Lnet/minecraft/util/math/random/Random;
    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official f Lcth;f:Lctp;
      intermediary field_9187 Lnet/minecraft/class_1927;field_9187:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/world/explosion/Explosion;world:Lnet/minecraft/world/World;
    • x

      private final double x
      Mappings:
      Namespace Name Mixin selector
      official g Lcth;g:D
      intermediary field_9195 Lnet/minecraft/class_1927;field_9195:D
      named x Lnet/minecraft/world/explosion/Explosion;x:D
    • y

      private final double y
      Mappings:
      Namespace Name Mixin selector
      official h Lcth;h:D
      intermediary field_9192 Lnet/minecraft/class_1927;field_9192:D
      named y Lnet/minecraft/world/explosion/Explosion;y:D
    • z

      private final double z
      Mappings:
      Namespace Name Mixin selector
      official i Lcth;i:D
      intermediary field_9189 Lnet/minecraft/class_1927;field_9189:D
      named z Lnet/minecraft/world/explosion/Explosion;z:D
    • entity

      @Nullable private final @Nullable Entity entity
      Mappings:
      Namespace Name Mixin selector
      official j Lcth;j:Lblv;
      intermediary field_9185 Lnet/minecraft/class_1927;field_9185:Lnet/minecraft/class_1297;
      named entity Lnet/minecraft/world/explosion/Explosion;entity:Lnet/minecraft/entity/Entity;
    • power

      private final float power
      Mappings:
      Namespace Name Mixin selector
      official k Lcth;k:F
      intermediary field_9190 Lnet/minecraft/class_1927;field_9190:F
      named power Lnet/minecraft/world/explosion/Explosion;power:F
    • damageSource

      private final DamageSource damageSource
      Mappings:
      Namespace Name Mixin selector
      official l Lcth;l:Lbkt;
      intermediary field_9193 Lnet/minecraft/class_1927;field_9193:Lnet/minecraft/class_1282;
      named damageSource Lnet/minecraft/world/explosion/Explosion;damageSource:Lnet/minecraft/entity/damage/DamageSource;
    • behavior

      private final ExplosionBehavior behavior
      Mappings:
      Namespace Name Mixin selector
      official m Lcth;m:Lcti;
      intermediary field_25400 Lnet/minecraft/class_1927;field_25400:Lnet/minecraft/class_5362;
      named behavior Lnet/minecraft/world/explosion/Explosion;behavior:Lnet/minecraft/world/explosion/ExplosionBehavior;
    • particle

      private final ParticleEffect particle
      Mappings:
      Namespace Name Mixin selector
      official n Lcth;n:Ljv;
      intermediary field_47328 Lnet/minecraft/class_1927;field_47328:Lnet/minecraft/class_2394;
      named particle Lnet/minecraft/world/explosion/Explosion;particle:Lnet/minecraft/particle/ParticleEffect;
    • emitterParticle

      private final ParticleEffect emitterParticle
      Mappings:
      Namespace Name Mixin selector
      official o Lcth;o:Ljv;
      intermediary field_47329 Lnet/minecraft/class_1927;field_47329:Lnet/minecraft/class_2394;
      named emitterParticle Lnet/minecraft/world/explosion/Explosion;emitterParticle:Lnet/minecraft/particle/ParticleEffect;
    • soundEvent

      private final SoundEvent soundEvent
      Mappings:
      Namespace Name Mixin selector
      official p Lcth;p:Larr;
      intermediary field_47330 Lnet/minecraft/class_1927;field_47330:Lnet/minecraft/class_3414;
      named soundEvent Lnet/minecraft/world/explosion/Explosion;soundEvent:Lnet/minecraft/sound/SoundEvent;
    • affectedBlocks

      private final ObjectArrayList<BlockPos> affectedBlocks
      Mappings:
      Namespace Name Mixin selector
      official q Lcth;q:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary field_9188 Lnet/minecraft/class_1927;field_9188:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      named affectedBlocks Lnet/minecraft/world/explosion/Explosion;affectedBlocks:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • affectedPlayers

      private final Map<PlayerEntity,Vec3d> affectedPlayers
      Mappings:
      Namespace Name Mixin selector
      official r Lcth;r:Ljava/util/Map;
      intermediary field_9194 Lnet/minecraft/class_1927;field_9194:Ljava/util/Map;
      named affectedPlayers Lnet/minecraft/world/explosion/Explosion;affectedPlayers: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, SoundEvent soundEvent)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcth;<init>(Lctp;Lblv;DDDFLjava/util/List;Lcth$a;Ljv;Ljv;Larr;)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_3414;)V
      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/sound/SoundEvent;)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
      official <init> Lcth;<init>(Lctp;Lblv;DDDFZLcth$a;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
      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
    • 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
      official <init> Lcth;<init>(Lctp;Lblv;DDDFZLcth$a;)V
      intermediary <init> Lnet/minecraft/class_1927;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;DDDFZLnet/minecraft/class_1927$class_4179;)V
      named <init> Lnet/minecraft/world/explosion/Explosion;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;DDDFZLnet/minecraft/world/explosion/Explosion$DestructionType;)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, SoundEvent soundEvent)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcth;<init>(Lctp;Lblv;Lbkt;Lcti;DDDFZLcth$a;Ljv;Ljv;Larr;)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_3414;)V
      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/sound/SoundEvent;)V
  • Method Details

    • createDamageSource

      public static DamageSource createDamageSource(World world, @Nullable @Nullable Entity source)
      Mappings:
      Namespace Name Mixin selector
      official a Lcth;a(Lctp;Lblv;)Lbkt;
      intermediary method_55108 Lnet/minecraft/class_1927;method_55108(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Lnet/minecraft/class_1282;
      named createDamageSource Lnet/minecraft/world/explosion/Explosion;createDamageSource(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
    • chooseBehavior

      private ExplosionBehavior chooseBehavior(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcth;a(Lblv;)Lcti;
      intermediary method_29553 Lnet/minecraft/class_1927;method_29553(Lnet/minecraft/class_1297;)Lnet/minecraft/class_5362;
      named chooseBehavior Lnet/minecraft/world/explosion/Explosion;chooseBehavior(Lnet/minecraft/entity/Entity;)Lnet/minecraft/world/explosion/ExplosionBehavior;
    • getExposure

      public static float getExposure(Vec3d source, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcth;a(Lelt;Lblv;)F
      intermediary method_17752 Lnet/minecraft/class_1927;method_17752(Lnet/minecraft/class_243;Lnet/minecraft/class_1297;)F
      named getExposure Lnet/minecraft/world/explosion/Explosion;getExposure(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;)F
    • getPower

      public float getPower()
      Mappings:
      Namespace Name Mixin selector
      official a Lcth;a()F
      intermediary method_55107 Lnet/minecraft/class_1927;method_55107()F
      named getPower Lnet/minecraft/world/explosion/Explosion;getPower()F
    • getPosition

      public Vec3d getPosition()
      Mappings:
      Namespace Name Mixin selector
      official b Lcth;b()Lelt;
      intermediary method_55109 Lnet/minecraft/class_1927;method_55109()Lnet/minecraft/class_243;
      named getPosition Lnet/minecraft/world/explosion/Explosion;getPosition()Lnet/minecraft/util/math/Vec3d;
    • collectBlocksAndDamageEntities

      public void collectBlocksAndDamageEntities()
      Mappings:
      Namespace Name Mixin selector
      official c Lcth;c()V
      intermediary method_8348 Lnet/minecraft/class_1927;method_8348()V
      named collectBlocksAndDamageEntities Lnet/minecraft/world/explosion/Explosion;collectBlocksAndDamageEntities()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
      official a Lcth;a(Z)V
      intermediary method_8350 Lnet/minecraft/class_1927;method_8350(Z)V
      named affectWorld Lnet/minecraft/world/explosion/Explosion;affectWorld(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
      official a Lcth;a(Ljava/util/List;Lcmy;Lhx;)V
      intermediary method_24023 Lnet/minecraft/class_1927;method_24023(Ljava/util/List;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)V
      named tryMergeStack Lnet/minecraft/world/explosion/Explosion;tryMergeStack(Ljava/util/List;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)V
    • shouldDestroy

      public boolean shouldDestroy()
      Mappings:
      Namespace Name Mixin selector
      official d Lcth;d()Z
      intermediary method_46667 Lnet/minecraft/class_1927;method_46667()Z
      named shouldDestroy Lnet/minecraft/world/explosion/Explosion;shouldDestroy()Z
    • getAffectedPlayers

      public Map<PlayerEntity,Vec3d> getAffectedPlayers()
      Mappings:
      Namespace Name Mixin selector
      official e Lcth;e()Ljava/util/Map;
      intermediary method_8351 Lnet/minecraft/class_1927;method_8351()Ljava/util/Map;
      named getAffectedPlayers Lnet/minecraft/world/explosion/Explosion;getAffectedPlayers()Ljava/util/Map;
    • getCausingEntity

      @Nullable private static @Nullable LivingEntity getCausingEntity(@Nullable @Nullable Entity from)
      Mappings:
      Namespace Name Mixin selector
      official b Lcth;b(Lblv;)Lbml;
      intermediary method_55110 Lnet/minecraft/class_1927;method_55110(Lnet/minecraft/class_1297;)Lnet/minecraft/class_1309;
      named getCausingEntity Lnet/minecraft/world/explosion/Explosion;getCausingEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/LivingEntity;
    • getCausingEntity

      @Nullable public @Nullable LivingEntity getCausingEntity()
      Mappings:
      Namespace Name Mixin selector
      official f Lcth;f()Lbml;
      intermediary method_8347 Lnet/minecraft/class_1927;method_8347()Lnet/minecraft/class_1309;
      named getCausingEntity Lnet/minecraft/world/explosion/Explosion;getCausingEntity()Lnet/minecraft/entity/LivingEntity;
    • getEntity

      @Nullable public @Nullable Entity getEntity()
      Mappings:
      Namespace Name Mixin selector
      official g Lcth;g()Lblv;
      intermediary method_46406 Lnet/minecraft/class_1927;method_46406()Lnet/minecraft/class_1297;
      named getEntity Lnet/minecraft/world/explosion/Explosion;getEntity()Lnet/minecraft/entity/Entity;
    • clearAffectedBlocks

      public void clearAffectedBlocks()
      Mappings:
      Namespace Name Mixin selector
      official h Lcth;h()V
      intermediary method_8352 Lnet/minecraft/class_1927;method_8352()V
      named clearAffectedBlocks Lnet/minecraft/world/explosion/Explosion;clearAffectedBlocks()V
    • getAffectedBlocks

      public List<BlockPos> getAffectedBlocks()
      Mappings:
      Namespace Name Mixin selector
      official i Lcth;i()Ljava/util/List;
      intermediary method_8346 Lnet/minecraft/class_1927;method_8346()Ljava/util/List;
      named getAffectedBlocks Lnet/minecraft/world/explosion/Explosion;getAffectedBlocks()Ljava/util/List;
    • getDestructionType

      public Explosion.DestructionType getDestructionType()
      Mappings:
      Namespace Name Mixin selector
      official j Lcth;j()Lcth$a;
      intermediary method_55111 Lnet/minecraft/class_1927;method_55111()Lnet/minecraft/class_1927$class_4179;
      named getDestructionType Lnet/minecraft/world/explosion/Explosion;getDestructionType()Lnet/minecraft/world/explosion/Explosion$DestructionType;
    • getParticle

      public ParticleEffect getParticle()
      Mappings:
      Namespace Name Mixin selector
      official k Lcth;k()Ljv;
      intermediary method_55112 Lnet/minecraft/class_1927;method_55112()Lnet/minecraft/class_2394;
      named getParticle Lnet/minecraft/world/explosion/Explosion;getParticle()Lnet/minecraft/particle/ParticleEffect;
    • getEmitterParticle

      public ParticleEffect getEmitterParticle()
      Mappings:
      Namespace Name Mixin selector
      official l Lcth;l()Ljv;
      intermediary method_55113 Lnet/minecraft/class_1927;method_55113()Lnet/minecraft/class_2394;
      named getEmitterParticle Lnet/minecraft/world/explosion/Explosion;getEmitterParticle()Lnet/minecraft/particle/ParticleEffect;
    • getSoundEvent

      public SoundEvent getSoundEvent()
      Mappings:
      Namespace Name Mixin selector
      official m Lcth;m()Larr;
      intermediary method_55114 Lnet/minecraft/class_1927;method_55114()Lnet/minecraft/class_3414;
      named getSoundEvent Lnet/minecraft/world/explosion/Explosion;getSoundEvent()Lnet/minecraft/sound/SoundEvent;