mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Inventroy rendering
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user