Examples of EnumFarmBlock


Examples of forestry.farming.gadgets.TileFarm.EnumFarmBlock

  }

  @SideOnly(Side.CLIENT)
  public IIcon getOverlayTextureForBlock(int side, int metadata) {

    EnumFarmBlock type = EnumFarmBlock.BRICK_STONE;
    if (metadata == 0 && side == 2)
      return type.getIcon(TileFarm.TYPE_REVERSE);
    else if (metadata == 0 && (side == 0 || side == 1))
      return type.getIcon(TileFarm.TYPE_TOP);

    switch (metadata) {
    case 1:
      return type.getIcon(TileFarm.TYPE_BAND);
    case 2:
      return type.getIcon(TileFarm.TYPE_GEARS);
    case 3:
      return type.getIcon(TileFarm.TYPE_HATCH);
    case 4:
      return type.getIcon(TileFarm.TYPE_VALVE);
    case 5:
      return type.getIcon(TileFarm.TYPE_CONTROL);
    default:
      return type.getIcon(TileFarm.TYPE_PLAIN);
    }
  }
View Full Code Here

Examples of forestry.farming.gadgets.TileFarm.EnumFarmBlock

    BlockFarm block = (BlockFarm) StackUtils.getBlock(item);

    block.setBlockBoundsForItemRender();
    render.setRenderBoundsFromBlock(block);

    EnumFarmBlock type = EnumFarmBlock.getFromCompound(item.getTagCompound());

    GL11.glTranslatef(translateX, translateY, translateZ);

    tessellator.startDrawingQuads();
    tessellator.setNormal(0.0F, -1F, 0.0F);
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.