NumberProvider
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.
Implements
Undocumented Interfaces
LootContextUser
Members
static between(min as float, max as float) as NumberProvider
Parameters:
min: float
Type: float
max: float
Type: float
Return Type:
NumberProvider
static binomial(n as int, p as int) as NumberProvider
Parameters:
n: int
Type: int
p: int
Type: int
Return Type:
NumberProvider
static exactly(value as float) as NumberProvider
Parameters:
value: float
Type: float
Return Type:
NumberProvider
static scoreboard(target as EntityTarget, score as string, scale as float = 1.0) as NumberProvider
Parameters:
target: EntityTarget
Type: EntityTarget
score: string
Type: string
scale: float
(optional) Type: float
Default Value: 1.0
Return Type:
NumberProvider