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

public class ApplyBonusCount

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

erh
net.minecraft.world.level.storage.loot.functions.ApplyBonusCount
net.minecraft.class_94
net.minecraft.unmapped.C_mxqfevzh
net.minecraft.loot.function.ApplyBonusLootFunction
net.minecraft.loot.function.ApplyBonusLootFunction
net.minecraft.src.C_2874_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionApplyBonus

Field summary

Modifier and TypeField
private static final Map<ResourceLocation, ApplyBonusCount$FormulaType>
b
FORMULAS
field_1010
f_ojkdftuu
FACTORIES
FACTORIES
f_79898_
private static final com.mojang.serialization.Codec<ApplyBonusCount$FormulaType>
c
FORMULA_TYPE_CODEC
field_45807
f_ljdofuio
TYPE_CODEC
f_291576_
private static final com.mojang.serialization.MapCodec<ApplyBonusCount$Formula>
d
FORMULA_CODEC
field_45808
f_hdrqmynq
FORMULA_CODEC
f_290648_
public static final com.mojang.serialization.MapCodec<ApplyBonusCount>
a
CODEC
field_45806
f_xeglxauo
CODEC
CODEC
f_291250_
private final Holder<Enchantment>
e
enchantment
field_1011
f_wsrpgatr
enchantment
enchantment
f_79899_
private final ApplyBonusCount$Formula
f
formula
field_1009
f_wsorvvwo
formula
formula
f_79900_

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, Holder<Enchantment> enchantment, ApplyBonusCount$Formula formula)

Method summary

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