Class LootingEnchantFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.LootingEnchantFunction
- All Implemented Interfaces:
 BiFunction<ItemStack,,LootContext, ItemStack> LootItemFunction,LootContextUser
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder - 
Field Summary
FieldsModifier and TypeFieldDescription(package private) final intstatic final int(package private) final NumberProviderFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates - 
Constructor Summary
ConstructorsConstructorDescriptionLootingEnchantFunction(LootItemCondition[] p_165226_, NumberProvider p_165227_, int p_165228_)  - 
Method Summary
Modifier and TypeMethodDescriptionSet<LootContextParam<?>>getType()(package private) booleanhasLimit()lootingMultiplier(NumberProvider p_165230_) run(ItemStack p_80789_, LootContext p_80790_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, 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
- 
NO_LIMIT
public static final int NO_LIMIT- See Also:
 
 - 
value
 - 
limit
final int limit 
 - 
 - 
Constructor Details
- 
LootingEnchantFunction
LootingEnchantFunction(LootItemCondition[] p_165226_, NumberProvider p_165227_, int p_165228_)  
 - 
 - 
Method Details
- 
getType
 - 
getReferencedContextParams
 - 
hasLimit
boolean hasLimit() - 
run
- Specified by:
 runin classLootItemConditionalFunction
 - 
lootingMultiplier
 
 -