public final class BinomialLootTableRange extends Object implements LootTableRange
| Modifier and Type | Class and Description |
|---|---|
static class |
BinomialLootTableRange.Serializer |
| Modifier and Type | Field and Description |
|---|---|
private int |
n |
private float |
p |
BINOMIAL, CONSTANT, UNIFORM| Constructor and Description |
|---|
BinomialLootTableRange(int n,
float p) |
| Modifier and Type | Method and Description |
|---|---|
static BinomialLootTableRange |
create(int n,
float p) |
Identifier |
getType() |
int |
next(Random random) |
public int next(Random random)
next in interface LootTableRangepublic static BinomialLootTableRange create(int n, float p)
public Identifier getType()
getType in interface LootTableRange