Class Attribute

java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Attribute>
net.minecraft.world.entity.ai.attributes.Attribute
All Implemented Interfaces:
IForgeRegistryEntry<Attribute>
Direct Known Subclasses:
RangedAttribute

public class Attribute extends ForgeRegistryEntry<Attribute>
  • Field Details

    • MAX_NAME_LENGTH

      public static final int MAX_NAME_LENGTH
      See Also:
    • defaultValue

      private final double defaultValue
    • syncable

      private boolean syncable
    • descriptionId

      private final String descriptionId
  • Constructor Details

    • Attribute

      protected Attribute(String p_22080_, double p_22081_)
  • Method Details

    • getDefaultValue

      public double getDefaultValue()
    • isClientSyncable

      public boolean isClientSyncable()
    • setSyncable

      public Attribute setSyncable(boolean p_22085_)
    • sanitizeValue

      public double sanitizeValue(double p_22083_)
    • getDescriptionId

      public String getDescriptionId()