Package forestry.api.genetics

Examples of forestry.api.genetics.IAlleleBoolean


    list.add(String.format("\u00A76S: %s, \u00A7cM: %s", genome.getActiveAllele(EnumTreeChromosome.SAPPINESS.ordinal()).getName(), genome.getActiveAllele(EnumTreeChromosome.MATURATION.ordinal()).getName()));
    list.add(String.format("\u00A7dH: %s, \u00A7bG: %sx%s", genome.getActiveAllele(EnumTreeChromosome.HEIGHT.ordinal()).getName(), genome.getGirth(), genome.getGirth()));

    list.add(String.format("\u00A7eS: %s, \u00A7fY: %s", genome.getActiveAllele(EnumTreeChromosome.FERTILITY.ordinal()).getName(), genome.getActiveAllele(EnumTreeChromosome.YIELD.ordinal()).getName()));

    IAlleleBoolean primaryFireproof = (IAlleleBoolean)genome.getActiveAllele(EnumTreeChromosome.FIREPROOF.ordinal());
    if (primaryFireproof.getValue())
      list.add(String.format("\u00A7c%s", StatCollector.translateToLocal("for.gui.fireresist")));

    IAllele fruit = getGenome().getActiveAllele(EnumTreeChromosome.FRUITS.ordinal());
    if(fruit != Allele.fruitNone) {
      String strike = "";
View Full Code Here


    Block block = StackUtils.getBlock(woodStack);
    int meta = woodStack.getItemDamage();

    // if we have a fireproof tree, return the fireproof log
    if (block instanceof BlockLog) {
      IAlleleBoolean fireproof = (IAlleleBoolean) tree.getGenome().getActiveAllele(EnumTreeChromosome.FIREPROOF.ordinal());
      if (fireproof.getValue()) {
        BlockLog blockLog = (BlockLog) block;
        ForestryBlock fireproofLogBlock = BlockFireproofLog.getFireproofLog(blockLog);
        return new BlockType(fireproofLogBlock.block(), meta);
      }
    }
View Full Code Here

TOP

Related Classes of forestry.api.genetics.IAlleleBoolean

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.