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

public class SetNbtFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eiy
net.minecraft.world.level.storage.loot.functions.SetNbtFunction
net.minecraft.class_159
net.minecraft.loot.function.SetNbtLootFunction
net.minecraft.src.C_2958_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetTag

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<SetNbtFunction>
a
CODEC
field_45849
CODEC
f_290357_
private final CompoundTag
b
tag
field_1138
nbt
f_81174_

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType
b()
getType()
method_29321()
getType()
m_7162_()
public ItemStack
a(cmy arg0, egw arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_81184_, C_2811_ arg1)
public static LootItemConditionalFunction$Builder<?>
a(sn arg0)
setTag(CompoundTag arg0)
method_677(class_2487 arg0)
builder(NbtCompound nbt)
m_81187_(C_4917_ p_81188_)