Package net.minecraft.loot.function
Class LootingEnchantLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.LootingEnchantLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>
,LootContextAware
,LootFunction
public class LootingEnchantLootFunction extends ConditionalLootFunction
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LootingEnchantLootFunction.Builder
static class
LootingEnchantLootFunction.Serializer
Nested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Joiner
-
Field Summary
Fields Modifier and Type Field Description private LootNumberProvider
countRange
private int
limit
Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
Constructors Modifier Constructor Description private
LootingEnchantLootFunction(LootCondition[] conditions, LootNumberProvider countRange, int limit)
-
Method Summary
Modifier and Type Method Description static LootingEnchantLootFunction.Builder
builder(LootNumberProvider countRange)
Set<LootContextParameter<?>>
getRequiredParameters()
LootFunctionType
getType()
private boolean
hasLimit()
ItemStack
process(ItemStack stack, LootContext context)
Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
apply, builder, 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
-
countRange
-
limit
private final int limit
-
-
Constructor Details
-
LootingEnchantLootFunction
private LootingEnchantLootFunction(LootCondition[] conditions, LootNumberProvider countRange, int limit)
-
-
Method Details
-
getType
-
getRequiredParameters
-
hasLimit
private boolean hasLimit() -
process
- Specified by:
process
in classConditionalLootFunction
-
builder
-