Jump to content

Accessing MethodProvider in all classes.

Recommended Posts

Two methods.

Method 1:

public class ClassB extends MethodProvider {

private final ClassB b = new ClassB();

public void onStart(){


Method 2:

public class ClassA extends Script {

    private final ClassB b = new ClassB(this);
public class ClassB {

    private final ClassA script;

    public ClassB(ClassA script) {
        this.script = script;
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...