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 TypeMethodDescriptionfloatgetFloat(LootContext pLootContext) default intgetInt(LootContext pLootContext) getType()Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Method Details
-
getFloat
-
getInt
-
getType
LootNumberProviderType getType()
-