Class AbstractModifierEvent<T extends ModifierFunction<M>,​M>

    • Field Detail

      • originalFinalAmount

        protected double originalFinalAmount
      • originalModifiers

        protected java.util.List<Tuple<M,​java.lang.Double>> originalModifiers
      • originalModifierMap

        protected java.util.Map<M,​java.lang.Double> originalModifierMap
      • modifiers

        protected final java.util.LinkedHashMap<M,​java.lang.Double> modifiers
      • modifierFunctions

        protected final java.util.List<T extends ModifierFunction<M>> modifierFunctions
    • Constructor Detail

      • AbstractModifierEvent

        public AbstractModifierEvent()
    • Method Detail

      • init

        protected ImmutableList<T> init​(double originalValue,
                                        java.util.List<T> originalFunctions)
      • convertTuple

        protected abstract T convertTuple​(M obj,
                                          java.util.function.DoubleUnaryOperator function)
      • recalculateDamages

        protected void recalculateDamages​(double baseAmount)
      • finalAmount

        protected double finalAmount​(double baseAmount)
      • modifiers

        public java.util.List<T> modifiers()
        Gets the modifiers affecting this event.
        Returns:
        The list of modifiers