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 ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EnchantWithLevelsFunction> private final NumberProviderprivate final booleanFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates -
Constructor Summary
ConstructorsConstructorDescriptionEnchantWithLevelsFunction(List<LootItemCondition> p_300816_, 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, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
CODEC
-
levels
-
treasure
private final boolean treasure
-
-
Constructor Details
-
EnchantWithLevelsFunction
EnchantWithLevelsFunction(List<LootItemCondition> p_300816_, NumberProvider p_165194_, boolean p_165195_)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootItemFunction- Specified by:
getTypein classLootItemConditionalFunction
-
getReferencedContextParams
-
run
- Specified by:
runin classLootItemConditionalFunction
-
enchantWithLevels
-