I previously thought that class loading only occurs when a class is referenced anywhere as long as the class it is referenced is loaded.
However, I came across this post today:
and if I understood correctly, casting would trigger class loading.
However, I am slightly confused by this:
Even if OP changed the type of player to ClientPlayerEntity, wouldn't that still cause the loading of the class?
Similarly, the OP in the linked post called Minecraft::getMinecraft in hi