Class GameTestTest

java.lang.Object
net.minecraftforge.debug.misc.GameTestTest

public class GameTestTest extends Object
  • Field Details

  • Constructor Details

    • GameTestTest

      public GameTestTest()
  • Method Details

    • onRegisterGameTests

      public void onRegisterGameTests(RegisterGameTestsEvent event)
    • testWood

      public static void testWood(GameTestHelper helper)
      An example game test

      • Must take one parameter, the GameTestHelper
      • The return type is ignored, so it should be void
      • Can be static or non-static

        WARNING: If made non-static, then it will create an instance of the class every time it is run.

      The default template name converts the containing class's name to all lowercase, and the method name to all lowercase. In this example, the structure name would be "gametesttest.testwood" under the "gametest_test" namespace.
    • generateTests

      public static List<TestFunction> generateTests()
      An example game test generator.

      A game test generator generates a collection of test functions. It is called immediately when registered to GameTestRegistry.

      • Must return Collection<TestFunction> (or a subclass)
      • Must take no parameters
      • Can be static or non-static
      • WARNING: If made non-static, then it will create an instance of the class every time it is run.

    • testHopperPickup

      public static void testHopperPickup(GameTestHelper helper)
    • testEnergyStorage

      public static void testEnergyStorage(GameTestHelper helper)