Package extrabiomes.blocks.BlockCustomFlower

Examples of extrabiomes.blocks.BlockCustomFlower.BlockType


    {
        final CommonProxy proxy = Extrabiomes.proxy;
       
    for (Element element : Element.values()) {
      if (!element.isPresent()) continue;
      final BlockType block;
      try {
        block = BlockCustomFlower.BlockType.valueOf(element.name());
      } catch (Exception e) {
        continue;
      }
      if (block != null) {
        final int color = block.color();
        final ItemStack dye;
        switch (color) {
          case -1:
            continue;
          case 0:
View Full Code Here


      if( maxFlowers > 0 ) {
        List<BlockType> map = flowerMaps.get(settings);
        //LogHelper.finer("[FG] "+eBiome.getDecorationSettings()+" = "+maxFlowers+", "+map.size()+" varieties");
        for (int flowers = 0; flowers < maxFlowers; ++flowers) {
          final int idx = rand.nextInt(map.size());
          final BlockType type = map.get(idx);
          //LogHelper.finest("[FG] "+eBiome.biomeName+" > "+flowers+"/"+maxFlowers+" = "+type);
          applyGenerator(type, world, chunkX, chunkZ, rand);
        }
      }
    }
View Full Code Here

TOP

Related Classes of extrabiomes.blocks.BlockCustomFlower.BlockType

Copyright © 2018 www.massapicom. 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.