WrongThreadException
Namespace Mc.Scripting · Kind class (sealed)
public sealed class WrongThreadException : InvalidOperationExceptionA game-facing API was called from a thread other than the server tick thread.
Remarks
Section titled “Remarks”Use Scheduler.RunSync to hop to the tick thread.
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
WrongThreadException(string api) |
Creates the exception for the named API. |
Constructor
Section titled “Constructor”public WrongThreadException(string api)Creates the exception for the named API.
Parameters
| Name | Type | Description |
|---|---|---|
api |
string |
What was called. |