Interface AttributeType

All Superinterfaces:
DefaultedRegistryValue
All Known Subinterfaces:
RangedAttributeType

@CatalogedBy(AttributeTypes.class) public interface AttributeType extends DefaultedRegistryValue
Represents an attribute type that can apply effects or modify traits related to an entity.
  • Method Details

    • defaultValue

      double defaultValue()
      Gets the default value of this attribute type before any AttributeModifiers are applied.
      Returns:
      The default value of this attribute type.
    • clampValue

      double clampValue(double value)
      Clamps a value to be within the bounds of this attribute type.
      Parameters:
      value - The value to clamp
      Returns:
      A value within this attribute type's bounds.