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

public class SetNameFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eyy
net.minecraft.world.level.storage.loot.functions.SetNameFunction
net.minecraft.class_3670
net.minecraft.loot.function.SetNameLootFunction
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetName

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_16230
LOGGER
public static final com.mojang.serialization.MapCodec<SetNameFunction>
a
CODEC
field_45848
CODEC
private final Optional<Component>
c
name
field_16228
name
private final Optional<LootContext$EntityTarget>
d
resolutionContext
field_16229
entity
private final SetNameFunction$Target
e
target
field_50208
target

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, Optional<Component> name, Optional<LootContext$EntityTarget> entity, SetNameFunction$Target target)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetNameFunction>
b()
getType()
method_29321()
getType()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public static UnaryOperator<Component>
a(ewp arg0, ewp$b arg1)
createResolver(LootContext arg0, LootContext$EntityTarget arg1)
method_16190(class_47 arg0, class_47$class_50 arg1)
applySourceEntity(LootContext context, LootContext$EntityTarget sourceEntity)
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(xv arg0, eyy$a arg1)
setName(Component arg0, SetNameFunction$Target arg1)
method_35549(class_2561 arg0, class_3670$class_9475 arg1)
builder(Text name, SetNameLootFunction$Target target)
public static LootItemConditionalFunction$Builder<?>
a(xv arg0, eyy$a arg1, ewp$b arg2)
setName(Component arg0, SetNameFunction$Target arg1, LootContext$EntityTarget arg2)
method_35550(class_2561 arg0, class_3670$class_9475 arg1, class_47$class_50 arg2)
builder(Text name, SetNameLootFunction$Target target, LootContext$EntityTarget entity)