Package net.minecraft.loot
Class UniformLootTableRange
java.lang.Object
net.minecraft.loot.UniformLootTableRange
- All Implemented Interfaces:
LootTableRange
public class UniformLootTableRange extends Object implements LootTableRange
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UniformLootTableRange.Serializer
-
Field Summary
Fields inherited from interface net.minecraft.loot.LootTableRange
BINOMIAL, CONSTANT, UNIFORM
-
Constructor Summary
Constructors Constructor Description UniformLootTableRange(float value)
UniformLootTableRange(float min, float max)
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
min
private final float min -
max
private final float max
-
-
Constructor Details
-
UniformLootTableRange
public UniformLootTableRange(float min, float max) -
UniformLootTableRange
public UniformLootTableRange(float value)
-
-
Method Details
-
between
-
getMinValue
public float getMinValue() -
getMaxValue
public float getMaxValue() -
next
- Specified by:
next
in interfaceLootTableRange
-
nextFloat
-
contains
public boolean contains(int value) -
getType
- Specified by:
getType
in interfaceLootTableRange
-