Question Why does the name of the arguments in the method not match when inheriting the CommandExecutor interface?

DiceMa

New member
Jul 27, 2023
4
0
1
Good afternoon, now I'm teaching how to make plugins on Paper for minecraft. I ran into this problem(?): when inheriting the CommandExecutor interface, I automatically create a method using Shift+Alt+Enter, but the name of the arguments is different in my video tutorial.
The development version of JDK 17, as recommended by IDEA itself. Plugins for IDEA are installed.

Fig.1 - my option.
Fig.2 Option from the lesson

NewCanvas1.png

как_надо.png
 

electronicboy

Administrator
Staff member
Dec 11, 2021
231
11
40
28
Because unless you pull the sources/javadocs jar, the param name information does not exist; hence when your IDE generates the method, the only thing it has to derive params from is the types in the param
 

DiceMa

New member
Jul 27, 2023
4
0
1
Because unless you pull the sources/javadocs jar, the param name information does not exist; hence when your IDE generates the method, the only thing it has to derive params from is the types in the param

Thank you for the answer. Is it possible to do this when creating a project? Or how is it added at all?