net.minecraft.world.item.enchantment.effects

public record EnchantmentAttributeEffect

implements EnchantmentLocationBasedEffect

ddq
net.minecraft.world.item.enchantment.effects.EnchantmentAttributeEffect
net.minecraft.class_9720
net.minecraft.enchantment.effect.AttributeEnchantmentEffect
net.minecraft.world.item.enchantment.effects.EnchantmentAttributeEffect

Field summary

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

Constructor summary

ModifierConstructor
public (ResourceLocation arg0, Holder<Attribute> arg1, LevelBasedValue arg2, AttributeModifier$Operation arg3)

Method summary

Modifier and TypeMethod
private ResourceLocation
a(azv arg0)
idForSlot(StringRepresentable arg0)
method_60769(class_3542 arg0)
getModifierId(StringIdentifiable suffix)
public AttributeModifier
a(int arg0, azv arg1)
getModifier(int arg0, StringRepresentable arg1)
method_60228(int arg0, class_3542 arg1)
createAttributeModifier(int value, StringIdentifiable suffix)
public void
a(ard arg0, int arg1, dcz arg2, bum arg3, fbb 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)
public void
a(dcz arg0, bum arg1, fbb 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)
private com.google.common.collect.HashMultimap<Holder<Attribute>, AttributeModifier>
a(int arg0, buu arg1)
makeAttributeMap(int arg0, EquipmentSlot arg1)
method_60230(int arg0, class_1304 arg1)
getModifiers(int level, EquipmentSlot slot)
public com.mojang.serialization.MapCodec<EnchantmentAttributeEffect>
a()
codec()
method_60219()
getCodec()
public ResourceLocation
b()
id()
comp_2839()
id()
public Holder<Attribute>
c()
attribute()
comp_2718()
attribute()
public LevelBasedValue
d()
amount()
comp_2719()
amount()
public AttributeModifier$Operation
e()
operation()
comp_2720()
operation()