@Override public String getName() { return biome.getBiomeName(); } }
@Override public List<BaseBiome> getBiomes() { List<BaseBiome> list = new ArrayList<>(); for (Biome biome : Biome.REGISTRY) { list.add(new BaseBiome(Biome.getIdForBiome(biome))); } return list; }
@Override public BiomeData getData(BaseBiome biome) { return new ForgeBiomeData(Biome.getBiome(biome.getId())); }
public boolean isCompatible(Biome biome) { return biome.getDefaultTemperature() >= minTemperature && biome.getDefaultTemperature() <= maxTemperature && biome.getRainfall() >= minRainfall && biome.getRainfall() <= maxRainfall && biome.decorator.treesPerChunk >= minTreesPerChunk && biome.decorator.treesPerChunk <= maxTreesPerChunk && biome.getHeightVariation() >= minHeightVariation && biome.getHeightVariation() <= maxHeightVariation; }
@Override public int[] getBiomes(int[] biomeArray, int x, int z, int x_size, int z_size, OutputType outputType) { this.BiomeArray = this.worldChunkManager.getBiomes(this.BiomeArray, x, z, x_size, z_size, true); if (biomeArray == null || biomeArray.length < x_size * z_size) biomeArray = new int[x_size * z_size]; for (int i = 0; i < x_size * z_size; i++) biomeArray[i] = Biome.getIdForBiome(this.BiomeArray[i]); return biomeArray; }
@Override public int[] getBiomesUnZoomed(int[] biomeArray, int x, int z, int x_size, int z_size, OutputType outputType) { this.BiomeArray = this.worldChunkManager.getBiomesForGeneration(this.BiomeArray, x, z, x_size, z_size); if (biomeArray == null || biomeArray.length < x_size * z_size) biomeArray = new int[x_size * z_size]; for (int i = 0; i < x_size * z_size; i++) biomeArray[i] = Biome.getIdForBiome(this.BiomeArray[i]); return biomeArray; }
@Override public int getBiome(int x, int z) { return Biome.getIdForBiome(this.worldChunkManager.getBiome(new BlockPos(x, 0, z))); }
public BiomeGenStorage() { super( new BiomeProperties( "Storage Cell" ).setBaseBiome( "void" ).setRainDisabled().setTemperature( -100 ) ); this.decorator.treesPerChunk = 0; this.decorator.flowersPerChunk = 0; this.decorator.grassPerChunk = 0; this.spawnableMonsterList.clear(); this.spawnableCreatureList.clear(); this.spawnableWaterCreatureList.clear(); this.spawnableCaveCreatureList.clear(); } }
@Override public float getWetness() { return this.biomeBase.getRainfall(); }
@Override public float getTemperature() { return this.biomeBase.getDefaultTemperature(); }
@Override public float getSurfaceVolatility() { return this.biomeBase.getHeightVariation(); }
@Override public float getSurfaceHeight() { return this.biomeBase.getBaseHeight(); }
public StorageWorldProvider() { this.hasSkyLight = true; this.biome = AppEng.instance().getStorageBiome(); this.biomeProvider = new BiomeProviderSingle( this.biome ); }
private void registerSpatialBiome( IForgeRegistry<Biome> registry ) { if( !AEConfig.instance().isFeatureEnabled( AEFeature.SPATIAL_IO ) ) { return; } if( this.storageBiome == null ) { this.storageBiome = new BiomeGenStorage(); } registry.register( this.storageBiome.setRegistryName( "appliedenergistics2:storage_biome" ) ); }
@Override public float getTemperatureAtHeight(float p_76939_1_, int p_76939_2_) { return super.getTemperatureAtHeight(p_76939_1_, p_76939_2_); }
@Override public void cleanupCache() { this.worldChunkManager.cleanupCache(); }
@Override public BaseBiome getBiome(BlockVector2 position) { checkNotNull(position); return new BaseBiome(Biome.getIdForBiome(getWorld().getBiomeForCoordsBody(new BlockPos(position.getBlockX(), 0, position.getBlockZ())))); }
@Override public int getDelayBetweenPassiveGeneration() { boolean rain = supertile.getWorld().getBiome(supertile.getPos()).getRainfall() > 0 && (supertile.getWorld().isRaining() || supertile.getWorld().isThundering()); return rain ? 2 : 3; }
@Override public void createBiomeProvider() { biomeProvider = new BiomeProviderSingle(Biomes.VOID); hasNoSky = true; }
@Override public Chunk generateChunk( final int x, final int z ) { final Chunk chunk = new Chunk( this.world, x, z ); final byte[] biomes = chunk.getBiomeArray(); Biome biome = AppEng.instance().getStorageBiome(); byte biomeId = (byte) Biome.getIdForBiome( biome ); for( int k = 0; k < biomes.length; ++k ) { biomes[k] = biomeId; } AEApi.instance().definitions().blocks().matrixFrame().maybeBlock().ifPresent( block -> this.fillChunk( chunk, block.getDefaultState() ) ); chunk.setModified( false ); if( !chunk.isTerrainPopulated() ) { chunk.setTerrainPopulated( true ); chunk.resetRelightChecks(); } return chunk; }