Package net.minecraft.loot.function
Class EnchantWithLevelsLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.EnchantWithLevelsLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>,LootContextAware,LootFunction
public class EnchantWithLevelsLootFunction extends ConditionalLootFunction
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnchantWithLevelsLootFunction.Builderstatic classEnchantWithLevelsLootFunction.SerializerNested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Joiner -
Field Summary
Fields Modifier and Type Field Description private LootNumberProviderrangeprivate booleantreasureEnchantmentsAllowedFields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions -
Constructor Summary
Constructors Modifier Constructor Description privateEnchantWithLevelsLootFunction(LootCondition[] conditions, LootNumberProvider range, boolean treasureEnchantmentsAllowed) -
Method Summary
Modifier and Type Method Description static EnchantWithLevelsLootFunction.Builderbuilder(LootNumberProvider range)Set<LootContextParameter<?>>getRequiredParameters()LootFunctionTypegetType()ItemStackprocess(ItemStack stack, LootContext context)Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
apply, builder, 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
-
range
-
treasureEnchantmentsAllowed
private final boolean treasureEnchantmentsAllowed
-
-
Constructor Details
-
EnchantWithLevelsLootFunction
private EnchantWithLevelsLootFunction(LootCondition[] conditions, LootNumberProvider range, boolean treasureEnchantmentsAllowed)
-
-
Method Details
-
getType
-
getRequiredParameters
-
process
- Specified by:
processin classConditionalLootFunction
-
builder
-