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.
import crafttweaker.neoforge.api.world.damage.IReductionFunction;
Members
modify(container as DamageContainer, reductionIn as float) as float
myIReductionFunction.modify(myDamageContainer, myFloat);
Parameters:
container: DamageContainer
Type: DamageContainer
reductionIn: float
Type: float
Return Type:
float
static of(func as BiFunction<Float, DamageContainer, Float>) as IReductionFunction
IReductionFunction.of(myBiFunction);
Parameters:
func: BiFunction<Float, DamageContainer, Float>
Type: BiFunction<Float, DamageContainer, Float>
Return Type:
IReductionFunction