@Override public float getHeightModifier() { return genome.getHeight(); }
@Override public boolean generate(World worldIn, Random rand, BlockPos position) { this.world = worldIn; this.startX = position.getX(); this.startY = position.getY(); this.startZ = position.getZ(); this.girth = this.tree.getGirth(); this.height = (int) (this.randBetween(this.getHeight()[0], this.getHeight()[1]) * this.tree.getGenome().getHeight()); if (this.tree.canGrow(world, position, this.girth, this.height) != null) { this.generate(); return true; } return false; }
new ControlText(contents, new Area(w2, y, w3, th), genome.getHeight() + "x", TextJustification.MIDDLE_LEFT); y += th; new ControlText(contents, new Area(0, y, w2, th), syst.getChromosomeShortName(EnumTreeChromosome.FERTILITY) + " : ", TextJustification.MIDDLE_RIGHT);