GameTestConfig

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?)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getKey(): NamespacedKey
Link copied to clipboard
open override fun key(): @NotNull Key
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.

Link copied to clipboard
fun register()