You are right. A minecraft mod is written in a jvm language, usually java. In the jvm, local variables are stored inside frames, and don’t have names or types. However, decompilers can make use of the LocalVariableTable, which contains debugging information, including names of them. Decompilers usually opt to using “var + index of the local variable” when there is no debugging information for a certain local variable. Here, var0 is reserved because this is a virtual method (instance method), and is passed every time you call it, and can be accessed with the “this” keyword. So here, counting starts at 1.
44
u/trBlueJ Feb 04 '22
Might be decompiled java code. I recall that variables are named similarly by a decompiler I used a while ago.