Package org.bukkit.attribute
Enum Class Attribute
- All Implemented Interfaces:
Serializable
,Comparable<Attribute>
,Constable
,Keyed
,Translatable
Types of attributes which may be present on an
Attributable
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionArmor bonus of an Entity.Armor durability bonus of an Entity.Attack damage of an Entity.Attack knockback of an Entity.Attack speed of an Entity.How long an entity remains burning after ingition.Resistance to knockback from explosions.The fall damage multiplier of an Entity.Flying speed of an Entity.Range at which an Entity will follow others.The gravity applied to an Entity.Strength with which an Entity will jump.Resistance of an Entity to knockback.Luck bonus of an Entity.Maximum absorption of an Entity.Maximum health of an Entity.Movement speed through difficult terrain.Movement speed of an Entity.Oxygen use underwater.The distance which an Entity can fall without damage.The relative scale of an Entity.The height which an Entity can walk over.Movement speed through water.Block break speed of a Player.The block reach distance of a Player.The entity reach distance of a Player.Mining speed for correct tools.Sneaking speed.Underwater mining speed.Sweeping damage.Chance of a zombie to spawn reinforcements. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Return the namespaced identifier for this object.Get the translation key, suitable for use in a translation component.static Attribute
Returns the enum constant of this class with the specified name.static Attribute[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERIC_MAX_HEALTH
Maximum health of an Entity. -
GENERIC_FOLLOW_RANGE
Range at which an Entity will follow others. -
GENERIC_KNOCKBACK_RESISTANCE
Resistance of an Entity to knockback. -
GENERIC_MOVEMENT_SPEED
Movement speed of an Entity. -
GENERIC_FLYING_SPEED
Flying speed of an Entity. -
GENERIC_ATTACK_DAMAGE
Attack damage of an Entity. -
GENERIC_ATTACK_KNOCKBACK
Attack knockback of an Entity. -
GENERIC_ATTACK_SPEED
Attack speed of an Entity. -
GENERIC_ARMOR
Armor bonus of an Entity. -
GENERIC_ARMOR_TOUGHNESS
Armor durability bonus of an Entity. -
GENERIC_FALL_DAMAGE_MULTIPLIER
The fall damage multiplier of an Entity. -
GENERIC_LUCK
Luck bonus of an Entity. -
GENERIC_MAX_ABSORPTION
Maximum absorption of an Entity. -
GENERIC_SAFE_FALL_DISTANCE
The distance which an Entity can fall without damage. -
GENERIC_SCALE
The relative scale of an Entity. -
GENERIC_STEP_HEIGHT
The height which an Entity can walk over. -
GENERIC_GRAVITY
The gravity applied to an Entity. -
GENERIC_JUMP_STRENGTH
Strength with which an Entity will jump. -
GENERIC_BURNING_TIME
How long an entity remains burning after ingition. -
GENERIC_EXPLOSION_KNOCKBACK_RESISTANCE
Resistance to knockback from explosions. -
GENERIC_MOVEMENT_EFFICIENCY
Movement speed through difficult terrain. -
GENERIC_OXYGEN_BONUS
Oxygen use underwater. -
GENERIC_WATER_MOVEMENT_EFFICIENCY
Movement speed through water. -
PLAYER_BLOCK_INTERACTION_RANGE
The block reach distance of a Player. -
PLAYER_ENTITY_INTERACTION_RANGE
The entity reach distance of a Player. -
PLAYER_BLOCK_BREAK_SPEED
Block break speed of a Player. -
PLAYER_MINING_EFFICIENCY
Mining speed for correct tools. -
PLAYER_SNEAKING_SPEED
Sneaking speed. -
PLAYER_SUBMERGED_MINING_SPEED
Underwater mining speed. -
PLAYER_SWEEPING_DAMAGE_RATIO
Sweeping damage. -
ZOMBIE_SPAWN_REINFORCEMENTS
Chance of a zombie to spawn reinforcements.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getKey
Description copied from interface:Keyed
Return the namespaced identifier for this object. -
getTranslationKey
Description copied from interface:Translatable
Get the translation key, suitable for use in a translation component.- Specified by:
getTranslationKey
in interfaceTranslatable
- Returns:
- the translation key
-