net.minecraft.loot.function

public class SetCountLootFunction

extends ConditionalLootFunction

All mapped superinterfaces:

LootFunction, LootContextAware

eyu
net.minecraft.world.level.storage.loot.functions.SetItemCountFunction
net.minecraft.class_141
net.minecraft.loot.function.SetCountLootFunction
net.minecraft.unmapped.C_dxxjuyma
net.minecraft.loot.function.SetCountLootFunction
net.minecraft.src.C_2947_

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetCountLootFunction>
a
CODEC
field_45845
CODEC
f_ogbsafrz
CODEC
f_290727_
private final LootNumberProvider
b
value
field_1114
countRange
f_mybuvtwj
countRange
f_80997_
private final boolean
c
add
field_27909
add
f_gadtfxiq
add
f_165407_

Constructor summary

ModifierConstructor
private (List<LootCondition> conditions, LootNumberProvider countRange, boolean add)

Method summary

Modifier and TypeMethod
public LootFunctionType<SetCountLootFunction>
b()
getType()
method_29321()
getType()
m_ngvoddkv()
getType()
m_7162_()
public Set<ContextParameter<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
m_oozesizv()
getRequiredParameters()
m_6231_()
public ItemStack
a(cxp o, ewp arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_axzztavb(C_sddaxwyk arg0, C_iakykpgh arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_81007_, C_2811_ arg1)
public static ConditionalLootFunction$Builder<?>
a(fau o)
setCount(NumberProvider arg0)
method_621(class_5658 arg0)
builder(LootNumberProvider countRange)
m_gaeejsvd(C_iajmfyig arg0)
builder(LootNumberProvider countRange)
m_165412_(C_141501_ p_165413_)
public static ConditionalLootFunction$Builder<?>
a(fau o, boolean o)
setCount(NumberProvider arg0, boolean arg1)
method_35540(class_5658 arg0, boolean arg1)
builder(LootNumberProvider countRange, boolean add)
m_glatashz(C_iajmfyig arg0, boolean arg1)
builder(LootNumberProvider countRange, boolean add)
m_165414_(C_141501_ p_165415_, boolean p_165416_)