예제 #1
0
 @Override
 public void renderInventoryBlock(Block block, int meta, int modelId, RenderBlocks renderer) {
   GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
   GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
   BlockBuildCraft bcBlock = (BlockBuildCraft) block;
   int pass = 0;
   while (bcBlock.canRenderInPassBC(pass)) {
     renderPassInventory(pass, bcBlock, meta, renderer);
     pass++;
   }
   GL11.glTranslatef(0.5F, 0.5F, 0.5F);
 }
예제 #2
0
  @Override
  public boolean renderWorldBlock(
      IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
    BlockBuildCraft bcBlock = (BlockBuildCraft) block;
    int meta = world.getBlockMetadata(x, y, z);

    int pass = bcBlock.getCurrentRenderPass();
    while (bcBlock.canRenderInPassBC(pass)) {
      renderPassWorld(pass, bcBlock, meta, renderer, world, x, y, z);
      pass++;
    }
    return true;
  }