what is the code to make a world get a method form an actor
  
  
            actorsName.methodsName();
import java.util.List;
public class MyWorld extends World {
    
    Object obj;
    
    public void act() {// or any other method;
        List<object> o = getObjects(object.class); // object is the type of the object you want to have the reference to.
        if (o.size() != 0) {
            obj = o.get(0);//gives the reference to the first object in world that is found.
            obj.method(); //the method you want to execute.
        }
    }
}if (!getObjects(Wombat.class).isEmpty()) ((Wombat) getObjects(Wombat.class).get(0)).method();
// world instance variable Wombat wombat = null; // in the constructor (or a method it calls) wombat = new Wombat(); addObject(wombat, xxx, yyy); // then, to call the method later wombat.method();
if (wombat.getWorld() != null)