Class Attribute

java.lang.Object
fr.fidorial.attribute.Attribute

public class Attribute extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Key
    This attribute determines the air drag an entity experiences.
    static final Key
    This attribute determines the number of armor points an entity has.
    static final Key
    This attribute determines an entity's armor toughness.
    static final Key
    This attribute determines the damage dealt by an entity's melee attack.
    static final Key
    This attribute determines additional knockback applied to an entity's melee attack
    static final Key
    This attribute determines the rate at which a player's attack cooldown recharges.
    static final Key
    This attribute determines the distance within which a scoreboard objective with a below_name display slot is visible above an entity.
    static final Key
    This attribute multiplies the speed at which a player breaks blocks.
    static final Key
    This attribute determines the block interaction range for players.
    static final Key
    This attribute determines the restitution of motion an entity is given when landing on the ground.
    static final Key
    This attribute multiplies the duration for which an entity should remain on fire after being ignited.
    static final Key
    This attribute determines the maximum distance at which the camera is placed away from the player or spectated entity when in a third-person view.
    static final Key
    This attribute determines the entity interaction range for players.
    static final Key
    This attribute determines the proportion of knockback from explosions an entity resists.
    static final Key
    This attribute multiplies the amount of fall damage an entity receives.
    static final Key
    This attribute determines the flying speed of an entity.
    static final Key
    This attribute determines the range in blocks within which a mob targets players or other mobs to track.
    static final Key
    This attribute determines the friction experienced by an entity.
    static final Key
    This attribute determines the gravity affecting an entity in blocks per tick squared.
    static final Key
    This attribute determines the initial vertical velocity of an entity when they jump, in blocks per tick.
    static final Key
    This attribute determines the proportion of horizontal knockback from attacks and projectiles an entity resists.
    static final Key
    This attribute affects the results of loot tables, with a higher attribute value increasing the amount and quality of results.
    static final Key
    This attribute determines an entity's maximum absorption.
    static final Key
    This attribute determines an entity's maximum health.
    static final Key
    This attribute increases the speed at which a player breaks blocks.
    static final Key
    This attribute is a factor to improve walking on terrain that slows down movement, such as soul sand.
    static final Key
    This attribute determines the speed at which an entity moves.
    static final Key
    This attribute determines the distance within which an entity's custom name is visible.
    static final Key
    This attribute determines the chance that an entity's remaining air decreases while underwater in any given game tick.
    static final Key
    This attribute determines the distance in blocks an entity can fall before fall damage starts to accumulate.
    static final Key
    This attribute multiplies an entity's size and hitbox dimensions.
    static final Key
    This attribute multiplies a player's movement speed when sneaking or crawling.
    static final Key
    This attribute determines the chance for a zombie to spawn another zombie when attacked.
    static final Key
    This attribute determines the maximum number of blocks that an entity can step up without jumping.
    static final Key
    This attribute multiplies a player's mining speed when underwater.
    static final Key
    This attribute determines the proportion of the base attack damage dealt to secondary targets when a player performs a sweep attack.
    static final Key
    This attribute determines the range in blocks in which a mob can be tempted, following a player holding a specific item.
    static final Key
    This attribute determines movement speed and drag when submerged.
    static final Key
    This attribute determines the maximum distance from a player to a waypoint at which the waypoint is displayed on the locator bar.
    static final Key
    This attribute determines the distance at which an entity displays as a waypoint on the locator bar.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • AIR_DRAG_MODIFIER

      public static final Key AIR_DRAG_MODIFIER
      This attribute determines the air drag an entity experiences.
    • ARMOR

      public static final Key ARMOR
      This attribute determines the number of armor points an entity has.
    • ARMOR_TOUGHNESS

      public static final Key ARMOR_TOUGHNESS
      This attribute determines an entity's armor toughness.
    • ATTACK_DAMAGE

      public static final Key ATTACK_DAMAGE
      This attribute determines the damage dealt by an entity's melee attack. Only the entities listed below have this attribute.
    • ATTACK_KNOCKBACK

      public static final Key ATTACK_KNOCKBACK
      This attribute determines additional knockback applied to an entity's melee attack
    • ATTACK_SPEED

      public static final Key ATTACK_SPEED
      This attribute determines the rate at which a player's attack cooldown recharges. Its value is the number of full-strength attacks per second. Only players have this attribute.
    • BELOW_NAME_DISTANCE

      public static final Key BELOW_NAME_DISTANCE
      This attribute determines the distance within which a scoreboard objective with a below_name display slot is visible above an entity.
    • BLOCK_BREAK_SPEED

      public static final Key BLOCK_BREAK_SPEED
      This attribute multiplies the speed at which a player breaks blocks. Only players have this attribute.
    • BLOCK_INTERACTION_RANGE

      public static final Key BLOCK_INTERACTION_RANGE
      This attribute determines the block interaction range for players. Only players have this attribute.
    • BOUNCINESS

      public static final Key BOUNCINESS
      This attribute determines the restitution of motion an entity is given when landing on the ground.
    • BURNING_TIME

      public static final Key BURNING_TIME
      This attribute multiplies the duration for which an entity should remain on fire after being ignited.
    • CAMERA_DISTANCE

      public static final Key CAMERA_DISTANCE
      This attribute determines the maximum distance at which the camera is placed away from the player or spectated entity when in a third-person view. This distance is multiplied by the scale attribute to get a final target camera distance. If the entity being ridden has a larger camera_distance attribute, that distance will be used. The final distance can be reduced by colliding certain blocks.
    • ENTITY_INTERACTION_RANGE

      public static final Key ENTITY_INTERACTION_RANGE
      This attribute determines the entity interaction range for players.
    • EXPLOSION_KNOCKBACK_RESISTANCE

      public static final Key EXPLOSION_KNOCKBACK_RESISTANCE
      This attribute determines the proportion of knockback from explosions an entity resists. A value of 1 eliminates the knockback.
    • FALL_DAMAGE_MULTIPLIER

      public static final Key FALL_DAMAGE_MULTIPLIER
      This attribute multiplies the amount of fall damage an entity receives.
    • FLYING_SPEED

      public static final Key FLYING_SPEED
      This attribute determines the flying speed of an entity. Only the entities listed below have this attribute.
    • FOLLOW_RANGE

      public static final Key FOLLOW_RANGE
      This attribute determines the range in blocks within which a mob targets players or other mobs to track. Exiting this range causes the mob to cease following the player/mob. Only mobs have this attribute.
    • FRICTION_MODIFIER

      public static final Key FRICTION_MODIFIER
      This attribute determines the friction experienced by an entity.
    • GRAVITY

      public static final Key GRAVITY
      This attribute determines the gravity affecting an entity in blocks per tick squared.
    • JUMP_STRENGTH

      public static final Key JUMP_STRENGTH
      This attribute determines the initial vertical velocity of an entity when they jump, in blocks per tick.
    • KNOCKBACK_RESISTANCE

      public static final Key KNOCKBACK_RESISTANCE
      This attribute determines the proportion of horizontal knockback from attacks and projectiles an entity resists. A value of 1 eliminates the knockback. Vertical knockback is not affected. It does not affect explosions.
    • LUCK

      public static final Key LUCK
      This attribute affects the results of loot tables, with a higher attribute value increasing the amount and quality of results. The number of rolls is increased by the pools "bonus rolls"-value times this attributes value, rounded down, and the weight of each entry is increased by its quality times this attributes value, also rounded down. Only players have this attribute.
    • MAX_ABSORPTION

      public static final Key MAX_ABSORPTION
      This attribute determines an entity's maximum absorption.
    • MAX_HEALTH

      public static final Key MAX_HEALTH
      This attribute determines an entity's maximum health. It determines the highest health they may be healed to.
    • MINING_EFFICIENCY

      public static final Key MINING_EFFICIENCY
      This attribute increases the speed at which a player breaks blocks. Only players have this attribute.
    • MOVEMENT_EFFICIENCY

      public static final Key MOVEMENT_EFFICIENCY
      This attribute is a factor to improve walking on terrain that slows down movement, such as soul sand. A value of 1 removes the slowdown.
    • MOVEMENT_SPEED

      public static final Key MOVEMENT_SPEED
      This attribute determines the speed at which an entity moves. It represents a multiplier for acceleration per tick. A mob's actual speed in blocks/second is approximately 43 times this value (see Entity#Formulas.)
    • NAME_TAG_DISTANCE

      public static final Key NAME_TAG_DISTANCE
      This attribute determines the distance within which an entity's custom name is visible.
    • OXYGEN_BONUS

      public static final Key OXYGEN_BONUS
      This attribute determines the chance that an entity's remaining air decreases while underwater in any given game tick. The chance is given by 1⁄(oxygen_bonus + 1).
    • SAFE_FALL_DISTANCE

      public static final Key SAFE_FALL_DISTANCE
      This attribute determines the distance in blocks an entity can fall before fall damage starts to accumulate.
    • SCALE

      public static final Key SCALE
      This attribute multiplies an entity's size and hitbox dimensions.
    • SNEAKING_SPEED

      public static final Key SNEAKING_SPEED
      This attribute multiplies a player's movement speed when sneaking or crawling. Only players have this attribute.
    • SPAWN_REINFORCEMENTS

      public static final Key SPAWN_REINFORCEMENTS
      This attribute determines the chance for a zombie to spawn another zombie when attacked. Only the entities listed below have this attribute.
    • STEP_HEIGHT

      public static final Key STEP_HEIGHT
      This attribute determines the maximum number of blocks that an entity can step up without jumping. Sneaking prevents drops from heights that are higher than this value.
    • SUBMERGED_MINING_SPEED

      public static final Key SUBMERGED_MINING_SPEED
      This attribute multiplies a player's mining speed when underwater. Only players have this attribute.
    • SWEEPING_DAMAGE_RATIO

      public static final Key SWEEPING_DAMAGE_RATIO
      This attribute determines the proportion of the base attack damage dealt to secondary targets when a player performs a sweep attack. This is in addition to the base damage of the sweep damage itself. Only players have this attribute.
    • TEMPT_RANGE

      public static final Key TEMPT_RANGE
      This attribute determines the range in blocks in which a mob can be tempted, following a player holding a specific item.
    • WATER_MOVEMENT_EFFICIENCY

      public static final Key WATER_MOVEMENT_EFFICIENCY
      This attribute determines movement speed and drag when submerged.
    • WAYPOINT_RECEIVE_RANGE

      public static final Key WAYPOINT_RECEIVE_RANGE
      This attribute determines the maximum distance from a player to a waypoint at which the waypoint is displayed on the locator bar. Only players have this attribute.
    • WAYPOINT_TRANSMIT_RANGE

      public static final Key WAYPOINT_TRANSMIT_RANGE
      This attribute determines the distance at which an entity displays as a waypoint on the locator bar.