package com.github.steveice10.mc.protocol.data.game.entity.attribute;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AttributeType {
    GENERIC_MAX_HEALTH(20, 0, 1024),
    GENERIC_FOLLOW_RANGE(32, 0, 2048),
    GENERIC_KNOCKBACK_RESISTANCE(0, 0, 1),
    GENERIC_MOVEMENT_SPEED(0.699999988079071, 0, 1024),
    GENERIC_ATTACK_DAMAGE(2, 0, 2048),
    GENERIC_ATTACK_SPEED(4, 0, 1024),
    GENERIC_ARMOR(0, 0, 30),
    GENERIC_ARMOR_TOUGHNESS(0, 0, 20),
    GENERIC_LUCK(0, -1024, 1024),
    GENERIC_FLYING_SPEED(0.4000000059604645, 0, 1024),
    HORSE_JUMP_STRENGTH(0.7, 0, 2),
    ZOMBIE_SPAWN_REINFORCEMENTS(0, 0, 1),
    // Forge - retrieved from Forge source code
    SWIM_SPEED(1, 0, 1024),
    NAMETAG_DISTANCE(64, 0, Float.MAX_VALUE),
    ENTITY_GRAVITY(0.08, -8.0, 8.0);

    private final double def;
    private final double min;
    private final double max;
}

package com.github.steveice10.mc.protocol.data.game.entity.attribute;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AttributeType {
    GENERIC_MAX_HEALTH(20, 0, 1024),
    GENERIC_FOLLOW_RANGE(32, 0, 2048),
    GENERIC_KNOCKBACK_RESISTANCE(0, 0, 1),
    GENERIC_MOVEMENT_SPEED(0.699999988079071, 0, 1024),
    GENERIC_ATTACK_DAMAGE(2, 0, 2048),
    GENERIC_ATTACK_SPEED(4, 0, 1024),
    GENERIC_ARMOR(0, 0, 30),
    GENERIC_ARMOR_TOUGHNESS(0, 0, 20),
    GENERIC_LUCK(0, -1024, 1024),
    GENERIC_FLYING_SPEED(0.4000000059604645, 0, 1024),
    HORSE_JUMP_STRENGTH(0.7, 0, 2),
    ZOMBIE_SPAWN_REINFORCEMENTS(0, 0, 1),
    /**
     * Required for logging into a Minecraft Forge server
     * Source: MinecraftForge/patches/minecraft/net/minecraft/entity/LivingEntity.java.patch#10
     */
    SWIM_SPEED(1, 0, 1024),
    /**
     * Required for logging into a Minecraft Forge server
     * Source: MinecraftForge/patches/minecraft/net/minecraft/entity/LivingEntity.java.patch#11
     */
    NAMETAG_DISTANCE(64, 0, Float.MAX_VALUE),
    /**
     * Required for logging into a Minecraft Forge server
     * Source: MinecraftForge/patches/minecraft/net/minecraft/entity/LivingEntity.java.patch#12
     */
    ENTITY_GRAVITY(0.08, -8.0, 8.0);

    private final double def;
    private final double min;
    private final double max;
}

Switch to Javadoc comments