Package | Description |
---|---|
net.glowstone.entity |
Modifier and Type | Method and Description |
---|---|
static AttributeManager.Key |
AttributeManager.Key.fromAttribute(org.bukkit.attribute.Attribute attribute)
Get the
AttributeManager.Key for the corresponding Attribute . |
static AttributeManager.Key |
AttributeManager.Key.fromName(String name)
Get a
AttributeManager.Key by its attribute name . |
AttributeManager.Key |
AttributeManager.Property.getKey() |
static AttributeManager.Key |
AttributeManager.Key.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeManager.Key[] |
AttributeManager.Key.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
AttributeManager.Property |
AttributeManager.getProperty(AttributeManager.Key key)
Get the property for a certain
AttributeManager.Key . |
double |
AttributeManager.getPropertyValue(AttributeManager.Key key)
Returns the base value of the given property with all modifiers applied.
|
void |
AttributeManager.setProperty(AttributeManager.Key key,
double value)
Updates a property and removes all modifiers.
|
void |
AttributeManager.setProperty(AttributeManager.Key key,
double value,
Collection<org.bukkit.attribute.AttributeModifier> modifiers)
Updates a property and its modifiers.
|
Constructor and Description |
---|
Property(AttributeManager.Key key,
double value,
Collection<org.bukkit.attribute.AttributeModifier> modifiers)
Create a new property instance.
|
Property(AttributeManager.Key key,
double value,
Map<UUID,org.bukkit.attribute.AttributeModifier> modifiers,
double cachedValue,
boolean isCacheUpToDate) |
Copyright © 2021. All rights reserved.