use of kaptainwutax.seedcrackerX.render.Color in project SeedcrackerX by 19MisterX98.
the class DesertWellFinder method findInChunk.
@Override
public List<BlockPos> findInChunk() {
Biome biome = this.world.getBiomeForNoiseGen((this.chunkPos.x << 2) + 2, 0, (this.chunkPos.z << 2) + 2).value();
if (!Features.DESERT_WELL.isValidBiome(BiomeFixer.swap(biome))) {
return new ArrayList<>();
}
List<BlockPos> result = super.findInChunk();
result.forEach(pos -> {
pos = pos.add(2, 1, 2);
DesertWell.Data data = Features.DESERT_WELL.at(pos.getX(), pos.getZ());
if (SeedCracker.get().getDataStorage().addBaseData(data, DataAddedEvent.POKE_STRUCTURES)) {
this.renderers.add(new Cuboid(pos.add(-2, -1, -2), SIZE, new Color(128, 128, 255)));
this.renderers.add(new Cube(pos, new Color(128, 128, 255)));
}
});
return result;
}
use of kaptainwutax.seedcrackerX.render.Color in project SeedcrackerX by 19MisterX98.
the class DesertPyramidFinder method findInChunk.
@Override
public List<BlockPos> findInChunk() {
Map<PieceFinder, List<BlockPos>> result = super.findInChunkPieces();
List<BlockPos> combinedResult = new ArrayList<>();
result.forEach((pieceFinder, positions) -> {
combinedResult.addAll(positions);
positions.forEach(pos -> {
RegionStructure.Data<?> data = Features.DESERT_PYRAMID.at(this.chunkPos.x, this.chunkPos.z);
if (SeedCracker.get().getDataStorage().addBaseData(data, DataAddedEvent.POKE_LIFTING)) {
this.addRenderers(pieceFinder, pos, new Color(255, 0, 255));
}
});
});
return combinedResult;
}
use of kaptainwutax.seedcrackerX.render.Color in project SeedcrackerX by 19MisterX98.
the class IglooFinder method findInChunk.
@Override
public List<BlockPos> findInChunk() {
Map<JigsawFinder, List<BlockPos>> result = this.findInChunkPieces();
List<BlockPos> combinedResult = new ArrayList<>();
result.forEach((pieceFinder, positions) -> {
combinedResult.addAll(positions);
positions.forEach(pos -> {
RegionStructure.Data<?> data = Features.IGLOO.at(this.chunkPos.x, this.chunkPos.z);
if (SeedCracker.get().getDataStorage().addBaseData(data, DataAddedEvent.POKE_LIFTING)) {
this.renderers.add(new Cuboid(pos, pieceFinder.getLayout(), new Color(176, 207, 252)));
this.renderers.add(new Cube(chunkPos.getStartPos().add(0, pos.getY(), 0), new Color(176, 207, 252)));
}
});
});
return combinedResult;
}
use of kaptainwutax.seedcrackerX.render.Color in project SeedcrackerX by 19MisterX98.
the class MonumentFinder method findInChunk.
@Override
public List<BlockPos> findInChunk() {
Biome biome = this.world.getBiomeForNoiseGen((this.chunkPos.x << 2) + 2, 64, (this.chunkPos.z << 2) + 2).value();
if (BiomeFixer.swap(biome).getCategory() != com.seedfinding.mcbiome.biome.Biome.Category.OCEAN)
return new ArrayList<>();
Map<PieceFinder, List<BlockPos>> result = this.findInChunkPieces();
List<BlockPos> combinedResult = new ArrayList<>();
result.forEach((pieceFinder, positions) -> {
positions.removeIf(pos -> {
// Figure this out, it's not a trivial task.
return false;
});
combinedResult.addAll(positions);
positions.forEach(pos -> {
ChunkPos monumentStart = new ChunkPos(this.chunkPos.x + 1, this.chunkPos.z + 1);
RegionStructure.Data<?> data = Features.MONUMENT.at(monumentStart.x, monumentStart.z);
if (SeedCracker.get().getDataStorage().addBaseData(data, DataAddedEvent.POKE_STRUCTURES)) {
this.renderers.add(new Cuboid(pos, pieceFinder.getLayout(), new Color(0, 0, 255)));
this.renderers.add(new Cube(monumentStart.getStartPos().add(0, pos.getY(), 0), new Color(0, 0, 255)));
}
});
});
return combinedResult;
}
use of kaptainwutax.seedcrackerX.render.Color in project SeedcrackerX by 19MisterX98.
the class SwampHutFinder method findInChunk.
@Override
public List<BlockPos> findInChunk() {
Map<PieceFinder, List<BlockPos>> result = super.findInChunkPieces();
List<BlockPos> combinedResult = new ArrayList<>();
result.forEach((pieceFinder, positions) -> {
combinedResult.addAll(positions);
positions.forEach(pos -> {
RegionStructure.Data<?> data = Features.SWAMP_HUT.at(this.chunkPos.x, this.chunkPos.z);
if (SeedCracker.get().getDataStorage().addBaseData(data, DataAddedEvent.POKE_LIFTING)) {
this.addRenderers(pieceFinder, pos, new Color(255, 0, 255));
}
});
});
return combinedResult;
}
Aggregations