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 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.
-