Package forestry.arboriculture.gadgets

Examples of forestry.arboriculture.gadgets.TileFruitPod


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

    int maturity = 0;

    BlockFruitPod blockPod = (BlockFruitPod) block;
    TileFruitPod pod = BlockFruitPod.getPodTile(world, x, y, z);
    if (pod != null)
      maturity = pod.getMaturity();

    Tessellator tessellator = Tessellator.instance;
    tessellator.setBrightness(blockPod.getMixedBrightnessForBlock(world, x, y, z));
    tessellator.setColorOpaque_F(1.0f, 1.0f, 1.0f);
    int metadata = world.getBlockMetadata(x, y, z);
View Full Code Here


      return false;

    if (!ForestryBlock.pods.isBlockEqual(world, x, y, z))
      return false;

    TileFruitPod pod = BlockFruitPod.getPodTile(world, x, y, z);
    if (pod == null) {
      world.setBlockToAir(x, y, z);
      return false;
    }
    pod.setFruit(allele, sappiness, indices);
    world.markBlockForUpdate(x, y, z);
    return true;
  }
View Full Code Here

TOP

Related Classes of forestry.arboriculture.gadgets.TileFruitPod

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.