Interface RangedAttributeType
- All Superinterfaces:
AttributeType
,DefaultedRegistryValue
Represents an
AttributeType
with a ranged value.-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the maximum value an attribute of this type can hold.double
Gets the minimum value an attribute of this type can hold.Methods inherited from interface org.spongepowered.api.entity.attribute.type.AttributeType
clampValue, defaultValue
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
minimumValue
double minimumValue()Gets the minimum value an attribute of this type can hold.- Returns:
- The minimum value an attribute could hold.
-
maximumValue
double maximumValue()Gets the maximum value an attribute of this type can hold.- Returns:
- The maximum value an attribute could hold.
-