Extending structure field in plugin

Hi! As stated in the title, I would like to create a custom plugin field by extending a structure. I don’t want to change the structure field interface at all, I just want to add some methods to perform calculations with the data inside the structure. Can someone help me?
Thanks in advance!