Game Test Config
class GameTestConfig(key: NamespacedKey, val size: Int, val setUp: Consumer<GameTest>, val delayTicks: Int, val timeoutTicks: Int, val positionOverride: BlockPosition?) : Keyed(source)
Represents the configuration for a GameTest. Prefer using the Builder to create instances of this class.
See also
Constructors
Link copied to clipboard
constructor(key: NamespacedKey, size: Int, setUp: Consumer<GameTest>, delayTicks: Int, timeoutTicks: Int, positionOverride: BlockPosition?)
Functions
Link copied to clipboard
Link copied to clipboard
Launches the game test at the given position. If positionOverride is set, it will be used instead of the given position. Returns a future that completes with a GameTestFailException if the test fails, or null if it succeeds.