Class GameTestConfig.Builder
-
public final class GameTestConfig.Builder
-
-
Constructor Summary
Constructors Constructor Description GameTestConfig.Builder(NamespacedKey key)
-
Method Summary
Modifier and Type Method Description final NamespacedKeygetKey()final GameTestConfig.Buildersize(Integer size)Size is the buffer around the central block. final GameTestConfig.BuildersetUp(Consumer<GameTest> setUp)Run before the test starts final GameTestConfig.BuilderdelayTicks(Integer delayTicks)Delay in ticks before the test starts. final GameTestConfig.BuildertimeoutTicks(Integer timeoutTicks)Timeout in ticks before the test fails. final GameTestConfig.BuilderpositionOverride(BlockPosition position)Override the position where the test will be launched. final GameTestConfigbuild()-
-
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()
-
-
-
-