Nothing wrong with passing around the Methodprovider object.
You can also extend the second class from MethodProvider and then exchange bot context, that way you can use log("") in your other class.
public class SecondClass extends MethodProvider {
public void execute(){
log("Test");
FirstClass.status = "Test";
}
public static String status = "";
private SecondClass secondClass;
public void onStart() {
secondClass = new SecondClass();
secondClass.exchangeContext(getBot());
}
public int onLoop() {
secondClass.execute();
}
public void onPaint(Graphics2D g) {
g.drawString("Status: " + status ,10, 10);
}
Ofc mister know it all who can't write a "hello world" app in java using OOP
Your ego is like the complete opposite from your coding skills at this point, how can you be this cocky while YOU are asking for help in the first place?
Be gratefull anyone wants to help in the first place, but no... let's flame them right away. Good way to make friends