Class ApplyBonusCount
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.ApplyBonusCount
- All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>
,LootItemFunction
,LootContextUser
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static interface
(package private) static interface
(package private) static class
static class
(package private) static class
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.Builder<T extends LootItemConditionalFunction.Builder<T>>, LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescription(package private) Enchantment
(package private) ApplyBonusCount.Formula
(package private) static Map<ResourceLocation,ApplyBonusCount.FormulaDeserializer>
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionApplyBonusCount(LootItemCondition[] p_79903_, Enchantment p_79904_, ApplyBonusCount.Formula p_79905_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder<?>
addBonusBinomialDistributionCount(Enchantment p_79918_, float p_79919_, int p_79920_)
static LootItemConditionalFunction.Builder<?>
addOreBonusCount(Enchantment p_79916_)
static LootItemConditionalFunction.Builder<?>
addUniformBonusCount(Enchantment p_79940_)
static LootItemConditionalFunction.Builder<?>
addUniformBonusCount(Enchantment p_79922_, int p_79923_)
Set<LootContextParam<?>>
getType()
run(ItemStack p_79913_, LootContext p_79914_)
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
-
FORMULAS
-
enchantment
-
formula
-
-
Constructor Details
-
ApplyBonusCount
ApplyBonusCount(LootItemCondition[] p_79903_, Enchantment p_79904_, ApplyBonusCount.Formula p_79905_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
addBonusBinomialDistributionCount
public static LootItemConditionalFunction.Builder<?> addBonusBinomialDistributionCount(Enchantment p_79918_, float p_79919_, int p_79920_) -
addOreBonusCount
-
addUniformBonusCount
-
addUniformBonusCount
public static LootItemConditionalFunction.Builder<?> addUniformBonusCount(Enchantment p_79922_, int p_79923_)
-