Class AdvancedExplosionBehavior

java.lang.Object
net.minecraft.world.explosion.ExplosionBehavior
net.minecraft.world.explosion.AdvancedExplosionBehavior

public class AdvancedExplosionBehavior extends ExplosionBehavior
Mappings:
Namespace Name
named net/minecraft/world/explosion/AdvancedExplosionBehavior
intermediary net/minecraft/class_9749
official ddn
  • Field Details

    • destroyBlocks

      private final boolean destroyBlocks
      Mappings:
      Namespace Name Mixin selector
      named destroyBlocks Lnet/minecraft/world/explosion/AdvancedExplosionBehavior;destroyBlocks:Z
      intermediary field_51782 Lnet/minecraft/class_9749;field_51782:Z
      official a Lddn;a:Z
    • damageEntities

      private final boolean damageEntities
      Mappings:
      Namespace Name Mixin selector
      named damageEntities Lnet/minecraft/world/explosion/AdvancedExplosionBehavior;damageEntities:Z
      intermediary field_51783 Lnet/minecraft/class_9749;field_51783:Z
      official b Lddn;b:Z
    • knockbackModifier

      private final Optional<Float> knockbackModifier
      Mappings:
      Namespace Name Mixin selector
      named knockbackModifier Lnet/minecraft/world/explosion/AdvancedExplosionBehavior;knockbackModifier:Ljava/util/Optional;
      intermediary field_51784 Lnet/minecraft/class_9749;field_51784:Ljava/util/Optional;
      official c Lddn;c:Ljava/util/Optional;
    • immuneBlocks

      private final Optional<RegistryEntryList<Block>> immuneBlocks
      Mappings:
      Namespace Name Mixin selector
      named immuneBlocks Lnet/minecraft/world/explosion/AdvancedExplosionBehavior;immuneBlocks:Ljava/util/Optional;
      intermediary field_51785 Lnet/minecraft/class_9749;field_51785:Ljava/util/Optional;
      official d Lddn;d:Ljava/util/Optional;
  • Constructor Details

    • AdvancedExplosionBehavior

      public AdvancedExplosionBehavior(boolean destroyBlocks, boolean damageEntities, Optional<Float> knockbackModifier, Optional<RegistryEntryList<Block>> immuneBlocks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/explosion/AdvancedExplosionBehavior;<init>(ZZLjava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_9749;<init>(ZZLjava/util/Optional;Ljava/util/Optional;)V
      official <init> Lddn;<init>(ZZLjava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • getBlastResistance

      public Optional<Float> getBlastResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState)
      Overrides:
      getBlastResistance in class ExplosionBehavior
      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 Ldcp;a(Ldco;Ldcc;Ljd;Ldtc;Lepe;)Ljava/util/Optional;
    • canDestroyBlock

      public boolean canDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float power)
      Overrides:
      canDestroyBlock in class ExplosionBehavior
      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 Ldcp;a(Ldco;Ldcc;Ljd;Ldtc;F)Z
    • shouldDamage

      public boolean shouldDamage(Explosion explosion, Entity entity)
      Overrides:
      shouldDamage in class ExplosionBehavior
      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 Ldcp;a(Ldco;Lbsr;)Z
    • getKnockbackModifier

      public float getKnockbackModifier(Entity entity)
      Overrides:
      getKnockbackModifier in class ExplosionBehavior
      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 Ldcp;a(Lbsr;)F