Examples of TileSapling


Examples of forestry.arboriculture.gadgets.TileSapling

    if (!(tile instanceof TileSapling)) {
      world.setBlockToAir(x, y, z);
      return false;
    }

    TileSapling sapling = (TileSapling) tile;
    sapling.setTree(tree.copy());
    sapling.setOwner(owner);
    world.markBlockForUpdate(x, y, z);

    return true;
  }
View Full Code Here

Examples of forestry.arboriculture.gadgets.TileSapling

  public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {

    if (modelId != this.getRenderId())
      return false;

    TileSapling tile = BlockSapling.getSaplingTile(world, x, y, z);

    IAlleleTreeSpecies species = (IAlleleTreeSpecies) PluginArboriculture.treeInterface.getDefaultTemplate()[0];
    if (tile == null || tile.getTree() == null)
      return true;
    species = tile.getTree().getGenome().getPrimary();

    renderCrossedSquares(species, world, block, x, y, z);
    renderLayer = 1;
    renderCrossedSquares(species, world, block, x, y, z);
    renderLayer = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.