Interface NumberProvider
- All Superinterfaces:
LootContextUser
- All Known Implementing Classes:
BinomialDistributionGenerator
,ConstantValue
,EnchantmentLevelProvider
,ScoreboardValue
,StorageValue
,UniformGenerator
Provides a float or int based on a
LootContext
.-
Method Summary
Modifier and TypeMethodDescriptionfloat
getFloat
(LootContext pLootContext) default int
getInt
(LootContext pLootContext) getType()
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Method Details
-
getFloat
-
getInt
-
getType
LootNumberProviderType getType()
-