-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
308 additions
and
3,201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ bin/ | |
# fabric | ||
|
||
run/ | ||
src/main/generated/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package xyz.nucleoid.extras.data; | ||
|
||
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; | ||
|
||
public class NEDatagen implements DataGeneratorEntrypoint { | ||
@Override | ||
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)); | ||
} | ||
} |
203 changes: 203 additions & 0 deletions
203
src/datagen/java/xyz/nucleoid/extras/data/provider/NEAdvancementProvider.java
Large diffs are not rendered by default.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
src/datagen/java/xyz/nucleoid/extras/data/provider/NEBlockTagProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package xyz.nucleoid.extras.data.provider; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider; | ||
import net.minecraft.registry.RegistryWrapper; | ||
import net.minecraft.registry.RegistryWrapper.WrapperLookup; | ||
import net.minecraft.registry.tag.BlockTags; | ||
import xyz.nucleoid.extras.lobby.NEBlocks; | ||
import xyz.nucleoid.extras.tag.NEBlockTags; | ||
|
||
public class NEBlockTagProvider extends FabricTagProvider.BlockTagProvider { | ||
public NEBlockTagProvider(FabricDataOutput dataOutput, CompletableFuture<RegistryWrapper.WrapperLookup> registries) { | ||
super(dataOutput, registries); | ||
} | ||
|
||
@Override | ||
protected void configure(WrapperLookup lookup) { | ||
this.getOrCreateTagBuilder(BlockTags.DOORS) | ||
.add(NEBlocks.TRANSIENT_IRON_DOOR); | ||
|
||
this.getOrCreateTagBuilder(NEBlockTags.LUCKY_TATER_DROPS) | ||
.add(NEBlocks.BRONZE_CAPSULE_TATER) | ||
.add(NEBlocks.SILVER_CAPSULE_TATER) | ||
.add(NEBlocks.GOLD_CAPSULE_TATER); | ||
|
||
this.getOrCreateTagBuilder(NEBlockTags.NON_VIBRATING_TATERS) | ||
.addOptionalTag(BlockTags.DAMPENS_VIBRATIONS) | ||
.add(NEBlocks.WARDEN_TATER); | ||
|
||
this.getOrCreateTagBuilder(BlockTags.WOODEN_DOORS) | ||
.add(NEBlocks.TRANSIENT_OAK_DOOR) | ||
.add(NEBlocks.TRANSIENT_SPRUCE_DOOR) | ||
.add(NEBlocks.TRANSIENT_BIRCH_DOOR) | ||
.add(NEBlocks.TRANSIENT_JUNGLE_DOOR) | ||
.add(NEBlocks.TRANSIENT_ACACIA_DOOR) | ||
.add(NEBlocks.TRANSIENT_CHERRY_DOOR) | ||
.add(NEBlocks.TRANSIENT_DARK_OAK_DOOR) | ||
.add(NEBlocks.TRANSIENT_MANGROVE_DOOR) | ||
.add(NEBlocks.TRANSIENT_BAMBOO_DOOR) | ||
.add(NEBlocks.TRANSIENT_CRIMSON_DOOR) | ||
.add(NEBlocks.TRANSIENT_WARPED_DOOR); | ||
|
||
this.getOrCreateTagBuilder(NEBlockTags.VIRAL_TATERS) | ||
.add(NEBlocks.VIRAL_TATER); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/datagen/java/xyz/nucleoid/extras/data/provider/NEItemTagProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package xyz.nucleoid.extras.data.provider; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider; | ||
import net.minecraft.registry.RegistryWrapper; | ||
import net.minecraft.registry.RegistryWrapper.WrapperLookup; | ||
import net.minecraft.registry.tag.BlockTags; | ||
import net.minecraft.registry.tag.ItemTags; | ||
|
||
public class NEItemTagProvider extends FabricTagProvider.ItemTagProvider { | ||
public NEItemTagProvider(FabricDataOutput dataOutput, CompletableFuture<RegistryWrapper.WrapperLookup> registries, FabricTagProvider.BlockTagProvider blockTags) { | ||
super(dataOutput, registries, blockTags); | ||
} | ||
|
||
@Override | ||
protected void configure(WrapperLookup lookup) { | ||
this.copy(BlockTags.DOORS, ItemTags.DOORS); | ||
this.copy(BlockTags.WOODEN_DOORS, ItemTags.WOODEN_DOORS); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/resources/data/minecraft/tags/blocks/wooden_doors.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/resources/data/minecraft/tags/items/wooden_doors.json
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
src/main/resources/data/nucleoid_extras/advancements/taters/1_2_taters.json
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
src/main/resources/data/nucleoid_extras/advancements/taters/1_3_taters.json
This file was deleted.
Oops, something went wrong.
116 changes: 0 additions & 116 deletions
116
src/main/resources/data/nucleoid_extras/advancements/taters/adventure_taters.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.