IReductionFunction

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.api.world.damage.IReductionFunction;

Members

modify(container as DamageContainer, reductionIn as float) as float
script.zs
// IReductionFunction.modify(container as DamageContainer, reductionIn as float) as float;
myIReductionFunction.modify(myDamageContainer, myFloat);

Parameters:

container Type: DamageContainer
reductionIn Type: float

Return Type: float

static of(func as BiFunction<Float, DamageContainer, Float>) as IReductionFunction
script.zs
// IReductionFunction.of(func as BiFunction<Float, DamageContainer, Float>) as IReductionFunction;
IReductionFunction.of(myBiFunction);

Parameters:

func Type: BiFunction<Float, DamageContainer, Float>

Return Type: IReductionFunction