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 classUniformLootTableRange.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 UniformLootTableRangebetween(float min, float max)booleancontains(int value)floatgetMaxValue()floatgetMinValue()IdentifiergetType()intnext(Random random)floatnextFloat(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:
nextin interfaceLootTableRange
-
nextFloat
-
contains
public boolean contains(int value) -
getType
- Specified by:
getTypein interfaceLootTableRange
-