Update entity attributes.

This commit is contained in:
Steven Smith 2015-08-23 12:19:23 -07:00
parent 83b83bdc3e
commit baca667a30
2 changed files with 5 additions and 3 deletions

View file

@ -77,6 +77,7 @@ public class MagicValues {
register(AttributeType.KNOCKBACK_RESISTANCE, "generic.knockbackResistance");
register(AttributeType.MOVEMENT_SPEED, "generic.movementSpeed");
register(AttributeType.ATTACK_DAMAGE, "generic.attackDamage");
register(AttributeType.ATTACK_SPEED, "generic.attackSpeed");
register(AttributeType.HORSE_JUMP_STRENGTH, "horse.jumpStrength");
register(AttributeType.ZOMBIE_SPAWN_REINFORCEMENTS_CHANCE, "zombie.spawnReinforcements");

View file

@ -2,11 +2,12 @@ package org.spacehq.mc.protocol.data.game.values.entity;
public enum AttributeType {
MAX_HEALTH(20, 0, Double.MAX_VALUE),
MAX_HEALTH(20, 0, 1024),
FOLLOW_RANGE(32, 0, 2048),
KNOCKBACK_RESISTANCE(0, 0, 1),
MOVEMENT_SPEED(0.699999988079071, 0, Double.MAX_VALUE),
ATTACK_DAMAGE(2, 0, Double.MAX_VALUE),
MOVEMENT_SPEED(0.699999988079071, 0, 1024),
ATTACK_DAMAGE(2, 0, 2048),
ATTACK_SPEED(4, 0, 1024),
HORSE_JUMP_STRENGTH(0.7, 0, 2),
ZOMBIE_SPAWN_REINFORCEMENTS_CHANCE(0, 0, 1);