Package net.minestom.server.attribute
Class AttributeManager
java.lang.Object
net.minestom.server.attribute.AttributeManager
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AttributeManager
public AttributeManager()
-
-
Method Details
-
register
Register this attribute.- See Also:
-
fromKey
Retrieves an attribute by its key.- Parameters:
key- the key of the attribute- Returns:
- the attribute for the key or null if not any
-
values
Retrieves all registered attributes.- Returns:
- an array containing all registered attributes
-