Class AbstractSuperconductElementalReaction

java.lang.Object
io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
io.github.xrickastley.sevenelements.element.reaction.AbstractSuperconductElementalReaction
Direct Known Subclasses:
FrozenSuperconductElementalReaction, SuperconductElementalReaction

public abstract sealed class AbstractSuperconductElementalReaction extends ElementalReaction permits SuperconductElementalReaction, FrozenSuperconductElementalReaction
  • Constructor Details

  • Method Details

    • 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.