Class UniformGenerator
java.lang.Object
net.minecraft.world.level.storage.loot.providers.number.UniformGenerator
- All Implemented Interfaces:
LootContextUser
,NumberProvider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final NumberProvider
(package private) final NumberProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UniformGenerator
between
(float p_165781_, float p_165782_) float
getFloat
(LootContext p_165787_) int
getInt
(LootContext p_165784_) Set<LootContextParam<?>>
getType()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
-
Field Details
-
min
-
max
-
-
Constructor Details
-
UniformGenerator
UniformGenerator(NumberProvider p_165777_, NumberProvider p_165778_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceNumberProvider
-
between
-
getInt
- Specified by:
getInt
in interfaceNumberProvider
-
getFloat
- Specified by:
getFloat
in interfaceNumberProvider
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceLootContextUser
-