net.minecraft.world.entity.ai.attributes

public record AttributeModifier

bxm
net.minecraft.world.entity.ai.attributes.AttributeModifier
net.minecraft.class_1322
net.minecraft.entity.attribute.EntityAttributeModifier
net.minecraft.world.entity.ai.attributes.AttributeModifier

Field summary

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

Constructor summary

ModifierConstructor
public (ResourceLocation arg0, double arg1, AttributeModifier$Operation arg2)

Method summary

Modifier and TypeMethod
public CompoundTag
a()
save()
method_26860()
toNbt()
public static AttributeModifier
a(ux arg0)
load(CompoundTag arg0)
method_26859(class_2487 arg0)
fromNbt(NbtCompound nbt)
public boolean
a(alz arg0)
is(ResourceLocation arg0)
method_60718(class_2960 arg0)
idMatches(Identifier id)
public ResourceLocation
b()
id()
comp_2447()
id()
public double
c()
amount()
comp_2449()
value()
public AttributeModifier$Operation
d()
operation()
comp_2450()
operation()