Examples of BiomeSettings


Examples of extrabiomes.lib.BiomeSettings

      vineGen = new WorldGenCustomVine(block);
      this.biomeList = (biomeList == null ? DEFAULT_BIOME_LIST : biomeList);
    }
   
    private boolean biomeCheck(BiomeGenBase biome) {
    final BiomeSettings settings = BiomeSettings.findBiomeSettings(biome.biomeID);     
    if( settings != null ) {
      for( final BiomeSettings goodBiome : biomeList ) {
        if( settings == goodBiome )
          return settings.getBiome().isPresent() && biome == settings.getBiome().get();
      }
    }
    return false;
    }
View Full Code Here

Examples of extrabiomes.lib.BiomeSettings

    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX, chunkZ);
       
    final BiomeSettings settings = BiomeSettings.findBiomeSettings(biome.biomeID);
    if (settings != null && biomeCheck(settings, biome) && flowerMaps.containsKey(settings)) {
      final ExtrabiomeGenBase eBiome = (ExtrabiomeGenBase)biome;
      final int maxFlowers = eBiome.getDecorationSettings().getSetting(Decoration.NEW_FLOWERS);
      if( maxFlowers > 0 ) {
        List<BlockType> map = flowerMaps.get(settings);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.