Uses of Enum Class
net.glowstone.entity.AttributeManager.Key
-
Uses of AttributeManager.Key in net.glowstone.entity
Modifier and TypeMethodDescriptionstatic @Nullable AttributeManager.Key
AttributeManager.Key.fromAttribute(@NotNull org.bukkit.attribute.Attribute attribute)
Get theAttributeManager.Key
for the correspondingAttribute
.static AttributeManager.Key
Get aAttributeManager.Key
by itsattribute name
.AttributeManager.Property.getKey()
static AttributeManager.Key
Returns the enum constant of this class with the specified name.static AttributeManager.Key[]
AttributeManager.Key.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescription@Nullable AttributeManager.Property
AttributeManager.getProperty(@NotNull AttributeManager.Key key)
Get the property for a certainAttributeManager.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.ModifierConstructorDescriptionProperty(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)