Package net.minecraft.loot.functions
Class LootingEnchantBonus
java.lang.Object
net.minecraft.loot.LootFunction
net.minecraft.loot.functions.LootingEnchantBonus
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> ILootFunction
,IParameterized
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder
-
Field Summary
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
Constructor Summary
ModifierConstructorDescriptionprivate
LootingEnchantBonus
(ILootCondition[] p_i47145_1_, RandomValueRange p_i47145_2_, int p_i47145_3_) -
Method Summary
Modifier and TypeMethodDescriptionSet<LootParameter<?>>
getType()
private boolean
hasLimit()
static LootingEnchantBonus.Builder
lootingMultiplier
(RandomValueRange p_215915_0_) run
(ItemStack p_215859_1_, LootContext p_215859_2_) Methods inherited from class net.minecraft.loot.LootFunction
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
-
value
-
limit
private final int limit
-
-
Constructor Details
-
LootingEnchantBonus
private LootingEnchantBonus(ILootCondition[] p_i47145_1_, RandomValueRange p_i47145_2_, int p_i47145_3_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
hasLimit
private boolean hasLimit() -
run
- Specified by:
run
in classLootFunction
-
lootingMultiplier
-