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

public class SetCustomModelDataFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eyp
net.minecraft.world.level.storage.loot.functions.SetCustomModelDataFunction
net.minecraft.class_9670
net.minecraft.loot.function.SetCustomModelDataLootFunction
net.minecraft.world.level.storage.loot.functions.SetCustomModelDataFunction

Field summary

Modifier and TypeField
static final com.mojang.serialization.MapCodec<SetCustomModelDataFunction>
a
CODEC
field_51434
CODEC
private final NumberProvider
b
valueProvider
field_51435
value

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, NumberProvider value)

Method summary

Modifier and TypeMethod
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public LootItemFunctionType<SetCustomModelDataFunction>
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)