Class Attribute

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

public class Attribute extends ForgeRegistryEntry<Attribute>
  • Field Details

    • defaultValue

      private final double defaultValue
    • syncable

      private boolean syncable
    • descriptionId

      private final String descriptionId
  • Constructor Details

    • Attribute

      protected Attribute(String p_i231500_1_, double p_i231500_2_)
  • Method Details

    • getDefaultValue

      public double getDefaultValue()
    • isClientSyncable

      public boolean isClientSyncable()
    • setSyncable

      public Attribute setSyncable(boolean p_233753_1_)
    • sanitizeValue

      public double sanitizeValue(double p_111109_1_)
    • getDescriptionId

      public String getDescriptionId()