Interface ItemStackNumberProvider
- All Superinterfaces:
net.minecraft.world.level.storage.loot.LootContextUser
- All Known Implementing Classes:
CountItemStackNumberProvider,EnchantmentLevelItemStackNumberProvider
public interface ItemStackNumberProvider
extends net.minecraft.world.level.storage.loot.LootContextUser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ItemStackNumberProvider> static final com.mojang.serialization.Codec<ItemStackNumberProvider> UseCODECinstead. -
Method Summary
Modifier and TypeMethodDescriptionfloatgetFloat(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext lootContext) default floatgetMaxFloat(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext lootContext) getType()Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
TYPED_CODEC
UseCODECinstead. -
CODEC
-
-
Method Details
-
getFloat
float getFloat(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext lootContext) -
getMaxFloat
default float getMaxFloat(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext lootContext) -
getEstimate
NumberEstimate getEstimate() -
getType
LootItemStackNumberProviderType getType()
-