public enum AttributeType extends Enum<AttributeType>
| Enum Constant and Description |
|---|
ABSORPTION |
ARMOR |
ARMOR_TOUGHNESS |
ATTACK_DAMAGE |
ATTACK_KNOCKBACK |
ATTACK_SPEED |
EXHAUSTION |
EXPERIENCE |
EXPERIENCE_LEVEL |
FLYING_SPEED |
FOLLOW_RANGE |
HEALTH |
HUNGER |
KNOCKBACK_RESISTANCE |
LUCK |
MAX_HEALTH |
MOVEMENT_SPEED |
SATURATION |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(float value) |
Attribute |
getAttribute(float value,
float maximum) |
boolean |
isBedrockAttribute() |
boolean |
isJavaAttribute() |
static AttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeType FOLLOW_RANGE
public static final AttributeType KNOCKBACK_RESISTANCE
public static final AttributeType MOVEMENT_SPEED
public static final AttributeType FLYING_SPEED
public static final AttributeType ATTACK_DAMAGE
public static final AttributeType ARMOR
public static final AttributeType ARMOR_TOUGHNESS
public static final AttributeType ATTACK_KNOCKBACK
public static final AttributeType ATTACK_SPEED
public static final AttributeType LUCK
public static final AttributeType MAX_HEALTH
public static final AttributeType ABSORPTION
public static final AttributeType EXHAUSTION
public static final AttributeType EXPERIENCE
public static final AttributeType EXPERIENCE_LEVEL
public static final AttributeType HEALTH
public static final AttributeType HUNGER
public static final AttributeType SATURATION
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType 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 Attribute getAttribute(float value)
public Attribute getAttribute(float value, float maximum)
public boolean isJavaAttribute()
public boolean isBedrockAttribute()
Copyright © 2020 GeyserMC. All rights reserved.