Class AsyncCatcher

java.lang.Object
be.seeseemelk.mockbukkit.AsyncCatcher

public class AsyncCatcher extends Object
A class used to prevent synchronous-only methods from being run asynchronously.
  • Method Details

    • catchOp

      public static void catchOp(String reason)
      Throws an IllegalStateException if not called from the primary thread.
      Parameters:
      reason - The reason for the exception.