Package forestry.api.apiculture

Examples of forestry.api.apiculture.IAlleleBeeEffect


  }

  /* EFFECTS */
  @Override
  public IEffectData[] doEffect(IEffectData[] storedData, IBeeHousing housing) {
    IAlleleBeeEffect effect = genome.getEffect();

    if (effect == null)
      return null;

    storedData[0] = doEffect(effect, storedData[0], housing);

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

    IAlleleBeeEffect secondary = (IAlleleBeeEffect) genome.getInactiveAllele(EnumBeeChromosome.EFFECT.ordinal());
    if (!secondary.isCombinable())
      return storedData;

    storedData[1] = doEffect(secondary, storedData[1], housing);

    return storedData;
View Full Code Here


    return effect.doEffect(genome, storedData, housing);
  }

  @Override
  public IEffectData[] doFX(IEffectData[] storedData, IBeeHousing housing) {
    IAlleleBeeEffect effect = genome.getEffect();

    if (effect == null)
      return null;

    storedData[0] = doFX(effect, storedData[0], housing);

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

    IAlleleBeeEffect secondary = (IAlleleBeeEffect) genome.getInactiveAllele(EnumBeeChromosome.EFFECT.ordinal());
    if (!secondary.isCombinable())
      return storedData;

    storedData[1] = doFX(secondary, storedData[1], housing);

    return storedData;
View Full Code Here

TOP

Related Classes of forestry.api.apiculture.IAlleleBeeEffect

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.