Code example for Callable

Methods: call

0
	public void runOnMainThreadLater(DaemonManager dm, Runnable r) {
		r.run();
	} 
 
	public <T> T runOnMainThreadAndWait(Callable<T> callable) throws Exception{
		return (T) callable.call();
	}				 
 
	public MCWorldCreator getWorldCreator(String worldName) {
		throw new UnsupportedOperationException("Not supported.");
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java