Annotation Interface GameTest
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA namespaced ID of an entry within theRegistries.TEST_ENVIRONMENTregistry.booleanWhen set the test must be run manually.intThe number of times the test should be re attempted if it fails.intThe maximum number of ticks the test is allowed to run for.intThe number of empty block layers to place around the structure as padding.booleanWhether the test is required to pass for the test suite to pass.intThe number of times the test should be successfully ran before it is considered a success.net.minecraft.world.level.block.RotationThe rotation of the structure when placed.intThe number of ticks to wait before starting the test after placing the structure.booleanWhether the test should have sky access.A namespaced ID pointing to a structure resource in themodid/gametest/structure/directory.
-
Element Details
-
environment
String environmentA namespaced ID of an entry within theRegistries.TEST_ENVIRONMENTregistry.- Default:
"minecraft:default"
-
structure
String structureA namespaced ID pointing to a structure resource in themodid/gametest/structure/directory.Defaults to an 8x8 structure with no blocks.
- Default:
"fabric-gametest-api-v1:empty"
-
maxTicks
int maxTicksThe maximum number of ticks the test is allowed to run for.- Default:
20
-
setupTicks
int setupTicksThe number of ticks to wait before starting the test after placing the structure.- Default:
0
-
required
boolean requiredWhether the test is required to pass for the test suite to pass.- Default:
true
-
rotation
net.minecraft.world.level.block.Rotation rotationThe rotation of the structure when placed.- Default:
NONE
-
manualOnly
boolean manualOnlyWhen set the test must be run manually.- Default:
false
-
maxAttempts
int maxAttemptsThe number of times the test should be re attempted if it fails.- Default:
1
-
requiredSuccesses
int requiredSuccessesThe number of times the test should be successfully ran before it is considered a success.- Default:
1
-
skyAccess
boolean skyAccessWhether the test should have sky access. Whenfalsethe test will be enclosed by barrier blocks.- Default:
false
-
padding
int paddingThe number of empty block layers to place around the structure as padding.- Default:
1
-