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
Technically, to generate bytecode, instead of just using getstatic to replace ldc, you might need a bit more instructions, like aload_0 and then getfield (might need to expand maxs as a result), and check to ensure the method is non-static.
The text was updated successfully, but these errors were encountered:
Yes, in Java, constant values can be non-static, and they exist in Minecraft (and are optimized by javac). Examples:
SpawnGroup.despawnStartRange
ServerLoginNetworkHandler.serverId
Technically, to generate bytecode, instead of just using
getstatic
to replaceldc
, you might need a bit more instructions, likeaload_0
and thengetfield
(might need to expand maxs as a result), and check to ensure the method is non-static.The text was updated successfully, but these errors were encountered: