Inventroy rendering

This commit is contained in:
LexManos committed 2012-05-10 01:25:56 -07:00
1 parent d2afbd9216
commit 99ee905038
2 files changed
+16 -1

No files matched your search

@@ -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);
}
}
}
+1 -1
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)