Package forestry.arboriculture.gadgets

Examples of forestry.arboriculture.gadgets.BlockFruitPod


    // Leaves
    ForestryBlock.leaves.registerBlock(new ForestryBlockLeaves(), ItemLeavesBlock.class, "leaves");
    OreDictionary.registerOre("treeLeaves", new ItemStack(ForestryBlock.leaves.item(), 1, OreDictionary.WILDCARD_VALUE));

    // Pods
    ForestryBlock.pods.registerBlock(new BlockFruitPod(), ItemForestryBlock.class, "pods");

    // Machines
    ForestryBlock.arboriculture.registerBlock(new BlockBase(Material.iron), ItemForestryBlock.class, "arboriculture");
    ForestryBlock.arboriculture.block().setCreativeTab(Tabs.tabArboriculture);
View Full Code Here


  @Override
  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);
    IIcon podIcon = blockPod.getIcon(world, x, y, z, metadata);
    int notchDirection = BlockDirectional.getDirection(metadata);

    int k1 = 4 + maturity * 2;
    int l1 = 5 + maturity * 2;
    double d0 = 15.0D - k1;
View Full Code Here

TOP

Related Classes of forestry.arboriculture.gadgets.BlockFruitPod

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.