Package be.seeseemelk.mockbukkit
Class AsyncCatcher
java.lang.Object
be.seeseemelk.mockbukkit.AsyncCatcher
A class used to prevent synchronous-only methods from being run asynchronously.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Throws anIllegalStateException
if not called from the primary thread.
-
Method Details
-
catchOp
Throws anIllegalStateException
if not called from the primary thread.- Parameters:
reason
- The reason for the exception.
-