net.minecraft.world.level.storage.loot.functions

public class ApplyBonusCount

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

dkz
net.minecraft.world.level.storage.loot.functions.ApplyBonusCount
net.minecraft.class_94
net.minecraft.loot.function.ApplyBonusLootFunction
net.minecraft.src.C_2874_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionApplyBonus

Field summary

Modifier and TypeField
static final Map<ResourceLocation, ApplyBonusCount$FormulaDeserializer>
a
FORMULAS
field_1010
FACTORIES
f_79898_
final Enchantment
b
enchantment
field_1011
enchantment
f_79899_
final ApplyBonusCount$Formula
c
formula
field_1009
formula
f_79900_

Constructor summary

ModifierConstructor
(LootItemCondition[] conditions, Enchantment enchantment, ApplyBonusCount$Formula formula)

Method summary

Modifier and TypeMethod
public LootItemFunctionType
a()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
b()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public ItemStack
a(bue arg0, dka arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_79914_, C_2811_ arg1)
public static LootItemConditionalFunction$Builder<?>
a(bxy arg0, float arg1, int arg2)
addBonusBinomialDistributionCount(Enchantment arg0, float arg1, int arg2)
method_463(class_1887 arg0, float arg1, int arg2)
binomialWithBonusCount(Enchantment enchantment, float probability, int extra)
m_79917_(C_1505_ p_79918_, float p_79919_, int p_79920_)
public static LootItemConditionalFunction$Builder<?>
a(bxy arg0)
addOreBonusCount(Enchantment arg0)
method_455(class_1887 arg0)
oreDrops(Enchantment enchantment)
m_79915_(C_1505_ p_79916_)
public static LootItemConditionalFunction$Builder<?>
b(bxy arg0)
addUniformBonusCount(Enchantment arg0)
method_456(class_1887 arg0)
uniformBonusCount(Enchantment enchantment)
m_79939_(C_1505_ p_79940_)
public static LootItemConditionalFunction$Builder<?>
a(bxy arg0, int arg1)
addUniformBonusCount(Enchantment arg0, int arg1)
method_461(class_1887 arg0, int arg1)
uniformBonusCount(Enchantment enchantment, int bonusMultiplier)
m_79921_(C_1505_ p_79922_, int p_79923_)