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

public class SetCustomDataFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

esj
net.minecraft.world.level.storage.loot.functions.SetCustomDataFunction
net.minecraft.class_159
net.minecraft.loot.function.SetCustomDataLootFunction
net.minecraft.src.C_313313_
net.minecraft.world.level.storage.loot.functions.SetCustomDataFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetCustomDataFunction>
a
CODEC
field_45849
CODEC
f_314300_
private final CompoundTag
b
tag
field_1138
nbt
f_314948_

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, CompoundTag nbt)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetCustomDataFunction>
b()
getType()
method_29321()
getType()
m_7162_()
public ItemStack
a(cur arg0, eqk arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_331034_, C_2811_ arg1)
public static LootItemConditionalFunction$Builder<?>
a(us arg0)
setCustomData(CompoundTag arg0)
method_57654(class_2487 arg0)
builder(NbtCompound nbt)
m_323013_(C_4917_ p_328660_)