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 classLootingEnchantLootFunction.Builderstatic classLootingEnchantLootFunction.SerializerNested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Joiner -
Field Summary
Fields Modifier and Type Field Description private LootNumberProvidercountRangeprivate intlimitFields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions -
Constructor Summary
Constructors Modifier Constructor Description privateLootingEnchantLootFunction(LootCondition[] conditions, LootNumberProvider countRange, int limit) -
Method Summary
Modifier and Type Method Description static LootingEnchantLootFunction.Builderbuilder(LootNumberProvider countRange)Set<LootContextParameter<?>>getRequiredParameters()LootFunctionTypegetType()private booleanhasLimit()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
-
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:
processin classConditionalLootFunction
-
builder
-