Examples of templateAsIndividual()


Examples of forestry.api.genetics.ISpeciesRoot.templateAsIndividual()

    gameTokens = new GameToken[boardSize];

    ISpeciesRoot root = individual.getGenome().getPrimary().getRoot();
    ArrayList<ItemStack> pairs = new ArrayList<ItemStack>();
    for(int i = 0; i < boardSize / 2; i++) {
      IIndividual token = root.templateAsIndividual(root.getRandomTemplate(rand));
      pairs.add(root.getMemberStack(token, 0));
    }

    boolean first = true;
    for(ItemStack pair : pairs) {
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.