接口 IReductionFunction

函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface IReductionFunction
An IReductionFunction is used by DamageContainer instances.
This allows sequential modification of damage reduction values to be stored and later invoked before actual reductions are applied to the damage sequence.
  • 方法概要

    修饰符和类型
    方法
    说明
    float
    modify(DamageContainer container, float reductionIn)
    Consumes an existing reduction value and produces a modified value.
  • 方法详细资料

    • modify

      float modify(DamageContainer container, float reductionIn)
      Consumes an existing reduction value and produces a modified value.
      参数:
      container - the DamageContainer representing the damage sequence values for the reduction being modified
      reductionIn - the initial or preceding reduction value to this operation
      返回:
      the new reduction value