You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently had a method I was trying to modify. It sat inside a method-local class which was inside a regular class constructor. For further information, I'll include the class flow below.
public final class RandomState {
private RandomState(...) {
class NoiseWiringHelper implements DensityFunction.Visitor {
@Override
public DensityFunction.NoiseHolder visitNoise(DensityFunction.NoiseHolder noiseHolder) {} <<< Target method
}
}
}
When I attempted to mixin the method-local class, MCDev did recognize the method-local class NoiseWiringHelper as RandomState$1NoiseWiringHelper. However, when I went to write a inject, none of the suggestions/autofill ever appeared, meaning it wouldn't give me visitNoise as an option.
I believe this is a limitation of MCDev. While it can suggest methods in regular and nested classes, it is unable to do so in method-local classes.
The text was updated successfully, but these errors were encountered:
Minecraft Development for IntelliJ plugin version
2024.2-1.8.2
IntelliJ version
2024.2.3
Operating System
Windows
Target platform
Fabric
Description of the bug
I recently had a method I was trying to modify. It sat inside a method-local class which was inside a regular class constructor. For further information, I'll include the class flow below.
When I attempted to mixin the method-local class, MCDev did recognize the method-local class
NoiseWiringHelper
asRandomState$1NoiseWiringHelper
. However, when I went to write a inject, none of the suggestions/autofill ever appeared, meaning it wouldn't give mevisitNoise
as an option.I believe this is a limitation of MCDev. While it can suggest methods in regular and nested classes, it is unable to do so in method-local classes.
The text was updated successfully, but these errors were encountered: