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

public class ApplyBonusCount

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

exm
net.minecraft.world.level.storage.loot.functions.ApplyBonusCount
net.minecraft.class_94
net.minecraft.loot.function.ApplyBonusLootFunction
net.minecraft.world.level.storage.loot.functions.LootItemFunctionApplyBonus

Field summary

Modifier and TypeField
private static final Map<ResourceLocation, ApplyBonusCount$FormulaType>
b
FORMULAS
field_1010
FACTORIES
private static final com.mojang.serialization.Codec<ApplyBonusCount$FormulaType>
c
FORMULA_TYPE_CODEC
field_45807
TYPE_CODEC
private static final com.mojang.serialization.MapCodec<ApplyBonusCount$Formula>
d
FORMULA_CODEC
field_45808
FORMULA_CODEC
public static final com.mojang.serialization.MapCodec<ApplyBonusCount>
a
CODEC
field_45806
CODEC
private final Holder<Enchantment>
e
enchantment
field_1011
enchantment
private final ApplyBonusCount$Formula
f
formula
field_1009
formula

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()
getType()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public ItemStack
a(cxp arg0, ewp arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public static LootItemConditionalFunction$Builder<?>
a(jq<ddz> arg0, float arg1, int arg2)
addBonusBinomialDistributionCount(Holder<Enchantment> arg0, float arg1, int arg2)
method_463(class_6880<class_1887> arg0, float arg1, int arg2)
binomialWithBonusCount(RegistryEntry<Enchantment> enchantment, float probability, int extra)
public static LootItemConditionalFunction$Builder<?>
a(jq<ddz> arg0)
addOreBonusCount(Holder<Enchantment> arg0)
method_455(class_6880<class_1887> arg0)
oreDrops(RegistryEntry<Enchantment> enchantment)
public static LootItemConditionalFunction$Builder<?>
b(jq<ddz> arg0)
addUniformBonusCount(Holder<Enchantment> arg0)
method_456(class_6880<class_1887> arg0)
uniformBonusCount(RegistryEntry<Enchantment> enchantment)
public static LootItemConditionalFunction$Builder<?>
a(jq<ddz> arg0, int arg1)
addUniformBonusCount(Holder<Enchantment> arg0, int arg1)
method_461(class_6880<class_1887> arg0, int arg1)
uniformBonusCount(RegistryEntry<Enchantment> enchantment, int bonusMultiplier)