@@ -0,0 +1,2629 @@
+/*%0A * The FML Forge Mod Loader suite.%0A * Copyright (C) 2012 cpw%0A *%0A * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free%0A * Software Foundation; either version 2.1 of the License, or any later version.%0A *%0A * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR%0A * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51%0A * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA%0A */%0A%0Apackage net.minecraft.src;%0A%0Aimport java.awt.Dimension;%0Aimport java.util.List;%0A%0Aimport cpw.mods.fml.client.FMLClientHandler;%0A%0A/**%0A * %0A * A static hook library for optifine and other basemod editing code to access FML functions%0A * %0A * @author cpw%0A *%0A */%0Apublic class FMLRenderAccessLibrary%0A%7B%0A    public static void setTextureDimensions(int textureId, int width, int height, List%3CTextureFX%3E textureFXList)%0A    %7B%0A        FMLClientHandler.instance().setTextureDimensions(textureId, width, height, textureFXList);%0A    %7D%0A    %0A    public static void preRegisterEffect(TextureFX textureFX)%0A    %7B%0A        FMLClientHandler.instance().onPreRegisterEffect(textureFX);%0A    %7D%0A    %0A    public static boolean onUpdateTextureEffect(TextureFX textureFX)%0A    %7B%0A        return FMLClientHandler.instance().onUpdateTextureEffect(textureFX);%0A    %7D%0A    %0A    public static Dimension getTextureDimensions(TextureFX textureFX)%0A    %7B%0A        return FMLClientHandler.instance().getTextureDimensions(textureFX);%0A    %7D%0A    %0A    public static void onTexturePackChange(RenderEngine engine, TexturePackBase texturePack, List%3CTextureFX%3E textureFXList)%0A    %7B%0A        FMLClientHandler.instance().onTexturePackChange(engine, texturePack, textureFXList);%0A    %7D%0A    %0A    public static boolean renderWorldBlock(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block, int modelId)%0A    %7B%0A        return FMLClientHandler.instance().renderWorldBlock(renderer, world, x, y, z, block, modelId);%0A    %7D%0A    %0A    public static void renderInventoryBlock(RenderBlocks renderer, Block block, int metadata, int modelID)%0A    %7B%0A        FMLClientHandler.instance().renderInventoryBlock(renderer, block, metadata, modelID);%0A    %7D%0A    %0A    public static boolean renderItemAsFull3DBlock(int modelId)%0A    %7B%0A        return FMLClientHandler.instance().renderItemAsFull3DBlock(modelId);%0A    %7D%0A%7D%0A

Add in a static render access class for optifine and other render editing mods to use