Package extrabiomes.lib

Examples of extrabiomes.lib.BlockSettings


    // BlockCustomVine.BlockType[] vines = BlockCustomVine.BlockType.values();
    BlockCustomVine.BlockType[] vines = { BlockCustomVine.BlockType.GLORIOSA };

    for (BlockCustomVine.BlockType blockType : vines) {
      final BlockSettings settings;
      try {
        settings = BlockSettings.valueOf(blockType.name());
      } catch (Exception e) {
        LogHelper.severe("Unable to find settings for " + blockType);
        continue;
      }

      if (!settings.getEnabled())
        continue;

      /*
       * final String shortName = blockType.name()
       * .substring(blockType.name().indexOf('_')).toLowerCase();
 
View Full Code Here


    final CommonProxy proxy = Extrabiomes.proxy;

      for( BlockCropRegrow.CropType type : BlockCropRegrow.CropType.values() ) {
      final String name = type.name();

        final BlockSettings plant_settings;
        final Element plant_element;
        final Element crop_element;

        try {
          plant_settings = BlockSettings.valueOf(name);
         
            if(!plant_settings.getEnabled()) continue;
         
        plant_element = Element.valueOf("PLANT_" + name);
        crop_element = Element.valueOf("CROP_" + name);
        } catch( Exception e ) {
        LogHelper.warning("Missing settings or elements for plant " + type);
View Full Code Here

TOP

Related Classes of extrabiomes.lib.BlockSettings

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.