MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

Inspection for the deprecation of enums in Spigot (+ forks)

Open electronicboy opened this issue 2 years ago • 0 comments

Minecraft Development for IntelliJ plugin version

2023.2-1.6.5-391

Description of the feature request

general gist: Mojang is moving to drive more things using data, and spigot is finally happy to move this stuff forward inside of the API;

https://www.spigotmc.org/threads/looking-for-testers-feedback-on-spigot-pull-request-converting-enums-to-classes.604316/

This creates a fun problem where EnumSets created using many different enums inside of plugins will now be broken; an inspection to warn devs about the creation of such Sets, as well as allow for people to scan over their codebase using IJs inspections to detect this would, as a brit, be bloody amazing

not sure of the best way to find what exactly to warn about, I guess somebody would probably have to create a list of enums which are going to be replaced

electronicboy avatar Jun 09 '23 17:06 electronicboy