Package forestry.api.arboriculture

Examples of forestry.api.arboriculture.IAlleleLeafEffect


  }

  /* EFFECTS */
  @Override
  public IEffectData[] doEffect(IEffectData[] storedData, World world, int biomeid, int x, int y, int z) {
    IAlleleLeafEffect effect = (IAlleleLeafEffect) getGenome().getActiveAllele(EnumTreeChromosome.EFFECT.ordinal());

    if (effect == null)
      return null;

    storedData[0] = doEffect(effect, storedData[0], world, biomeid, x, y, z);

    // Return here if the primary can already not be combined
    if (!effect.isCombinable())
      return storedData;

    IAlleleLeafEffect secondary = (IAlleleLeafEffect) getGenome().getInactiveAllele(EnumTreeChromosome.EFFECT.ordinal());
    if (!secondary.isCombinable())
      return storedData;

    storedData[1] = doEffect(secondary, storedData[1], world, biomeid, x, y, z);

    return storedData;
View Full Code Here

TOP

Related Classes of forestry.api.arboriculture.IAlleleLeafEffect

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.