net.minecraft.entity.attribute

public class EntityAttribute

net.minecraft.world.entity.ai.attributes.Attribute
net.minecraft.class_1320
net.minecraft.entity.attribute.EntityAttribute

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<RegistryEntry<EntityAttribute>>
CODEC
field_51575
CODEC
public static final PacketCodec<RegistryByteBuf, RegistryEntry<EntityAttribute>>
STREAM_CODEC
field_51940
PACKET_CODEC
private final double
defaultValue
field_23697
fallback
private boolean
syncable
field_23698
tracked
private final String
descriptionId
field_23699
translationKey
private EntityAttribute$Category
sentiment
field_51884
category

Constructor summary

ModifierConstructor
protected (String translationKey, double fallback)

Method summary

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