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

public class SetItemDamageFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

esp
net.minecraft.world.level.storage.loot.functions.SetItemDamageFunction
net.minecraft.class_149
net.minecraft.unmapped.C_wkslhogk
net.minecraft.loot.function.SetDamageLootFunction
net.minecraft.loot.function.SetDamageLootFunction
net.minecraft.src.C_2950_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetCount

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetItemDamageFunction>
b()
getType()
method_29321()
m_ngvoddkv()
getType()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getRequiredParameters()
getRequiredParameters()
m_6231_()
public ItemStack
a(cuq arg0, eqj 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_81049_, C_2811_ arg1)
public static LootItemConditionalFunction$Builder<?>
a(euo arg0)
setDamage(NumberProvider arg0)
method_633(class_5658 arg0)
m_jsjekkxl(C_iajmfyig arg0)
builder(LootNumberProvider durabilityRange)
builder(LootNumberProvider durabilityRange)
m_165430_(C_141501_ p_165431_)
public static LootItemConditionalFunction$Builder<?>
a(euo arg0, boolean arg1)
setDamage(NumberProvider arg0, boolean arg1)
method_35542(class_5658 arg0, boolean arg1)
m_yqlwlovm(C_iajmfyig arg0, boolean arg1)
builder(LootNumberProvider durabilityRange, boolean add)
builder(LootNumberProvider durabilityRange, boolean add)
m_165432_(C_141501_ p_165433_, boolean p_165434_)