    001    package net.minecraft.src;
    002
    003    public class EntityAITargetNonTamed extends EntityAINearestAttackableTarget
    004    {
    005        private EntityTameable theTameable;
    006
    007        public EntityAITargetNonTamed(EntityTameable par1EntityTameable, Class par2Class, float par3, int par4, boolean par5)
    008        {
    009            super(par1EntityTameable, par2Class, par3, par4, par5);
    010            this.theTameable = par1EntityTameable;
    011        }
    012
    013        /**
    014         * Returns whether the EntityAIBase should begin execution.
    015         */
    016        public boolean shouldExecute()
    017        {
    018            return this.theTameable.isTamed() ? false : super.shouldExecute();
    019        }
    020    }