This commit is contained in:
Frank 2023-04-16 13:17:24 +02:00
parent 2c3af98e9e
commit c4af9dfa0a
3 changed files with 6 additions and 8 deletions

View file

@ -14,7 +14,7 @@ import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint;
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator;
public class BCLibDatagen implements DataGeneratorEntrypoint {
public static final boolean ADD_TESTS = false;
public static final boolean ADD_TESTS = true;
@Override
public void onInitializeDataGenerator(FabricDataGenerator dataGenerator) {
@ -22,6 +22,8 @@ public class BCLibDatagen implements DataGeneratorEntrypoint {
final FabricDataGenerator.Pack pack = dataGenerator.createPack();
if (ADD_TESTS) {
TestBiomes.ensureStaticallyLoaded();
pack.addProvider(TestWorldgenProvider::new);
pack.addProvider(TestBiomes::new);
RecipeDataProvider.createTestRecipes();

View file

@ -117,4 +117,7 @@ public class TestBiomes extends TagDataProvider<Biome> {
THE_PURPLE = THE_PURPLE.register(bootstrapContext);
}
}
public static void ensureStaticallyLoaded() {
}
}

View file

@ -1,7 +0,0 @@
package org.betterx.worlds.together.biomesource;
import org.jetbrains.annotations.ApiStatus;
@ApiStatus.Internal
public interface MultiNoiseBiomeSourceAccessor {
}