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

public class SetCustomDataFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eyo
net.minecraft.world.level.storage.loot.functions.SetCustomDataFunction
net.minecraft.class_159
net.minecraft.loot.function.SetCustomDataLootFunction
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
private final CompoundTag
b
tag
field_1138
nbt

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetCustomDataFunction>
b()
getType()
method_29321()
getType()
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(ux arg0)
setCustomData(CompoundTag arg0)
method_57654(class_2487 arg0)
builder(NbtCompound nbt)