Skip to content

Commit

Permalink
Refactor to have Generations name in class to avoid confusion with Va…
Browse files Browse the repository at this point in the history
…nilla
  • Loading branch information
JT122406 committed Nov 28, 2023
1 parent 27f7dea commit 49dc786
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
import net.minecraft.core.registries.Registries;
import net.minecraft.data.worldgen.BootstapContext;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.levelgen.Heightmap;
import net.minecraft.world.level.levelgen.structure.Structure;
import net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool;
import net.minecraft.world.level.levelgen.structure.structures.JigsawStructure;

public class GenerationsStructures {
public class GenerationsStructureSettings {

public static void bootstrap(BootstapContext<Structure> context) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @see StructureSet
* @author Joseph T. McQuigg
*/
public class StructureSets {
public class GenerationsStructureSets {
public static ResourceKey<StructureSet> LOOT_BALLOON = create("loot_balloon");
public static ResourceKey<StructureSet> COMET = create("comet");
public static ResourceKey<StructureSet> POKESHOPS = create("pokeshops");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.List;
import java.util.function.Function;

public class TemplatePools {
public class GenerationsTemplatePools {

public static final ResourceKey<StructureTemplatePool> BEAST_BALLOON = create("loot_balloon/beast_balloon");
public static final ResourceKey<StructureTemplatePool> GREAT_BALLOON = create("loot_balloon/great_balloon");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package generations.gg.generations.structures.generationsstructures.forge.datagen;

import generations.gg.generations.structures.generationsstructures.GenerationsStructures;
import generations.gg.generations.structures.generationsstructures.structures.GenerationsStructureSettings;
import generations.gg.generations.structures.generationsstructures.structures.GenerationsStructuresKeys;
import generations.gg.generations.structures.generationsstructures.tags.GenerationsBiomeTags;
import generations.gg.generations.structures.generationsstructures.tags.GenerationsStructureTags;
import generations.gg.generations.structures.generationsstructures.worldgen.structureset.StructureSets;
import generations.gg.generations.structures.generationsstructures.worldgen.template_pool.TemplatePools;
import generations.gg.generations.structures.generationsstructures.worldgen.structureset.GenerationsStructureSets;
import generations.gg.generations.structures.generationsstructures.worldgen.template_pool.GenerationsTemplatePools;
import net.minecraft.core.HolderLookup;
import net.minecraft.core.RegistrySetBuilder;
import net.minecraft.core.registries.Registries;
Expand Down Expand Up @@ -45,9 +46,9 @@ public static void gatherData(GatherDataEvent event) {
}

private static final RegistrySetBuilder BUILDER = new RegistrySetBuilder()
.add(Registries.TEMPLATE_POOL, TemplatePools::bootstrap)
.add(Registries.STRUCTURE, generations.gg.generations.structures.generationsstructures.structures.GenerationsStructures::bootstrap)
.add(Registries.STRUCTURE_SET, StructureSets::bootstrap);
.add(Registries.TEMPLATE_POOL, GenerationsTemplatePools::bootstrap)
.add(Registries.STRUCTURE, GenerationsStructureSettings::bootstrap)
.add(Registries.STRUCTURE_SET, GenerationsStructureSets::bootstrap);

private static class GenerationsStructuresBiomeTagsProvider extends BiomeTagsProvider {

Expand Down

0 comments on commit 49dc786

Please sign in to comment.