NumberProvider
Link to numberprovider
Importare la Classe
Link to importare-la-classe
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro min | Tipo float | Descrizione No Description Provided |
Parametro max | Tipo float | Descrizione No Description Provided |
Name: binomial
Return Type: NumberProvider
ZenScript CopyNumberProvider.binomial(n as int, p as int) as NumberProvider
Parametro | Tipo | Descrizione |
---|---|---|
Parametro n | Tipo int | Descrizione No Description Provided |
Parametro p | Tipo int | Descrizione No Description Provided |
Name: exactly
Return Type: NumberProvider
ZenScript CopyNumberProvider.exactly(value as float) as NumberProvider
Parametro | Tipo | Descrizione |
---|---|---|
Parametro valore | Tipo float | Descrizione No Description Provided |
Name: scoreboard
Return Type: NumberProvider
ZenScript CopyNumberProvider.scoreboard(target as EntityTarget, score as string, scale as float) as NumberProvider
Parametro | Tipo | Descrizione | Optional | DefaultValue |
---|---|---|---|---|
Parametro target | Tipo EntityTarget | Descrizione No Description Provided | Optional no | DefaultValue |
Parametro score | Tipo string | Descrizione No Description Provided | Optional no | DefaultValue |
Parametro scale | Tipo float | Descrizione No Description Provided | Optional sì | DefaultValue 1.0 |