Class AdditiveElementalReaction

java.lang.Object
io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
io.github.xrickastley.sevenelements.element.reaction.AdditiveElementalReaction
Direct Known Subclasses:
AggravateElementalReaction, SpreadElementalReaction

public abstract class AdditiveElementalReaction extends ElementalReaction
  • Field Details

    • amplifier

      final double amplifier
  • Constructor Details

  • Method Details

    • applyAmplifier

      public float applyAmplifier(LivingEntity entity, float damage)
    • applyAmplifier

      public float applyAmplifier(ServerWorld world, float damage)
    • applyAmplifier

      public double applyAmplifier(LivingEntity entity, double damage)
    • applyAmplifier

      public double applyAmplifier(ServerWorld world, double damage)
    • getAmplifier

      public double getAmplifier()
    • getDamageBonus

      public double getDamageBonus(ServerWorld world)
    • onReaction

      protected void onReaction(LivingEntity entity, ElementalApplication auraElement, ElementalApplication triggeringElement, double reducedGauge, @Nullable @Nullable LivingEntity origin)
      Description copied from class: ElementalReaction
      The function to execute after the Elemental Reaction has been triggered. This function is executed after both elements have reacted and have been reduced.
      Specified by:
      onReaction in class ElementalReaction
      Parameters:
      entity - The LivingEntity this Elemental Reaction was triggered on.
      auraElement - The aura element that triggered this reaction.
      triggeringElement - The triggering element that reacted with the aura element.
      reducedGauge - The gauge units reduced from both Elements. This will always be Math.min(auraElementGU, triggeringElementGU * reactionCoefficient)
      origin - The LivingEntity that triggered this Elemental Reaction.