Class CreateTestFunction
java.lang.Object
com.simibubi.create.infrastructure.gametest.CreateTestFunction
An extension to game tests implementing functionality for
CreateGameTestHelper and GameTestGroup.
To use, create a GameTestGenerator that provides tests using getTestsFrom(Class[]).-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringstatic final Map<String, CreateTestFunction> final Stringfinal net.minecraft.gametest.framework.TestFunction -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreateTestFunction(String fullName, String simpleName, String pBatchName, String pStructureName, net.minecraft.world.level.block.Rotation pRotation, int pMaxTicks, long pSetupTicks, boolean pRequired, int pMaxAttempts, int pRequiredSuccesses, Consumer<net.minecraft.gametest.framework.GameTestHelper> pFunction) -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<net.minecraft.gametest.framework.TestFunction> getTestsFrom(Class<?>... classes) Get all Create test functions from the given classes.static @Nullable net.minecraft.gametest.framework.TestFunctionstatic Consumer<net.minecraft.gametest.framework.GameTestHelper>
-
Field Details
-
NAMES_TO_FUNCTIONS
-
fullName
-
simpleName
-
testFunction
public final net.minecraft.gametest.framework.TestFunction testFunction
-
-
Constructor Details
-
CreateTestFunction
protected CreateTestFunction(String fullName, String simpleName, String pBatchName, String pStructureName, net.minecraft.world.level.block.Rotation pRotation, int pMaxTicks, long pSetupTicks, boolean pRequired, int pMaxAttempts, int pRequiredSuccesses, Consumer<net.minecraft.gametest.framework.GameTestHelper> pFunction)
-
-
Method Details
-
getTestsFrom
public static Collection<net.minecraft.gametest.framework.TestFunction> getTestsFrom(Class<?>... classes) Get all Create test functions from the given classes. This enables functionality ofCreateGameTestHelperandGameTestGroup. -
of
-
run
-