Recently, I have been coding the Bukkit API, but my question is not directly related to it.
There can be one instance of the main class in the Bukkit API (it new MainClass()throws an error), so I was wondering if I should pass the main class to all my classes using the constructor, OR should I use a static method that returns the instance ( MainClass.getInstance())
I am curious which one is better (in terms of performance and practice).
source
share