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

public class ApplyBonusCount

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

dbv
net.minecraft.world.level.storage.loot.functions.ApplyBonusCount
net.minecraft.class_94
net.minecraft.loot.function.ApplyBonusLootFunction
net.minecraft.loot.functions.ApplyBonus
net.minecraft.server.v1_16_R1.LootItemFunctionApplyBonus

Field summary

Modifier and TypeField
private static final Map<ResourceLocation, ApplyBonusCount$FormulaDeserializer>
a
FORMULAS
field_1010
FACTORIES
field_215875_a
private final Enchantment
b
enchantment
field_1011
enchantment
field_215876_c
private final ApplyBonusCount$Formula
d
formula
field_1009
formula
field_215877_d

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType
b()
getType()
method_29321()
getType()
func_230425_b_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
func_215855_a()
public ItemStack
a(bki arg0, dat arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
func_215859_a(ItemStack arg0, LootContext arg1)
public static LootItemConditionalFunction$Builder<?>
a(bnw 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)
func_215870_a(Enchantment arg0, float arg1, int arg2)
public static LootItemConditionalFunction$Builder<?>
a(bnw arg0)
addOreBonusCount(Enchantment arg0)
method_455(class_1887 arg0)
oreDrops(Enchantment enchantment)
func_215869_a(Enchantment arg0)
public static LootItemConditionalFunction$Builder<?>
b(bnw arg0)
addUniformBonusCount(Enchantment arg0)
method_456(class_1887 arg0)
uniformBonusCount(Enchantment enchantment)
func_215871_b(Enchantment arg0)
public static LootItemConditionalFunction$Builder<?>
a(bnw arg0, int arg1)
addUniformBonusCount(Enchantment arg0, int arg1)
method_461(class_1887 arg0, int arg1)
uniformBonusCount(Enchantment enchantment, int bonusMultiplier)
func_215865_a(Enchantment arg0, int arg1)