Class FrozenElementalReaction

java.lang.Object
io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
io.github.xrickastley.sevenelements.element.reaction.FrozenElementalReaction

public final class FrozenElementalReaction extends ElementalReaction
  • Constructor Details

    • FrozenElementalReaction

      FrozenElementalReaction()
  • 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.
    • getFreezeDuration

      private double getFreezeDuration(double freezeAuraGauge, LivingEntity target)
      Returns the freeze duration in seconds.
    • mixin$modifySwirlReactions

      @ModifyExpressionValue(method="Lio/github/xrickastley/sevenelements/component/ElementComponentImpl;triggerReactions(Lio/github/xrickastley/sevenelements/element/ElementalApplication;Lnet/minecraft/entity/LivingEntity;)Ljava/util/Set;", at=@At(value="INVOKE",target="Ljava/util/stream/Stream;noneMatch(Ljava/util/function/Predicate;)Z")) public static boolean mixin$modifySwirlReactions(boolean original, @Local(self=true) ElementComponent component, @Local ElementalReaction reaction)