Codota Logo
IAlleleTreeSpecies.getPlantType
Code IndexAdd Codota to your IDE (free)

How to use
getPlantType
method
in
forestry.api.arboriculture.IAlleleTreeSpecies

Best Java code snippets using forestry.api.arboriculture.IAlleleTreeSpecies.getPlantType (Showing top 7 results out of 315)

  • Common ways to obtain IAlleleTreeSpecies
private void myMethod () {
IAlleleTreeSpecies i =
  • Codota IconITreeGenome iTreeGenome;iTreeGenome.getPrimary()
  • Smart code suggestions by Codota
}
origin: ForestryMC/ForestryMC

@Override
public EnumPlantType getPlantType(IBlockAccess world, BlockPos pos) {
  return genome.getPrimary().getPlantType();
}
origin: ForestryMC/ForestryMC

@Override
public EnumPlantType getPlantType() {
  return tree.getGenome().getPrimary().getPlantType();
}
origin: ForestryMC/ForestryMC

@Override
public EnumPlantType getPlantType() {
  ITree tree = getTree();
  if (tree == null) {
    return EnumPlantType.Plains;
  }
  return tree.getGenome().getPrimary().getPlantType();
}
origin: ForestryMC/ForestryMC

textLayout.drawLine(Translator.translateToLocal("for.gui." + tree.getGenome().getPrimary().getPlantType().toString().toLowerCase(Locale.ENGLISH)), GuiAlyzer.COLUMN_1,
  speciesDominance0);
textLayout.drawLine(Translator.translateToLocal("for.gui." + tree.getGenome().getSecondary().getPlantType().toString().toLowerCase(Locale.ENGLISH)), GuiAlyzer.COLUMN_2,
  speciesDominance1);
origin: ForestryMC/ForestryMC

container.addLine(Translator.translateToLocal("for.gui.native"), Translator.translateToLocal("for.gui." + tree.getGenome().getPrimary().getPlantType().toString().toLowerCase(Locale.ENGLISH)), species.isDominant());
origin: ForestryMC/Binnie

  @Override
  @SideOnly(Side.CLIENT)
  public int addBiologyPages(ITree tree, IWidget parent, int y, IAnalystManager analystManager) {
    IBreedingSystem treeSystem = Binnie.GENETICS.getSystem(TreeManager.treeRoot);
    String alleleName = treeSystem.getAlleleName(EnumTreeChromosome.SAPPINESS, tree.getGenome().getActiveAllele(EnumTreeChromosome.SAPPINESS));
    new ControlTextCentered(parent, y, TextFormatting.ITALIC + I18N.localise(AnalystConstants.BIOLOGY_KEY + ".sappiness", alleleName))
      .setColor(parent.getColor());
    y += 20;
    int fertility = (int) (1.0f / tree.getGenome().getFertility());
    if (fertility > 1) {
      new ControlTextCentered(parent, y, I18N.localise(AnalystConstants.BIOLOGY_KEY + ".fertility.leaves", fertility))
        .setColor(parent.getColor());
    } else {
      new ControlTextCentered(parent, y, I18N.localise(AnalystConstants.BIOLOGY_KEY + ".fertility.leaf"))
        .setColor(parent.getColor());
    }
    y += 22;
    int butterflySpawn = Math.round(Constants.SPAWN_KOEF / (tree.getGenome().getSappiness() * tree.getGenome().getYield() * 0.5f));
    new ControlTextCentered(parent, y, I18N.localise(AnalystConstants.BIOLOGY_KEY + ".mothSpawn.perLeaf", TimeUtil.getTimeString(butterflySpawn)))
      .setColor(parent.getColor());
    y += 34;
    new ControlTextCentered(parent, y, I18N.localise(AnalystConstants.BIOLOGY_KEY + ".plantTypes")).setColor(parent.getColor());
    y += 12;
    new ControlTextCentered(parent, y, TextFormatting.ITALIC + tree.getGenome().getPrimary().getPlantType().toString())
      .setColor(parent.getColor());
    return y;
  }
}
origin: ForestryMC/Binnie

final int th2 = 18;
final IBreedingSystem syst = Binnie.GENETICS.getSystem(TreeManager.treeRoot);
new ControlText(contents, new Area(w2, y, w3, th), treeSpecies.getPlantType().toString(), TextJustification.MIDDLE_LEFT);
y += th;
new ControlText(contents, new Area(0, y, w2, th), I18N.localise("binniecore.gui.temperature.short") + " : ", TextJustification.MIDDLE_RIGHT);
forestry.api.arboricultureIAlleleTreeSpeciesgetPlantType

Popular methods of IAlleleTreeSpecies

  • getSuitableFruit
  • getLeafSpriteProvider
  • getTemperature
  • getUID
  • getUnlocalizedName
  • getWoodProvider
  • getAlleleName
  • getGenerator
  • getGermlingColour
  • getGermlingModel
  • getGrowthProvider
  • getHumidity
  • getGrowthProvider,
  • getHumidity,
  • getLeafProvider,
  • getModID,
  • getRarity,
  • getRoot,
  • isCounted,
  • isDominant,
  • registerModels

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • Menu (java.awt)
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now