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

public class SetItemCountFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eyu
net.minecraft.world.level.storage.loot.functions.SetItemCountFunction
net.minecraft.class_141
net.minecraft.loot.function.SetCountLootFunction
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetCount

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetItemCountFunction>
a
CODEC
field_45845
CODEC
private final NumberProvider
b
value
field_1114
countRange
private final boolean
c
add
field_27909
add

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, NumberProvider countRange, boolean add)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetItemCountFunction>
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(fau arg0)
setCount(NumberProvider arg0)
method_621(class_5658 arg0)
builder(LootNumberProvider countRange)
public static LootItemConditionalFunction$Builder<?>
a(fau arg0, boolean arg1)
setCount(NumberProvider arg0, boolean arg1)
method_35540(class_5658 arg0, boolean arg1)
builder(LootNumberProvider countRange, boolean add)