Skip to content

Commit

Permalink
shrines wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Dysth committed Sep 30, 2024
1 parent c0160d3 commit af0686f
Show file tree
Hide file tree
Showing 26 changed files with 509 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@

import com.google.common.collect.ImmutableList;
import generations.gg.generations.structures.generationsstructures.GenerationsStructures;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.burnedTower.BurnedTowerShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.creationTrio.CreationTrioShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.fiery.FieryShrineProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.fiery.FieryShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.forcesOfNature.ForcesOfNatureShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.frozen.FrozenShrineProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.GymProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.PokeCenterProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.ScarletPokeCenterProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.groudon.GroudonShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.kyogre.KyogreShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.lugia.LugiaShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.lunarDuo.LunarDuoShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.regi.RegiShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.staticShrine.StaticShrineProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.staticShrine.StaticShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.tapu.TapuShrineRandomizerProcessor;
import net.minecraft.core.registries.Registries;
import net.minecraft.data.worldgen.BootstapContext;
import net.minecraft.resources.ResourceKey;
Expand All @@ -32,6 +40,15 @@ public static void init() {}
public static final ResourceKey<StructureProcessorList> FIERY_SHRINE_PROCESSOR_LIST = create("shrines/fiery_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> STATIC_SHRINE_PROCESSOR_LIST = create("shrines/static_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> LUGIA_SHRINE_PROCESSOR_LIST = create("shrines/lugia_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> BURNED_TOWER_SHRINE_PROCESSOR_LIST = create("shrines/burned_tower_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> CREATION_TRIO_SHRINE_PROCESSOR_LIST = create("shrines/creation_trio_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> FORCES_OF_NATURE_SHRINE_PROCESSOR_LIST = create("shrines/forces_of_nature_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> GROUDON_SHRINE_PROCESSOR_LIST = create("shrines/groudon_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> KYOGRE_SHRINE_PROCESSOR_LIST = create("shrines/kyogre_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> REGI_SHRINE_PROCESSOR_LIST = create("shrines/regi_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> TAPU_SHRINE_PROCESSOR_LIST = create("shrines/tapu_shrine_processor_list");
public static final ResourceKey<StructureProcessorList> LUNAR_DUO_SHRINE_PROCESSOR_LIST = create("shrines/lunar_duo_shrine_processor_list");


/**
* This method is used to bootstrap the processorlists.
Expand Down Expand Up @@ -75,6 +92,15 @@ public static void bootstrap(BootstapContext<StructureProcessorList> context) {
register(context, FIERY_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new FieryShrineRandomizerProcessor(), new FieryShrineProcessor())));
register(context, STATIC_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new StaticShrineRandomizerProcessor(), new StaticShrineProcessor())));
register(context, LUGIA_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new LugiaShrineRandomizerProcessor())));
register(context, BURNED_TOWER_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new BurnedTowerShrineRandomizerProcessor())));
register(context, CREATION_TRIO_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new CreationTrioShrineRandomizerProcessor())));
register(context, LUNAR_DUO_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new LunarDuoShrineRandomizerProcessor())));
register(context, FORCES_OF_NATURE_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new ForcesOfNatureShrineRandomizerProcessor())));
register(context, GROUDON_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new GroudonShrineRandomizerProcessor())));
register(context, KYOGRE_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new KyogreShrineRandomizerProcessor())));
register(context, REGI_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new RegiShrineRandomizerProcessor())));
register(context, TAPU_SHRINE_PROCESSOR_LIST, new StructureProcessorList(ImmutableList.of(new TapuShrineRandomizerProcessor())));

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@

import com.mojang.serialization.Codec;
import generations.gg.generations.structures.generationsstructures.GenerationsStructures;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.burnedTower.BurnedTowerShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.creationTrio.CreationTrioShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.fiery.FieryShrineProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.fiery.FieryShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.forcesOfNature.ForcesOfNatureShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.frozen.FrozenShrineProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.GymProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.PokeCenterProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.ScarletPokeCenterProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.groudon.GroudonShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.kyogre.KyogreShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.lugia.LugiaShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.lunarDuo.LunarDuoShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.regi.RegiShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.staticShrine.StaticShrineProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.staticShrine.StaticShrineRandomizerProcessor;
import generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.tapu.TapuShrineRandomizerProcessor;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
Expand All @@ -32,6 +40,15 @@ public class StructureProcessors {
public static final StructureProcessorType<StaticShrineRandomizerProcessor> STATIC_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/static_shrine_randomizer_processor", StaticShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<StaticShrineProcessor> STATIC_SHRINE_PROCESSOR = register("shrines/static_shrine_processor", StaticShrineProcessor.CODEC);
public static final StructureProcessorType<LugiaShrineRandomizerProcessor> LUGIA_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/lugia_shrine_randomizer_processor", LugiaShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<BurnedTowerShrineRandomizerProcessor> BURNED_TOWER_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/burned_tower_shrine_randomizer_processor", BurnedTowerShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<CreationTrioShrineRandomizerProcessor> CREATION_TRIO_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/cration_trio_shrine_randomizer_processor", CreationTrioShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<LunarDuoShrineRandomizerProcessor> LUNAR_DUO_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/lunar_duo_shrine_randomizer_processor",LunarDuoShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<ForcesOfNatureShrineRandomizerProcessor> FORCES_OF_NATURE_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/forces_of_nature_shrine_randomizer_processor", ForcesOfNatureShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<GroudonShrineRandomizerProcessor> GROUDON_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/groudon_shrine_randomizer_processor", GroudonShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<KyogreShrineRandomizerProcessor> KYOGRE_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/kyogre_shrine_randomizer_processor", KyogreShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<RegiShrineRandomizerProcessor> REGI_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/regi_shrine_randomizer_processor", RegiShrineRandomizerProcessor.CODEC);
public static final StructureProcessorType<TapuShrineRandomizerProcessor> TAPU_SHRINE_RANDOMIZER_PROCESSOR = register("shrines/tapu_shrine_randomizer_processor", TapuShrineRandomizerProcessor.CODEC);



/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.burnedTower;

import com.mojang.serialization.Codec;
import generations.gg.generations.structures.generationsstructures.processors.StructureProcessors;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class BurnedTowerShrineRandomizerProcessor extends StructureProcessor {

public static final BurnedTowerShrineRandomizerProcessor INSTANCE = new BurnedTowerShrineRandomizerProcessor();
public static final Codec<BurnedTowerShrineRandomizerProcessor> CODEC = Codec.unit(() -> INSTANCE);


@Nullable
@Override
public StructureTemplate.StructureBlockInfo processBlock(@NotNull LevelReader level, @NotNull BlockPos blockPos, @NotNull BlockPos pos, StructureTemplate.@NotNull StructureBlockInfo blockInfo, StructureTemplate.@NotNull StructureBlockInfo relativeBlockInfo, @NotNull StructurePlaceSettings settings) {
// Block block = relativeBlockInfo.state().getBlock();
// if (GenerationsStructures.CONFIG.randomization.randomizeStaticShrineBlocks)

return relativeBlockInfo;
}



@Override
protected @NotNull StructureProcessorType<?> getType() {
return StructureProcessors.BURNED_TOWER_SHRINE_RANDOMIZER_PROCESSOR;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.creationTrio;

import com.mojang.serialization.Codec;
import generations.gg.generations.structures.generationsstructures.processors.StructureProcessors;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class CreationTrioShrineRandomizerProcessor extends StructureProcessor {

public static final CreationTrioShrineRandomizerProcessor INSTANCE = new CreationTrioShrineRandomizerProcessor();
public static final Codec<CreationTrioShrineRandomizerProcessor> CODEC = Codec.unit(() -> INSTANCE);


@Nullable
@Override
public StructureTemplate.StructureBlockInfo processBlock(@NotNull LevelReader level, @NotNull BlockPos blockPos, @NotNull BlockPos pos, StructureTemplate.@NotNull StructureBlockInfo blockInfo, StructureTemplate.@NotNull StructureBlockInfo relativeBlockInfo, @NotNull StructurePlaceSettings settings) {
// Block block = relativeBlockInfo.state().getBlock();
// if (GenerationsStructures.CONFIG.randomization.randomizeStaticShrineBlocks)

return relativeBlockInfo;
}



@Override
protected @NotNull StructureProcessorType<?> getType() {
return StructureProcessors.CREATION_TRIO_SHRINE_RANDOMIZER_PROCESSOR;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.forcesOfNature;

import com.mojang.serialization.Codec;
import generations.gg.generations.structures.generationsstructures.processors.StructureProcessors;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class ForcesOfNatureShrineRandomizerProcessor extends StructureProcessor {

public static final ForcesOfNatureShrineRandomizerProcessor INSTANCE = new ForcesOfNatureShrineRandomizerProcessor();
public static final Codec<ForcesOfNatureShrineRandomizerProcessor> CODEC = Codec.unit(() -> INSTANCE);


@Nullable
@Override
public StructureTemplate.StructureBlockInfo processBlock(@NotNull LevelReader level, @NotNull BlockPos blockPos, @NotNull BlockPos pos, StructureTemplate.@NotNull StructureBlockInfo blockInfo, StructureTemplate.@NotNull StructureBlockInfo relativeBlockInfo, @NotNull StructurePlaceSettings settings) {
// Block block = relativeBlockInfo.state().getBlock();
// if (GenerationsStructures.CONFIG.randomization.randomizeStaticShrineBlocks)

return relativeBlockInfo;
}



@Override
protected @NotNull StructureProcessorType<?> getType() {
return StructureProcessors.FORCES_OF_NATURE_SHRINE_RANDOMIZER_PROCESSOR;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.groudon;

import com.mojang.serialization.Codec;
import generations.gg.generations.structures.generationsstructures.processors.StructureProcessors;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class GroudonShrineRandomizerProcessor extends StructureProcessor {

public static final GroudonShrineRandomizerProcessor INSTANCE = new GroudonShrineRandomizerProcessor();
public static final Codec<GroudonShrineRandomizerProcessor> CODEC = Codec.unit(() -> INSTANCE);


@Nullable
@Override
public StructureTemplate.StructureBlockInfo processBlock(@NotNull LevelReader level, @NotNull BlockPos blockPos, @NotNull BlockPos pos, StructureTemplate.@NotNull StructureBlockInfo blockInfo, StructureTemplate.@NotNull StructureBlockInfo relativeBlockInfo, @NotNull StructurePlaceSettings settings) {
// Block block = relativeBlockInfo.state().getBlock();
// if (GenerationsStructures.CONFIG.randomization.randomizeStaticShrineBlocks)

return relativeBlockInfo;
}



@Override
protected @NotNull StructureProcessorType<?> getType() {
return StructureProcessors.GROUDON_SHRINE_RANDOMIZER_PROCESSOR;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package generations.gg.generations.structures.generationsstructures.processors.structure_processors.shrines.kyogre;

import com.mojang.serialization.Codec;
import generations.gg.generations.structures.generationsstructures.processors.StructureProcessors;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class KyogreShrineRandomizerProcessor extends StructureProcessor {

public static final KyogreShrineRandomizerProcessor INSTANCE = new KyogreShrineRandomizerProcessor();
public static final Codec<KyogreShrineRandomizerProcessor> CODEC = Codec.unit(() -> INSTANCE);


@Nullable
@Override
public StructureTemplate.StructureBlockInfo processBlock(@NotNull LevelReader level, @NotNull BlockPos blockPos, @NotNull BlockPos pos, StructureTemplate.@NotNull StructureBlockInfo blockInfo, StructureTemplate.@NotNull StructureBlockInfo relativeBlockInfo, @NotNull StructurePlaceSettings settings) {
// Block block = relativeBlockInfo.state().getBlock();
// if (GenerationsStructures.CONFIG.randomization.randomizeStaticShrineBlocks)

return relativeBlockInfo;
}



@Override
protected @NotNull StructureProcessorType<?> getType() {
return StructureProcessors.KYOGRE_SHRINE_RANDOMIZER_PROCESSOR;
}
}
Loading

0 comments on commit af0686f

Please sign in to comment.