Class AmplifyingElementalReaction
java.lang.Object
io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
io.github.xrickastley.sevenelements.element.reaction.AmplifyingElementalReaction
- Direct Known Subclasses:
AbstractPyroMeltElementalReaction,CryoMeltElementalReaction,HydroVaporizeElementalReaction,PyroVaporizeElementalReaction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
ElementalReaction.Settings -
Field Summary
FieldsFields inherited from class io.github.xrickastley.sevenelements.element.reaction.ElementalReaction
applyResultAsAura, auraElement, endsReactionTrigger, id, name, preventsPriorityUpgrade, preventsReactionsAfter, reactionCoefficient, reactionDisplayOrder, reversable, text, triggeringElement -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAmplifyingElementalReaction(ElementalReaction.Settings settings, double amplifier) -
Method Summary
Modifier and TypeMethodDescriptiondoubleapplyAmplifier(double damage) floatapplyAmplifier(float damage) doubleprotected 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
-
Field Details
-
amplifier
final double amplifier
-
-
Constructor Details
-
AmplifyingElementalReaction
-
-
Method Details
-
applyAmplifier
public float applyAmplifier(float damage) -
applyAmplifier
public double applyAmplifier(double damage) -
getAmplifier
public double getAmplifier() -
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.
-