Создание проффесии для жителя

Версия Minecraft
1.12.2
API
Forge
Здравствуйте! Подскажите пожалуйста как создать профессию для жителя, вот мой код:
Java:
package com.valera.gb.Entiti;

import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.ai.*;
import net.minecraft.entity.monster.*;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.world.World;

public class GingerBreadMen extends EntityVillager {
    public GingerBreadMen(World worldIn) {
        super(worldIn);
    }

    public GingerBreadMen(World worldIn, int professionId) {
        super(worldIn, professionId);
    }

    public void initEntityAI() {
        super.initEntityAI();

        this.tasks.addTask(1, new GingerBreadMen.atakentity(this));
    }
    static class atakentity extends EntityAIAttackMelee{
        public atakentity(GingerBreadMen gingerBreadMen) {
            super(gingerBreadMen, 1.0D, true);
        }
        @Override
        public boolean shouldExecute() {
            EntityLivingBase target = this.attacker.getAttackTarget();
            return target != null && target instanceof EntityMob && target != this.attacker && super.shouldExecute();
        }
        @Override
        public void startExecuting() {
            super.startExecuting();
        }

        @Override
        public void resetTask() {
            super.resetTask();
        }
        protected double getAttackReachSqr(EntityLivingBase attackTarget)
        {
            return (double)(4.0F + attackTarget.width);
        }
    }
    @Override
    public void onLivingUpdate() {
        super.onLivingUpdate();

        if (this.isEntityAlive()) {
            if (this.getAttackTarget() instanceof EntityMob) {
                this.getNavigator().clearPath();
            }
        }
    }
}
 
Сверху