net.minecraft.world.item.enchantment.effects

public record EnchantmentAttributeEffect

implements EnchantmentLocationBasedEffect

dar
net.minecraft.world.item.enchantment.effects.EnchantmentAttributeEffect
net.minecraft.class_9720
net.minecraft.enchantment.effect.AttributeEnchantmentEffect
net.minecraft.src.C_336593_
net.minecraft.world.item.enchantment.effects.EnchantmentAttributeEffect

Field summary

Modifier and TypeField
private final ResourceLocation
b
id
comp_2839
id
f_337022_
private final Holder<Attribute>
d
attribute
comp_2718
attribute
f_337199_
private final LevelBasedValue
e
amount
comp_2719
amount
f_336750_
private final AttributeModifier$Operation
f
operation
comp_2720
operation
f_336935_
public static final com.mojang.serialization.MapCodec<EnchantmentAttributeEffect>
a
CODEC
field_51706
CODEC
f_336678_

Constructor summary

ModifierConstructor
public (ResourceLocation attribute, Holder<Attribute> amount, LevelBasedValue operation, AttributeModifier$Operation arg3)

Method summary

Modifier and TypeMethod
private ResourceLocation
a(azk arg0)
idForSlot(StringRepresentable arg0)
method_60769(class_3542 arg0)
getModifierId(StringIdentifiable suffix)
m_339896_(C_197_ arg0)
public AttributeModifier
a(int arg0, azk arg1)
getModifier(int arg0, StringRepresentable arg1)
method_60228(int arg0, class_3542 arg1)
createAttributeModifier(int value, StringIdentifiable suffix)
m_338573_(int p_342150_, C_197_ arg1)
public void
a(aqu arg0, int arg1, dab arg2, bsr arg3, exc arg4, boolean arg5)
onChangedBlock(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, Entity arg3, Vec3 arg4, boolean arg5)
method_60221(class_3218 arg0, int arg1, class_9699 arg2, class_1297 arg3, class_243 arg4, boolean arg5)
apply(ServerWorld arg0, int arg1, EnchantmentEffectContext arg2, Entity arg3, Vec3d arg4, boolean arg5)
m_339697_(C_12_ p_343426_, int p_344251_, C_336528_ p_342367_, C_507_ p_343372_, C_3046_ p_342530_, boolean arg5)
public void
a(dab arg0, bsr arg1, exc arg2, int arg3)
onDeactivated(EnchantedItemInUse arg0, Entity arg1, Vec3 arg2, int arg3)
method_60222(class_9699 arg0, class_1297 arg1, class_243 arg2, int arg3)
remove(EnchantmentEffectContext arg0, Entity arg1, Vec3d arg2, int arg3)
m_338378_(C_336528_ p_343519_, C_507_ p_342547_, C_3046_ p_343187_, int arg3)
private com.google.common.collect.HashMultimap<Holder<Attribute>, AttributeModifier>
a(int arg0, bsy arg1)
makeAttributeMap(int arg0, EquipmentSlot arg1)
method_60230(int arg0, class_1304 arg1)
getModifiers(int level, EquipmentSlot slot)
m_339104_(int p_343561_, C_516_ arg1)
public com.mojang.serialization.MapCodec<EnchantmentAttributeEffect>
a()
codec()
method_60219()
getCodec()
m_338403_()
public ResourceLocation
b()
id()
comp_2839()
id()
f_337022_()
public Holder<Attribute>
c()
attribute()
comp_2718()
attribute()
f_337199_()
public LevelBasedValue
d()
amount()
comp_2719()
amount()
f_336750_()
public AttributeModifier$Operation
e()
operation()
comp_2720()
operation()
f_336935_()