int nWeight = (int)getWeight(); if (nWeight <= WEIGHT_LIGHT) { return WEIGHT_LIGHT; } else if (nWeight <= WEIGHT_MEDIUM) { return WEIGHT_MEDIUM; } else if (nWeight <= WEIGHT_HEAVY) { return WEIGHT_HEAVY; } else { return WEIGHT_ASSAULT; }
return EntityWeightClass.getWeightClass((int)getWeight());
    public int getWeightClass() {        int nWeight = (int)getWeight();         if (nWeight <= WEIGHT_LIGHT) {            return WEIGHT_LIGHT;         } else if (nWeight <= WEIGHT_MEDIUM) {             return WEIGHT_MEDIUM;         } else if (nWeight <= WEIGHT_HEAVY) {             return WEIGHT_HEAVY;         } else {             return WEIGHT_ASSAULT;         }    }