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

public class SetAttributesFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

etk
net.minecraft.world.level.storage.loot.functions.SetAttributesFunction
net.minecraft.class_137
net.minecraft.loot.function.SetAttributesLootFunction
net.minecraft.src.C_2936_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetAttribute

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetAttributesFunction>
b()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public ItemStack
a(cuq arg0, err arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_80841_, C_2811_ arg1)
private ItemAttributeModifiers
a(err arg0, cxn arg1)
updateModifiers(LootContext arg0, ItemAttributeModifiers arg1)
method_59544(class_47 arg0, class_9285 arg1)
applyTo(LootContext context, AttributeModifiersComponent attributeModifiersComponent)
m_322651_(C_2811_ p_333868_, C_313447_ arg1)
public static SetAttributesFunction$ModifierBuilder
a(akr arg0, jm<bur> arg1, buu$a arg2, evy 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)
attributeBuilder(Identifier id, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier$Operation operation, LootNumberProvider amountRange)
m_165235_(C_5265_ p_344770_, C_203228_<C_552_> p_300622_, C_555_$C_556_ p_165238_, C_141501_ p_165239_)
public static SetAttributesFunction$Builder
c()
setAttributes()
method_35525()
builder()
m_165241_()