It's been a while since I last did minecraft modding (namely during 1.12.X) and I am now looking into porting my mod to the versions which have since been released.
Unfortunately I have a bit of a problem with porting my GuiScreen classes. Previously I used to set the buttons function via actionPerformed but this function has since been removed. How is this done now? I tried looking at vanilla classes and other mods but I am still not sure how it works now.
Another one is the apparent deprecation of the GuiLabel. I can no longer properly create labels as there is no way to adjust a labels width and height value. Is there a new way or creating these or something which serves the same (or a better) purpose?
It would be incredibly helpful to know these things. Neither the porting primer, nor the documentation really helped here.
Thanks in advance.