Package cofh.lib.world.feature

Examples of cofh.lib.world.feature.FeatureBase


        dimRes = GenRestriction.WHITELIST;
      }
    }
    List<WeightedRandomBlock> matList = parseMaterial(genObject, log);

    FeatureBase feature = getFeature(featureName, genObject, getGenerator(genObject, log, resList, clusterSize, matList),
        matList, numClusters, biomeRes, retrogen, dimRes, log);

    if (genObject.has("chunkChance")) {
      int rarity = MathHelper.clampI(genObject.get("chunkChance").getAsInt(), 1, 1000000);
      feature.setRarity(rarity);
    }
    if (feature != null)
      addFeatureRestrictions(feature, genObject);
    return feature;
  }
View Full Code Here

TOP

Related Classes of cofh.lib.world.feature.FeatureBase

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.