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

public class SetAttributesFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

fba
net.minecraft.world.level.storage.loot.functions.SetAttributesFunction
net.minecraft.class_137
net.minecraft.unmapped.C_brhhfbvx
net.minecraft.loot.function.SetAttributesLootFunction
net.minecraft.loot.function.SetAttributesLootFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetAttributesFunction>
a
CODEC
field_45836
f_wmwxanmr
CODEC
CODEC
private final List<SetAttributesFunction$Modifier>
b
modifiers
field_1105
f_ubfewkkt
attributes
attributes
private final boolean
c
replace
field_51360
f_sifogjkj
replace
replace

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, List<SetAttributesFunction$Modifier> attributes, boolean replace)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetAttributesFunction>
b()
getType()
method_29321()
m_ngvoddkv()
getType()
getType()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getAllowedParameters()
getRequiredParameters()
public ItemStack
a(czd arg0, ezh arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
m_axzztavb(C_sddaxwyk arg0, C_iakykpgh arg1)
process(ItemStack arg0, LootContext arg1)
process(ItemStack arg0, LootContext arg1)
private ItemAttributeModifiers
a(ezh arg0, dbu arg1)
updateModifiers(LootContext arg0, ItemAttributeModifiers arg1)
method_59544(class_47 arg0, class_9285 arg1)
m_rmclxjlv(C_iakykpgh arg0, C_azfkqhlm arg1)
applyTo(LootContext context, AttributeModifiersComponent attributeModifiersComponent)
process(LootContext context, AttributeModifiersComponent component)
public static SetAttributesFunction$ModifierBuilder
a(alg arg0, je<byf> arg1, byi$a arg2, fdm arg3)
modifier(ResourceLocation arg0, Holder<Attribute> arg1, AttributeModifier$Operation arg2, NumberProvider arg3)
method_35524(class_2960 arg0, class_6880<class_1320> arg1, class_1322$class_1323 arg2, class_5658 arg3)
m_iiczclll(C_ncpywfca arg0, C_cjzoxshv<C_ppzfbbsy> arg1, C_hdbqsqsm$C_pljpmmzs arg2, C_iajmfyig arg3)
attributeBuilder(Identifier id, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier$Operation operation, LootNumberProvider amountRange)
create(Identifier id, Holder<EntityAttribute> attribute, EntityAttributeModifier$Operation operation, LootNumberProvider amountRange)
public static SetAttributesFunction$Builder
c()
setAttributes()
method_35525()
m_ynrasumo()
builder()
create()