Interface RangedAttributeType
- All Superinterfaces:
AttributeType,DefaultedRegistryValue
Represents an
AttributeType with a ranged value.-
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the maximum value an attribute of this type can hold.doubleGets the minimum value an attribute of this type can hold.Methods inherited from interface org.spongepowered.api.entity.attribute.type.AttributeType
clampValue, defaultValueMethods 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.
-