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 SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionLootItemConditionalFunction.DummyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootingEnchantFunction>private final intstatic final intprivate final NumberProviderFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionpredicates
- 
Constructor SummaryConstructorsConstructorDescriptionLootingEnchantFunction(List<LootItemCondition> p_298273_, NumberProvider p_165227_, int p_165228_) 
- 
Method SummaryModifier and TypeMethodDescriptionSet<LootContextParam<?>>getType()private booleanhasLimit()lootingMultiplier(NumberProvider p_165230_) run(ItemStack p_80789_, LootContext p_80790_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionapply, commonFields, simpleBuilder, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThen
- 
Field Details- 
NO_LIMITpublic static final int NO_LIMIT- See Also:
 
- 
CODEC
- 
value
- 
limitprivate final int limit
 
- 
- 
Constructor Details- 
LootingEnchantFunctionLootingEnchantFunction(List<LootItemCondition> p_298273_, NumberProvider p_165227_, int p_165228_) 
 
- 
- 
Method Details- 
getType
- 
getReferencedContextParams
- 
hasLimitprivate boolean hasLimit()
- 
run- Specified by:
- runin class- LootItemConditionalFunction
 
- 
lootingMultiplier
 
-