Package org.bukkit.attribute
Interface Attribute
- All Superinterfaces:
Comparable<Attribute>,Keyed,OldEnum<Attribute>,RegistryAware,Translatable
Types of attributes which may be present on an
Attributable.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeArmor bonus of an Entity.static final AttributeArmor durability bonus of an Entity.static final AttributeAttack damage of an Entity.static final AttributeAttack knockback of an Entity.static final AttributeAttack speed of an Entity.static final AttributeBlock break speed of a Player.static final AttributeThe block reach distance of a Player.static final AttributeHow long an entity remains burning after ignition.static final AttributeThe distance at which the camera is placed away.static final AttributeThe entity reach distance of a Player.static final AttributeResistance to knockback from explosions.static final AttributeThe fall damage multiplier of an Entity.static final AttributeFlying speed of an Entity.static final AttributeRange at which an Entity will follow others.static final AttributeThe gravity applied to an Entity.static final AttributeStrength with which an Entity will jump.static final AttributeResistance of an Entity to knockback.static final AttributeLuck bonus of an Entity.static final AttributeMaximum absorption of an Entity.static final AttributeMaximum health of an Entity.static final AttributeMining speed for correct tools.static final AttributeMovement speed through difficult terrain.static final AttributeMovement speed of an Entity.static final AttributeOxygen use underwater.static final AttributeThe distance which an Entity can fall without damage.static final AttributeThe relative scale of an Entity.static final AttributeSneaking speed.static final AttributeChance of a zombie to spawn reinforcements.static final AttributeThe height which an Entity can walk over.static final AttributeUnderwater mining speed.static final AttributeSweeping damage.static final AttributeRange at which mobs will be tempted by items.static final AttributeMovement speed through water.static final AttributeWaypoing receive range.static final AttributeWaypoint transmission range. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Deprecated.static AttributeDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.static Attribute[]values()Deprecated.useIterable.iterator().Methods inherited from interface org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegisteredMethods inherited from interface org.bukkit.Translatable
getTranslationKey
-
Field Details
-
MAX_HEALTH
Maximum health of an Entity. -
FOLLOW_RANGE
Range at which an Entity will follow others. -
KNOCKBACK_RESISTANCE
Resistance of an Entity to knockback. -
MOVEMENT_SPEED
Movement speed of an Entity. -
FLYING_SPEED
Flying speed of an Entity. -
ATTACK_DAMAGE
Attack damage of an Entity. -
ATTACK_KNOCKBACK
Attack knockback of an Entity. -
ATTACK_SPEED
Attack speed of an Entity. -
ARMOR
Armor bonus of an Entity. -
ARMOR_TOUGHNESS
Armor durability bonus of an Entity. -
FALL_DAMAGE_MULTIPLIER
The fall damage multiplier of an Entity. -
LUCK
Luck bonus of an Entity. -
MAX_ABSORPTION
Maximum absorption of an Entity. -
SAFE_FALL_DISTANCE
The distance which an Entity can fall without damage. -
SCALE
The relative scale of an Entity. -
STEP_HEIGHT
The height which an Entity can walk over. -
GRAVITY
The gravity applied to an Entity. -
JUMP_STRENGTH
Strength with which an Entity will jump. -
BURNING_TIME
How long an entity remains burning after ignition. -
CAMERA_DISTANCE
The distance at which the camera is placed away. -
EXPLOSION_KNOCKBACK_RESISTANCE
Resistance to knockback from explosions. -
MOVEMENT_EFFICIENCY
Movement speed through difficult terrain. -
OXYGEN_BONUS
Oxygen use underwater. -
WATER_MOVEMENT_EFFICIENCY
Movement speed through water. -
TEMPT_RANGE
Range at which mobs will be tempted by items. -
BLOCK_INTERACTION_RANGE
The block reach distance of a Player. -
ENTITY_INTERACTION_RANGE
The entity reach distance of a Player. -
BLOCK_BREAK_SPEED
Block break speed of a Player. -
MINING_EFFICIENCY
Mining speed for correct tools. -
SNEAKING_SPEED
Sneaking speed. -
SUBMERGED_MINING_SPEED
Underwater mining speed. -
SWEEPING_DAMAGE_RATIO
Sweeping damage. -
SPAWN_REINFORCEMENTS
Chance of a zombie to spawn reinforcements. -
WAYPOINT_TRANSMIT_RANGE
Waypoint transmission range. -
WAYPOINT_RECEIVE_RANGE
Waypoing receive range.
-
-
Method Details
-
getKey
Deprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Return the namespaced identifier for this object. -
valueOf
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
name- of the attribute.- Returns:
- the attribute with the given name.
-
values
Deprecated.useIterable.iterator().- Returns:
- an array of all known attributes.
-
RegistryAware.getKeyOrThrow()instead.