Inventroy rendering
This commit is contained in:
parent
8d0a9b770d
commit
ef6bb505b9
2 changed files with 16 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue