Skip to content

Commit

Permalink
Use data generation for advancements
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 committed Jun 9, 2024
1 parent fd630b9 commit bdb2a69
Show file tree
Hide file tree
Showing 50 changed files with 206 additions and 3,142 deletions.
3 changes: 3 additions & 0 deletions src/datagen/java/xyz/nucleoid/extras/data/NEDatagen.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint;
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator;
import xyz.nucleoid.extras.data.provider.NEAdvancementProvider;
import xyz.nucleoid.extras.data.provider.NEBlockTagProvider;
import xyz.nucleoid.extras.data.provider.NEItemTagProvider;

Expand All @@ -10,6 +11,8 @@ public class NEDatagen implements DataGeneratorEntrypoint {
public void onInitializeDataGenerator(FabricDataGenerator dataGenerator) {
var pack = dataGenerator.createPack();

pack.addProvider(NEAdvancementProvider::new);

var blockTags = pack.addProvider(NEBlockTagProvider::new);
pack.addProvider((dataOutput, registries) -> new NEItemTagProvider(dataOutput, registries, blockTags));
}
Expand Down

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit bdb2a69

Please sign in to comment.