net.minecraft.world.entity.ai.attributes

public record AttributeModifier

bux
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 UUID
d
id
comp_2447
uuid
f_22193_
private final String
e
name
comp_2448
name
f_303575_
private final double
f
amount
comp_2449
value
f_22190_
private final AttributeModifier$Operation
g
operation
comp_2450
operation
f_22191_
private static final org.slf4j.Logger
h
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 (String name, double value, AttributeModifier$Operation operation)
public (UUID uuid, String name, double value, AttributeModifier$Operation operation)

Method summary

Modifier and TypeMethod
public CompoundTag
a()
save()
method_26860()
toNbt()
m_22219_()
public static AttributeModifier
a(us arg0)
load(CompoundTag arg0)
method_26859(class_2487 arg0)
fromNbt(NbtCompound nbt)
m_22212_(C_4917_ p_22213_)
public UUID
b()
id()
comp_2447()
uuid()
f_22193_()
public String
c()
name()
comp_2448()
name()
f_303575_()
public double
d()
amount()
comp_2449()
value()
f_22190_()
public AttributeModifier$Operation
e()
operation()
comp_2450()
operation()
f_22191_()