Repaired BCLibDatagen

This commit is contained in:
Frank 2023-05-17 15:30:06 +02:00
parent 9b84ba6b29
commit 3e5a4b0f0c

View file

@ -15,24 +15,24 @@ 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) {
BCLib.LOGGER.info("Bootstrap onInitializeDataGenerator");
final FabricDataGenerator.Pack pack = dataGenerator.createPack();
NullscapeBiomes.ensureStaticallyLoaded();
if (ADD_TESTS) {
TestBiomes.ensureStaticallyLoaded();
pack.addProvider(TestWorldgenProvider::new);
pack.addProvider(TestBiomes::new);
RecipeDataProvider.createTestRecipes();
} else {
pack.addProvider(NullscapeBiomes::new);
}
NullscapeBiomes.ensureStaticallyLoaded();
pack.addProvider(NullscapeBiomes::new);
pack.addProvider(RecipeDataProvider::new);
pack.addProvider(WorldPresetDataProvider::new);
pack.addProvider(BCLibRegistriesDataProvider::new);