net.minecraft.world.entity.ai.attributes

public class Attribute

bur
net.minecraft.world.entity.ai.attributes.Attribute
net.minecraft.class_1320
net.minecraft.entity.attribute.EntityAttribute
net.minecraft.src.C_552_
net.minecraft.world.entity.ai.attributes.AttributeBase

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Holder<Attribute>>
a
CODEC
field_51575
CODEC
f_337502_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Attribute>>
b
STREAM_CODEC
field_51940
PACKET_CODEC
f_337574_
private final double
c
defaultValue
field_23697
fallback
f_22076_
private boolean
d
syncable
field_23698
tracked
f_22077_
private final String
e
descriptionId
field_23699
translationKey
f_22078_
private Attribute$Sentiment
f
sentiment
field_51884
category
f_337488_

Constructor summary

ModifierConstructor
protected (String translationKey, double fallback)

Method summary

Modifier and TypeMethod
public double
a()
getDefaultValue()
method_6169()
getDefaultValue()
m_22082_()
public boolean
b()
isClientSyncable()
method_6168()
isTracked()
m_22086_()
public Attribute
a(boolean arg0)
setSyncable(boolean arg0)
method_26829(boolean arg0)
setTracked(boolean tracked)
m_22084_(boolean arg0)
public Attribute
a(bur$a arg0)
setSentiment(Attribute$Sentiment arg0)
method_60493(class_1320$class_9764 arg0)
setCategory(EntityAttribute$Category category)
m_340208_(C_552_$C_336496_ arg0)
public double
a(double arg0)
sanitizeValue(double arg0)
method_6165(double arg0)
clamp(double value)
m_6740_(double arg0)
public String
c()
getDescriptionId()
method_26830()
getTranslationKey()
m_22087_()
public ChatFormatting
b(boolean arg0)
getStyle(boolean arg0)
method_60494(boolean arg0)
getFormatting(boolean addition)
m_339456_(boolean arg0)