IReductionFunction
Link to ireductionfunction
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.neoforge.api.world.damage.IReductionFunction;
Static Methods
Link to static-methods
Name: of
Return Type: IReductionFunction
ZenScript CopyIReductionFunction.of(func as BiFunction<DamageContainer,float?,float?>) as IReductionFunction
Parameter | Type |
---|---|
Parameter func | Type BiFunction<DamageContainer,float?,float?> |
Methods
Link to methods
Name: modify
Return Type: float
ZenScript CopyIReductionFunction.modify(container as DamageContainer, reductionIn as float) as float
Parameter | Type |
---|---|
Parameter container | Type DamageContainer |
Parameter reductionIn | Type float |