Package net.minecraft.loot.functions
Class EnchantWithLevels
java.lang.Object
net.minecraft.loot.LootFunction
net.minecraft.loot.functions.EnchantWithLevels
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> ILootFunction
,IParameterized
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder
-
Field Summary
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
Constructor Summary
ModifierConstructorDescriptionprivate
EnchantWithLevels
(ILootCondition[] p_i51236_1_, IRandomRange p_i51236_2_, boolean p_i51236_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic EnchantWithLevels.Builder
enchantWithLevels
(IRandomRange p_215895_0_) getType()
run
(ItemStack p_215859_1_, LootContext p_215859_2_) Methods inherited from class net.minecraft.loot.LootFunction
apply, 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
Methods inherited from interface net.minecraft.loot.IParameterized
getReferencedContextParams
-
Field Details
-
levels
-
treasure
private final boolean treasure
-
-
Constructor Details
-
EnchantWithLevels
private EnchantWithLevels(ILootCondition[] p_i51236_1_, IRandomRange p_i51236_2_, boolean p_i51236_3_)
-
-
Method Details
-
getType
-
run
- Specified by:
run
in classLootFunction
-
enchantWithLevels
-