NumberProvider
Link to numberprovider
导入类
Link to 导入类
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.api.loot.NumberProvider;
Static Methods
Link to static-methods
Name: between
Return Type: NumberProvider
ZenScript CopyNumberProvider.between(min as float, max as float) as NumberProvider
参数 | 类型 |
---|---|
参数 min | 类型 float |
参数 max | 类型 float |
Name: binomial
Return Type: NumberProvider
ZenScript CopyNumberProvider.binomial(n as int, p as int) as NumberProvider
参数 | 类型 |
---|---|
参数 n | 类型 int |
参数 p | 类型 int |
Name: exactly
Return Type: NumberProvider
ZenScript CopyNumberProvider.exactly(value as float) as NumberProvider
参数 | 类型 |
---|---|
参数 value | 类型 float |
Name: scoreboard
Return Type: NumberProvider
ZenScript CopyNumberProvider.scoreboard(target as EntityTarget, score as string, scale as float) as NumberProvider
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 target | 类型 EntityTarget | 可选 false | 默认值 |
参数 score | 类型 string | 可选 false | 默认值 |
参数 scale | 类型 float | 可选 true | 默认值 1.0 |