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