public static enum AttributeManager.Key extends Enum<AttributeManager.Key>
Enum Constant and Description |
---|
KEY_ARMOR |
KEY_ARMOR_TOUGHNESS |
KEY_ATTACK_DAMAGE |
KEY_ATTACK_SPEED |
KEY_FLYING_SPEED |
KEY_FOLLOW_RANGE |
KEY_HORSE_JUMP_STRENGTH |
KEY_KNOCKBACK_RESISTANCE |
KEY_LUCK |
KEY_MAX_HEALTH |
KEY_MOVEMENT_SPEED |
KEY_ZOMBIE_SPAWN_REINFORCEMENTS |
Modifier and Type | Method and Description |
---|---|
static AttributeManager.Key |
fromAttribute(org.bukkit.attribute.Attribute attribute)
Get the
AttributeManager.Key for the corresponding Attribute . |
static AttributeManager.Key |
fromName(String name)
Get a
AttributeManager.Key by its attribute name . |
org.bukkit.attribute.Attribute |
getAttribute()
Bukkit
Attribute corresponding to this key. |
double |
getDef()
Default attribute value.
|
double |
getMax()
Maximum attribute value.
|
double |
getMin()
Minimum attribute value.
|
String |
toString() |
static AttributeManager.Key |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeManager.Key[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeManager.Key KEY_MAX_HEALTH
public static final AttributeManager.Key KEY_FOLLOW_RANGE
public static final AttributeManager.Key KEY_KNOCKBACK_RESISTANCE
public static final AttributeManager.Key KEY_MOVEMENT_SPEED
public static final AttributeManager.Key KEY_ATTACK_DAMAGE
public static final AttributeManager.Key KEY_ATTACK_SPEED
public static final AttributeManager.Key KEY_ARMOR
public static final AttributeManager.Key KEY_ARMOR_TOUGHNESS
public static final AttributeManager.Key KEY_LUCK
public static final AttributeManager.Key KEY_FLYING_SPEED
public static final AttributeManager.Key KEY_HORSE_JUMP_STRENGTH
public static final AttributeManager.Key KEY_ZOMBIE_SPAWN_REINFORCEMENTS
public static AttributeManager.Key[] values()
for (AttributeManager.Key c : AttributeManager.Key.values()) System.out.println(c);
public static AttributeManager.Key valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AttributeManager.Key fromName(String name)
AttributeManager.Key
by its attribute name
.name
- of the attribute to returnnull
public static AttributeManager.Key fromAttribute(org.bukkit.attribute.Attribute attribute)
AttributeManager.Key
for the corresponding Attribute
.attribute
- attribute from Bukkit apinull
public String toString()
toString
in class Enum<AttributeManager.Key>
public org.bukkit.attribute.Attribute getAttribute()
Attribute
corresponding to this key.public double getDef()
public double getMin()
public double getMax()
Copyright © 2021. All rights reserved.