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

public class SetItemDamageFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eyv
net.minecraft.world.level.storage.loot.functions.SetItemDamageFunction
net.minecraft.class_149
net.minecraft.loot.function.SetDamageLootFunction
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetDamage

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_1121
LOGGER
public static final com.mojang.serialization.MapCodec<SetItemDamageFunction>
a
CODEC
field_45846
CODEC
private final NumberProvider
c
damage
field_1120
durabilityRange
private final boolean
d
add
field_27910
add

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetItemDamageFunction>
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)
setDamage(NumberProvider arg0)
method_633(class_5658 arg0)
builder(LootNumberProvider durabilityRange)
public static LootItemConditionalFunction$Builder<?>
a(fau arg0, boolean arg1)
setDamage(NumberProvider arg0, boolean arg1)
method_35542(class_5658 arg0, boolean arg1)
builder(LootNumberProvider durabilityRange, boolean add)