Interface FabricGameTest


public interface FabricGameTest
This interface can be optionally implemented on your test class.
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Use in GameTest structureName to use an empty 8x8 structure for the test.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    default void
    Override this method to implement custom logic to invoke the test method.
  • Field Details Link icon

  • Method Details Link icon

    • invokeTestMethod Link icon

      default void invokeTestMethod(TestContext context, Method method)
      Override this method to implement custom logic to invoke the test method. This can be used to run code before or after each test. You can also pass in custom objects into the test method if desired. The structure will have been placed in the world before this method is invoked.
      Parameters:
      context - The vanilla test context
      method - The test method to invoke