Class FrozenElementalReaction
java.lang.Object
io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
io.github.xrickastley.sevenelements.element.reaction.FrozenElementalReaction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
ElementalReaction.Settings -
Field Summary
Fields inherited from class io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
applyResultAsAura, auraElement, endsReactionTrigger, id, name, preventsPriorityUpgrade, preventsReactionsAfter, reactionCoefficient, reactionDisplayOrder, reversable, text, triggeringElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate doublegetFreezeDuration(double freezeAuraGauge, LivingEntity target) Returns the freeze duration in seconds.static booleanmixin$modifySwirlReactions(boolean original, ElementComponent component, ElementalReaction reaction) protected voidonReaction(LivingEntity entity, ElementalApplication auraElement, ElementalApplication triggeringElement, double _reducedGauge, @Nullable LivingEntity origin) The function to execute after the Elemental Reaction has been triggered.Methods inherited from class io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
displayReaction, getAuraElement, getAuraElementPriority, getElementPair, getEntitiesInAoE, getEntitiesInAoE, getHighestElementPriority, getId, getPriority, getPriority, getReactionDamage, getReactionDamage, getReactionDamage, getReactionDamage, getReactionDisplayOrder, getText, getTriggeringElement, getTriggeringElementPriority, hasAnyElement, hasAnyElement, hasElement, idEquals, isTriggerable, isTriggerable, onTrigger, preventsReaction, preventsReaction, shouldApplyResultAsAura, shouldEndReactionTrigger, shouldPreventPriorityUpgrade, trigger, trigger
-
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:ElementalReactionThe 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:
onReactionin classElementalReaction- Parameters:
entity- TheLivingEntitythis 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 beMath.min(auraElementGU, triggeringElementGU * reactionCoefficient)origin- TheLivingEntitythat triggered this Elemental Reaction.
-
getFreezeDuration
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)
-