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 classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootingEnchantFunction>
private final int
static final int
private final NumberProvider
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionLootingEnchantFunction
(List<LootItemCondition> p_298273_, NumberProvider p_165227_, int p_165228_) -
Method Summary
Modifier and TypeMethodDescriptionSet<LootContextParam<?>>
getType()
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, commonFields, 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:
-
CODEC
-
value
-
limit
private final int limit
-
-
Constructor Details
-
LootingEnchantFunction
LootingEnchantFunction(List<LootItemCondition> p_298273_, NumberProvider p_165227_, int p_165228_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
hasLimit
private boolean hasLimit() -
run
- Specified by:
run
in classLootItemConditionalFunction
-
lootingMultiplier
-