Inventroy rendering

This commit is contained in:
LexManos 2012-05-10 01:25:56 -07:00
parent 8d0a9b770d
commit ef6bb505b9
2 changed files with 16 additions and 1 deletions

View file

@ -651,4 +651,19 @@ public class FMLClientHandler implements IFMLSidedHandler
}
return ((BaseMod)mod.getMod()).renderWorldBlock(renderer, world, x, y, z, block, modelID);
}
/**
* @param renderer
* @param block
* @param metadata
* @param modelID
*/
public void onRenderInvBlock(RenderBlocks renderer, Block block, int metadata, int modelID)
{
ModLoaderModContainer mod = blockModelIds.get(modelID);
if (mod != null)
{
((BaseMod)mod.getMod()).renderInvBlock(renderer, block, metadata, modelID);
}
}
}

View file

@ -673,7 +673,7 @@ public class ModLoader
public static void renderInvBlock(RenderBlocks renderer, Block block, int metadata, int modelID)
{
//TODO
FMLClientHandler.instance().onRenderInvBlock(renderer, block, metadata, modelID);
}
public static boolean renderWorldBlock(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block, int modelID)