Package net.minecraft.world.explosion
Class Explosion
java.lang.Object
net.minecraft.world.explosion.Explosion
public class Explosion extends Object
- Mappings:
Namespace Name official buiintermediary net/minecraft/class_1927named net/minecraft/world/explosion/Explosion
-
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 static ExplosionBehaviorDEFAULT_BEHAVIORprivate Explosion.DestructionTypedestructionTypeprivate @Nullable Entityentityprivate floatpowerprivate Randomrandomprivate Worldworldprivate doublexprivate doubleyprivate doublez -
Constructor Summary
Constructors Constructor Description Explosion(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(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 Summary
Modifier and Type Method Description voidaffectWorld(boolean bool)private ExplosionBehaviorchooseBehavior(@Nullable Entity entity)voidclearAffectedBlocks()voidcollectBlocksAndDamageEntities()List<BlockPos>getAffectedBlocks()Map<PlayerEntity,Vec3d>getAffectedPlayers()@Nullable 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
-
DEFAULT_BEHAVIOR
- Mappings:
Namespace Name Mixin selector official aLbui;a:Lbuj;intermediary field_25818Lnet/minecraft/class_1927;field_25818:Lnet/minecraft/class_5362;named DEFAULT_BEHAVIORLnet/minecraft/world/explosion/Explosion;DEFAULT_BEHAVIOR:Lnet/minecraft/world/explosion/ExplosionBehavior;
-
createFire
private final boolean createFire- Mappings:
Namespace Name Mixin selector official bLbui;b:Zintermediary field_9186Lnet/minecraft/class_1927;field_9186:Znamed createFireLnet/minecraft/world/explosion/Explosion;createFire:Z
-
destructionType
- Mappings:
Namespace Name Mixin selector official cLbui;c:Lbui$a;intermediary field_9184Lnet/minecraft/class_1927;field_9184:Lnet/minecraft/class_1927$class_4179;named destructionTypeLnet/minecraft/world/explosion/Explosion;destructionType:Lnet/minecraft/world/explosion/Explosion$DestructionType;
-
random
- Mappings:
Namespace Name Mixin selector official dLbui;d:Ljava/util/Random;intermediary field_9191Lnet/minecraft/class_1927;field_9191:Ljava/util/Random;named randomLnet/minecraft/world/explosion/Explosion;random:Ljava/util/Random;
-
world
- Mappings:
Namespace Name Mixin selector official eLbui;e:Lbuq;intermediary field_9187Lnet/minecraft/class_1927;field_9187:Lnet/minecraft/class_1937;named worldLnet/minecraft/world/explosion/Explosion;world:Lnet/minecraft/world/World;
-
x
private final double x- Mappings:
Namespace Name Mixin selector official fLbui;f:Dintermediary field_9195Lnet/minecraft/class_1927;field_9195:Dnamed xLnet/minecraft/world/explosion/Explosion;x:D
-
y
private final double y- Mappings:
Namespace Name Mixin selector official gLbui;g:Dintermediary field_9192Lnet/minecraft/class_1927;field_9192:Dnamed yLnet/minecraft/world/explosion/Explosion;y:D
-
z
private final double z- Mappings:
Namespace Name Mixin selector official hLbui;h:Dintermediary field_9189Lnet/minecraft/class_1927;field_9189:Dnamed zLnet/minecraft/world/explosion/Explosion;z:D
-
entity
- Mappings:
Namespace Name Mixin selector official iLbui;i:Laro;intermediary field_9185Lnet/minecraft/class_1927;field_9185:Lnet/minecraft/class_1297;named entityLnet/minecraft/world/explosion/Explosion;entity:Lnet/minecraft/entity/Entity;
-
power
private final float power- Mappings:
Namespace Name Mixin selector official jLbui;j:Fintermediary field_9190Lnet/minecraft/class_1927;field_9190:Fnamed powerLnet/minecraft/world/explosion/Explosion;power:F
-
damageSource
- Mappings:
Namespace Name Mixin selector official kLbui;k:Laqy;intermediary field_9193Lnet/minecraft/class_1927;field_9193:Lnet/minecraft/class_1282;named damageSourceLnet/minecraft/world/explosion/Explosion;damageSource:Lnet/minecraft/entity/damage/DamageSource;
-
behavior
- Mappings:
Namespace Name Mixin selector official lLbui;l:Lbuj;intermediary field_25400Lnet/minecraft/class_1927;field_25400:Lnet/minecraft/class_5362;named behaviorLnet/minecraft/world/explosion/Explosion;behavior:Lnet/minecraft/world/explosion/ExplosionBehavior;
-
affectedBlocks
- Mappings:
Namespace Name Mixin selector official mLbui;m:Ljava/util/List;intermediary field_9188Lnet/minecraft/class_1927;field_9188:Ljava/util/List;named affectedBlocksLnet/minecraft/world/explosion/Explosion;affectedBlocks:Ljava/util/List;
-
affectedPlayers
- Mappings:
Namespace Name Mixin selector official nLbui;n:Ljava/util/Map;intermediary field_9194Lnet/minecraft/class_1927;field_9194:Ljava/util/Map;named affectedPlayersLnet/minecraft/world/explosion/Explosion;affectedPlayers:Ljava/util/Map;
-
-
Constructor Details
-
Explosion
@Environment(CLIENT) public Explosion(World world, @Nullable @Nullable Entity entity, double x, double y, double z, float power, List<BlockPos> affectedBlocks)- Mappings:
Namespace Name Mixin selector official <init>Lbui;<init>(Lbuq;Laro;DDDFLjava/util/List;)Vintermediary <init>Lnet/minecraft/class_1927;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;DDDFLjava/util/List;)Vnamed <init>Lnet/minecraft/world/explosion/Explosion;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;DDDFLjava/util/List;)V
-
Explosion
@Environment(CLIENT) 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>Lbui;<init>(Lbuq;Laro;DDDFZLbui$a;Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_1927;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;DDDFZLnet/minecraft/class_1927$class_4179;Ljava/util/List;)Vnamed <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
@Environment(CLIENT) 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>Lbui;<init>(Lbuq;Laro;DDDFZLbui$a;)Vintermediary <init>Lnet/minecraft/class_1927;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;DDDFZLnet/minecraft/class_1927$class_4179;)Vnamed <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)- Mappings:
Namespace Name Mixin selector official <init>Lbui;<init>(Lbuq;Laro;Laqy;Lbuj;DDDFZLbui$a;)Vintermediary <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;)Vnamed <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;)V
-
-
Method Details
-
chooseBehavior
- Mappings:
Namespace Name Mixin selector official aLbui;a(Laro;)Lbuj;intermediary method_29553Lnet/minecraft/class_1927;method_29553(Lnet/minecraft/class_1297;)Lnet/minecraft/class_5362;named chooseBehaviorLnet/minecraft/world/explosion/Explosion;chooseBehavior(Lnet/minecraft/entity/Entity;)Lnet/minecraft/world/explosion/ExplosionBehavior;
-
getExposure
- Mappings:
Namespace Name Mixin selector official aLbui;a(Ldkn;Laro;)Fintermediary method_17752Lnet/minecraft/class_1927;method_17752(Lnet/minecraft/class_243;Lnet/minecraft/class_1297;)Fnamed getExposureLnet/minecraft/world/explosion/Explosion;getExposure(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;)F
-
collectBlocksAndDamageEntities
public void collectBlocksAndDamageEntities()- Mappings:
Namespace Name Mixin selector official aLbui;a()Vintermediary method_8348Lnet/minecraft/class_1927;method_8348()Vnamed collectBlocksAndDamageEntitiesLnet/minecraft/world/explosion/Explosion;collectBlocksAndDamageEntities()V
-
affectWorld
public void affectWorld(boolean bool)- Mappings:
Namespace Name Mixin selector official aLbui;a(Z)Vintermediary method_8350Lnet/minecraft/class_1927;method_8350(Z)Vnamed affectWorldLnet/minecraft/world/explosion/Explosion;affectWorld(Z)V
-
method_24023
private static void method_24023(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> objectArrayList, ItemStack itemStack, BlockPos blockPos)- Mappings:
Namespace Name Mixin selector official aLbui;a(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;Lboq;Lfx;)Vintermediary method_24023Lnet/minecraft/class_1927;method_24023(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)Vnamed method_24023Lnet/minecraft/world/explosion/Explosion;method_24023(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)V
-
getDamageSource
- Mappings:
Namespace Name Mixin selector official bLbui;b()Laqy;intermediary method_8349Lnet/minecraft/class_1927;method_8349()Lnet/minecraft/class_1282;named getDamageSourceLnet/minecraft/world/explosion/Explosion;getDamageSource()Lnet/minecraft/entity/damage/DamageSource;
-
getAffectedPlayers
- Mappings:
Namespace Name Mixin selector official cLbui;c()Ljava/util/Map;intermediary method_8351Lnet/minecraft/class_1927;method_8351()Ljava/util/Map;named getAffectedPlayersLnet/minecraft/world/explosion/Explosion;getAffectedPlayers()Ljava/util/Map;
-
getCausingEntity
- Mappings:
Namespace Name Mixin selector official dLbui;d()Lasb;intermediary method_8347Lnet/minecraft/class_1927;method_8347()Lnet/minecraft/class_1309;named getCausingEntityLnet/minecraft/world/explosion/Explosion;getCausingEntity()Lnet/minecraft/entity/LivingEntity;
-
clearAffectedBlocks
public void clearAffectedBlocks()- Mappings:
Namespace Name Mixin selector official eLbui;e()Vintermediary method_8352Lnet/minecraft/class_1927;method_8352()Vnamed clearAffectedBlocksLnet/minecraft/world/explosion/Explosion;clearAffectedBlocks()V
-
getAffectedBlocks
- Mappings:
Namespace Name Mixin selector official fLbui;f()Ljava/util/List;intermediary method_8346Lnet/minecraft/class_1927;method_8346()Ljava/util/List;named getAffectedBlocksLnet/minecraft/world/explosion/Explosion;getAffectedBlocks()Ljava/util/List;
-