Class ExplosionBehavior

java.lang.Object
net.minecraft.world.explosion.ExplosionBehavior
Direct Known Subclasses:
AdvancedExplosionBehavior, EntityExplosionBehavior

public class ExplosionBehavior extends Object
Mappings:
Namespace Name
named net/minecraft/world/explosion/ExplosionBehavior
intermediary net/minecraft/class_5362
official dcn
  • Constructor Details

    • ExplosionBehavior

      public ExplosionBehavior()
  • Method Details

    • getBlastResistance

      public Optional<Float> getBlastResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState)
      Mappings:
      Namespace Name Mixin selector
      named getBlastResistance Lnet/minecraft/world/explosion/ExplosionBehavior;getBlastResistance(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Ljava/util/Optional;
      intermediary method_29555 Lnet/minecraft/class_5362;method_29555(Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Ljava/util/Optional;
      official a Ldcn;a(Ldcm;Ldca;Ljd;Ldta;Leoy;)Ljava/util/Optional;
    • canDestroyBlock

      public boolean canDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float power)
      Mappings:
      Namespace Name Mixin selector
      named canDestroyBlock Lnet/minecraft/world/explosion/ExplosionBehavior;canDestroyBlock(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;F)Z
      intermediary method_29554 Lnet/minecraft/class_5362;method_29554(Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;F)Z
      official a Ldcn;a(Ldcm;Ldca;Ljd;Ldta;F)Z
    • shouldDamage

      public boolean shouldDamage(Explosion explosion, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named shouldDamage Lnet/minecraft/world/explosion/ExplosionBehavior;shouldDamage(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/entity/Entity;)Z
      intermediary method_55504 Lnet/minecraft/class_5362;method_55504(Lnet/minecraft/class_1927;Lnet/minecraft/class_1297;)Z
      official a Ldcn;a(Ldcm;Lbsq;)Z
    • getKnockbackModifier

      public float getKnockbackModifier(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named getKnockbackModifier Lnet/minecraft/world/explosion/ExplosionBehavior;getKnockbackModifier(Lnet/minecraft/entity/Entity;)F
      intermediary method_57007 Lnet/minecraft/class_5362;method_57007(Lnet/minecraft/class_1297;)F
      official a Ldcn;a(Lbsq;)F
    • calculateDamage

      public float calculateDamage(Explosion explosion, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named calculateDamage Lnet/minecraft/world/explosion/ExplosionBehavior;calculateDamage(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/entity/Entity;)F
      intermediary method_55115 Lnet/minecraft/class_5362;method_55115(Lnet/minecraft/class_1927;Lnet/minecraft/class_1297;)F
      official b Ldcn;b(Ldcm;Lbsq;)F