package net.minecraft.gametest.framework; import java.util.List; import net.minecraft.core.registries.Registries; import net.minecraft.data.worldgen.BootstrapContext; import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; public interface GameTestEnvironments { String DEFAULT = "default"; ResourceKey DEFAULT_KEY = create("default"); private static ResourceKey create(String name) { return ResourceKey.create(Registries.TEST_ENVIRONMENT, ResourceLocation.withDefaultNamespace(name)); } static void bootstrap(BootstrapContext context) { context.register(DEFAULT_KEY, new TestEnvironmentDefinition.AllOf(List.of())); } }