Class EnchantWithLevelsFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.EnchantWithLevelsFunction
- All Implemented Interfaces:
- BiFunction<ItemStack,,- LootContext, - ItemStack> - LootItemFunction,- LootContextUser
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionLootItemConditionalFunction.DummyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EnchantWithLevelsFunction>private final NumberProviderprivate final booleanFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionpredicates
- 
Constructor SummaryConstructorsConstructorDescriptionEnchantWithLevelsFunction(List<LootItemCondition> p_300816_, NumberProvider p_165194_, boolean p_165195_) 
- 
Method SummaryModifier and TypeMethodDescriptionenchantWithLevels(NumberProvider p_165197_) Set<LootContextParam<?>>getType()run(ItemStack p_80483_, LootContext p_80484_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionapply, commonFields, simpleBuilder, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThen
- 
Field Details- 
CODEC
- 
levels
- 
treasureprivate final boolean treasure
 
- 
- 
Constructor Details- 
EnchantWithLevelsFunctionEnchantWithLevelsFunction(List<LootItemCondition> p_300816_, NumberProvider p_165194_, boolean p_165195_) 
 
- 
- 
Method Details- 
getType
- 
getReferencedContextParams
- 
run- Specified by:
- runin class- LootItemConditionalFunction
 
- 
enchantWithLevels
 
-