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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder -
Field Summary
FieldsFields inherited from class net.minecraft.loot.LootFunction
predicates -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLootingEnchantBonus(ILootCondition[] p_i47145_1_, RandomValueRange p_i47145_2_, int p_i47145_3_) -
Method Summary
Modifier and TypeMethodDescriptionSet<LootParameter<?>>getType()private booleanhasLimit()static LootingEnchantBonus.BuilderlootingMultiplier(RandomValueRange p_215915_0_) run(ItemStack p_215859_1_, LootContext p_215859_2_) Methods inherited from class net.minecraft.loot.LootFunction
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
-
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:
runin classLootFunction
-
lootingMultiplier
-