net.minecraft.world.entity.ai.attributes

public class Attribute

bxj
net.minecraft.world.entity.ai.attributes.Attribute
net.minecraft.class_1320
net.minecraft.entity.attribute.EntityAttribute
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
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<Attribute>>
b
STREAM_CODEC
field_51940
PACKET_CODEC
private final double
c
defaultValue
field_23697
fallback
private boolean
d
syncable
field_23698
tracked
private final String
e
descriptionId
field_23699
translationKey
private Attribute$Sentiment
f
sentiment
field_51884
category

Constructor summary

ModifierConstructor
protected (String translationKey, double fallback)

Method summary

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