Class Attribute
java.lang.Object
com.github.darksoulq.abyssallib.world.data.attribute.Attribute
Represents a definition for a custom numeric attribute.
Attributes define a base system for calculating dynamic entity stats.
-
Constructor Summary
ConstructorsConstructorDescriptionAttribute(net.kyori.adventure.key.Key key, double defaultValue) Constructs a new attribute definition. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the default base value of this attribute.net.kyori.adventure.key.Keykey()Returns the unique key used to identify this attribute.
-
Constructor Details
-
Attribute
public Attribute(net.kyori.adventure.key.Key key, double defaultValue) Constructs a new attribute definition.- Parameters:
key- The unique key for this attribute.defaultValue- The fallback base value when not explicitly set.
-
-
Method Details
-
key
public net.kyori.adventure.key.Key key()Returns the unique key used to identify this attribute.- Returns:
- The attribute key.
-
defaultValue
public double defaultValue()Returns the default base value of this attribute.- Returns:
- The default value.
-