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

public class ApplyBonusCount

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

ewp
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
FORMULA_TYPES
f_79898_
private static final com.mojang.serialization.Codec<ApplyBonusCount$FormulaType>
c
FORMULA_TYPE_CODEC
field_45807
f_ljdofuio
TYPE_CODEC
FORMULA_TYPE_CODEC
f_291576_
private static final com.mojang.serialization.MapCodec<ApplyBonusCount$Formula>
d
FORMULA_CODEC
field_45808
f_hdrqmynq
FORMULA_CODEC
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<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getAllowedParameters()
getRequiredParameters()
m_6231_()
public ItemStack
a(cwq arg0, evs 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(jr<dda> arg0, float arg1, int arg2)
addBonusBinomialDistributionCount(Holder<Enchantment> arg0, float arg1, int arg2)
method_463(class_6880<class_1887> arg0, float arg1, int arg2)
m_ziaghyfl(C_cjzoxshv<C_jxtrubuh> arg0, float arg1, int arg2)
binomialWithBonusCount(RegistryEntry<Enchantment> enchantment, float probability, int extra)
binomialFunctionBuilder(Holder<Enchantment> enchantment, float probability, int extra)
m_79917_(C_203228_<C_1505_> p_345010_, float p_79919_, int p_79920_)
public static LootItemConditionalFunction$Builder<?>
a(jr<dda> arg0)
addOreBonusCount(Holder<Enchantment> arg0)
method_455(class_6880<class_1887> arg0)
m_lngedsfm(C_cjzoxshv<C_jxtrubuh> arg0)
oreDrops(RegistryEntry<Enchantment> enchantment)
oreDropsFunctionBuilder(Holder<Enchantment> enchantment)
m_79915_(C_203228_<C_1505_> p_344898_)
public static LootItemConditionalFunction$Builder<?>
b(jr<dda> arg0)
addUniformBonusCount(Holder<Enchantment> arg0)
method_456(class_6880<class_1887> arg0)
m_xucqilfu(C_cjzoxshv<C_jxtrubuh> arg0)
uniformBonusCount(RegistryEntry<Enchantment> enchantment)
baseFunctionBuilder(Holder<Enchantment> enchantment)
m_79939_(C_203228_<C_1505_> p_344489_)
public static LootItemConditionalFunction$Builder<?>
a(jr<dda> arg0, int arg1)
addUniformBonusCount(Holder<Enchantment> arg0, int arg1)
method_461(class_6880<class_1887> arg0, int arg1)
m_gomajsny(C_cjzoxshv<C_jxtrubuh> arg0, int arg1)
uniformBonusCount(RegistryEntry<Enchantment> enchantment, int bonusMultiplier)
uniformFunctionBuilder(Holder<Enchantment> enchantment, int bonusMultiplier)
m_79921_(C_203228_<C_1505_> p_344963_, int p_79923_)