Class GameTestRegistry

java.lang.Object
net.ixdarklord.coolcatcore.internal.gametest.GameTestRegistry

public final class GameTestRegistry extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    add(net.minecraft.resources.Identifier id, GameTestOptions options, Consumer<net.minecraft.gametest.framework.GameTestHelper> function)
     
    static List<net.minecraft.resources.Identifier>
    addClass(String modId, Class<?> holder)
     
    static void
    addInstances(net.minecraft.core.WritableRegistry<net.minecraft.gametest.framework.GameTestInstance> registry)
    Adds a test instance for each test to a server's test instance registry, before it's frozen.
    static void
    environments(net.minecraft.core.Registry<net.minecraft.gametest.framework.TestEnvironmentDefinition<?>> registry)
    A server's test environments, just loaded.
    static List<net.minecraft.resources.Identifier>
    ids()
     
    static boolean
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • add

      public static void add(net.minecraft.resources.Identifier id, GameTestOptions options, Consumer<net.minecraft.gametest.framework.GameTestHelper> function)
    • addClass

      public static List<net.minecraft.resources.Identifier> addClass(String modId, Class<?> holder)
    • isEnabled

      public static boolean isEnabled()
    • ids

      public static List<net.minecraft.resources.Identifier> ids()
    • environments

      public static void environments(net.minecraft.core.Registry<net.minecraft.gametest.framework.TestEnvironmentDefinition<?>> registry)
      A server's test environments, just loaded.
    • addInstances

      public static void addInstances(net.minecraft.core.WritableRegistry<net.minecraft.gametest.framework.GameTestInstance> registry)
      Adds a test instance for each test to a server's test instance registry, before it's frozen.