Function: registerAsync()
registerAsync(
testClassName,testName,testFunction):RegistrationBuilder
World Mutation Early Execution Beta
Parameters
testClassName
string
Name of the class of tests this test should be a part of.
testName
string
Name of this specific test.
testFunction
(arg0) => Promise<void>
Implementation of the test function.
Returns
Returns a RegistrationBuilder object where additional options for this test can be specified via builder methods.
Remarks
注册一个为异步执行而设计的新 GameTest 函数。此 GameTest
将可以在 Minecraft 中通过
/gametest run [testClassName]:[testName] 使用。
Registers a new GameTest function that is designed for
asynchronous execution. This GameTest will become available
in Minecraft via /gametest run [testClassName]:[testName].
Example
simpleMobAsyncTest.ts
