⁠
joe: Include much more detail in inspection descriptions
- <!--
- Minecraft Development for IntelliJ
-
- https://mcdev.io/
-
- Copyright (C) 2026 minecraft-dev
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation, version 3.0 only.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- -->
-
- <html>
- <body>
- Reports missing abstract shadows in enum mixins
- </body>
- </html>
- <!--
- Minecraft Development for IntelliJ
-
- https://mcdev.io/
-
- Copyright (C) 2026 minecraft-dev
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation, version 3.0 only.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- -->
-
- <html>
- <body>
- <p>
- Reports missing abstract shadows in enum mixins
- </p>
- <!-- tooltip end -->
- <p>
- If the target enum has abstract methods, every enum constant must implement them. Declaring them as abstract
- <code>@Shadow</code> methods in the mixin makes the compiler check that the constants added by the mixin implement them.
- Otherwise, the missing implementations cause errors at runtime. In obfuscated environments, the override will not be
- remapped if the shadow isn't present.
- </p>
- <pre><code>
- enum Shape {
- CIRCLE { @Override double area(double r) { ... } };
- abstract double area(double r);
- }
-
- @Mixin(Shape.class)
- enum ShapeMixin {
- MYMOD_SQUARE { @Override double area(double r) { ... } };
-
- @Shadow
- abstract double area(double r);
- }
- </code></pre>
- </body>
- </html>