net.minecraft.world.entity.ai.attributes

public record AttributeModifier

buu
net.minecraft.world.entity.ai.attributes.AttributeModifier
net.minecraft.class_1322
net.minecraft.entity.attribute.EntityAttributeModifier
net.minecraft.src.C_555_
net.minecraft.world.entity.ai.attributes.AttributeModifier

Field summary

Modifier and TypeField
private final ResourceLocation
d
id
comp_2447
id
f_22193_
private final double
e
amount
comp_2449
value
f_22190_
private final AttributeModifier$Operation
f
operation
comp_2450
operation
f_22191_
private static final org.slf4j.Logger
g
LOGGER
field_23712
LOGGER
f_22189_
public static final com.mojang.serialization.MapCodec<AttributeModifier>
a
MAP_CODEC
field_49232
MAP_CODEC
f_316599_
public static final com.mojang.serialization.Codec<AttributeModifier>
b
CODEC
field_46247
CODEC
f_303618_
public static final StreamCodec<io.netty.buffer.ByteBuf, AttributeModifier>
c
STREAM_CODEC
field_49233
PACKET_CODEC
f_315334_

Constructor summary

ModifierConstructor
public (ResourceLocation amount, double operation, AttributeModifier$Operation arg2)

Method summary

Modifier and TypeMethod
public CompoundTag
a()
save()
method_26860()
toNbt()
m_22219_()
public static AttributeModifier
a(ub arg0)
load(CompoundTag arg0)
method_26859(class_2487 arg0)
fromNbt(NbtCompound nbt)
m_22212_(C_4917_ p_22213_)
public boolean
a(akr arg0)
is(ResourceLocation arg0)
method_60718(class_2960 arg0)
idMatches(Identifier id)
m_340419_(C_5265_ arg0)
public ResourceLocation
b()
id()
comp_2447()
id()
f_22193_()
public double
c()
amount()
comp_2449()
value()
f_22190_()
public AttributeModifier$Operation
d()
operation()
comp_2450()
operation()
f_22191_()