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 Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EnchantWithLevelsFunction>
private final NumberProvider
private final boolean
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionEnchantWithLevelsFunction
(List<LootItemCondition> p_298580_, NumberProvider p_165194_, boolean p_165195_) -
Method Summary
Modifier 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.LootItemConditionalFunction
apply, commonFields, simpleBuilder, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
CODEC
-
levels
-
treasure
private final boolean treasure
-
-
Constructor Details
-
EnchantWithLevelsFunction
EnchantWithLevelsFunction(List<LootItemCondition> p_298580_, NumberProvider p_165194_, boolean p_165195_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
enchantWithLevels
-