Interface FabricGameTest


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

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

    Modifier and Type
    Method
    Description
    default void
    invokeTestMethod(net.minecraft.test.TestContext context, Method method)
    Override this method to implement custom logic to invoke the test method.
  • Field Details

    • EMPTY_STRUCTURE

      static final String EMPTY_STRUCTURE
      Use in GameTest structureName to use an empty 8x8 structure for the test.
      See Also:
  • Method Details

    • invokeTestMethod

      default void invokeTestMethod(net.minecraft.test.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