public class UniformLootTableRange extends Object implements LootTableRange
Modifier and Type | Class and Description |
---|---|
static class |
UniformLootTableRange.Serializer |
Modifier and Type | Field and Description |
---|---|
private float |
max |
private float |
min |
BINOMIAL, CONSTANT, UNIFORM
Constructor and Description |
---|
UniformLootTableRange(float value) |
UniformLootTableRange(float min,
float max) |
Modifier and Type | Method and Description |
---|---|
static UniformLootTableRange |
between(float min,
float max) |
boolean |
contains(int value) |
float |
getMaxValue() |
float |
getMinValue() |
Identifier |
getType() |
int |
next(Random random) |
float |
nextFloat(Random random) |
public UniformLootTableRange(float min, float max)
public UniformLootTableRange(float value)
public static UniformLootTableRange between(float min, float max)
public float getMinValue()
public float getMaxValue()
public int next(Random random)
next
in interface LootTableRange
public float nextFloat(Random random)
public boolean contains(int value)
public Identifier getType()
getType
in interface LootTableRange