Class GameTestConfig.Builder
-
- All Implemented Interfaces:
public final class GameTestConfig.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private final NamespacedKey
key
-
Constructor Summary
Constructors Constructor Description GameTestConfig.Builder(NamespacedKey key)
-
Method Summary
Modifier and Type Method Description final NamespacedKey
getKey()
final GameTestConfig.Builder
size(Integer size)
Size is the buffer around the central block. final GameTestConfig.Builder
setUp(Consumer<GameTest> setUp)
Run before the test starts final GameTestConfig.Builder
delayTicks(Integer delayTicks)
Delay in ticks before the test starts. final GameTestConfig.Builder
timeoutTicks(Integer timeoutTicks)
Timeout in ticks before the test fails. final GameTestConfig.Builder
positionOverride(BlockPosition position)
Override the position where the test will be launched. final GameTestConfig
build()
-
-
Constructor Detail
-
GameTestConfig.Builder
GameTestConfig.Builder(NamespacedKey key)
-
-
Method Detail
-
getKey
final NamespacedKey getKey()
-
size
final GameTestConfig.Builder size(Integer size)
Size is the buffer around the central block. A size of 0 means the test will only run on the central block, a size of 1 means the test will run on a 3x3x3 area centered on the central block, etc.
-
setUp
final GameTestConfig.Builder setUp(Consumer<GameTest> setUp)
Run before the test starts
-
delayTicks
final GameTestConfig.Builder delayTicks(Integer delayTicks)
Delay in ticks before the test starts. Defaults to 0.
-
timeoutTicks
final GameTestConfig.Builder timeoutTicks(Integer timeoutTicks)
Timeout in ticks before the test fails. Defaults to 5 minutes.
-
positionOverride
final GameTestConfig.Builder positionOverride(BlockPosition position)
Override the position where the test will be launched.
-
build
final GameTestConfig build()
-
-
-
-