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
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescription(package private) int
static int
(package private) NumberProvider
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionLootingEnchantFunction(LootItemCondition[] p_165226_, NumberProvider p_165227_, int p_165228_)
-
Method Summary
Modifier and TypeMethodDescriptionSet<LootContextParam<?>>
getType()
(package private) boolean
hasLimit()
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, 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
-
NO_LIMIT
public static final int NO_LIMIT- See Also:
- Constant Field Values
-
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:
run
in classLootItemConditionalFunction
-
lootingMultiplier
-