Java Code Examples for cpw.mods.fml.client.registry.RenderingRegistry#addNewArmourRendererPrefix()

The following examples show how to use cpw.mods.fml.client.registry.RenderingRegistry#addNewArmourRendererPrefix() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QCraftProxyClient.java    From qcraft-mod with Apache License 2.0 6 votes vote down vote up
@Override
public void load()
{
    ItemQuantumGoggles.s_renderIndex = RenderingRegistry.addNewArmourRendererPrefix( "qcraft:goggles" );

    super.load();

    // Setup renderers
    int gateID = RenderingRegistry.getNextAvailableRenderId();
    QCraft.Blocks.quantumLogic.blockRenderID = gateID;

    m_renderBlocks = new RenderBlocks();
    QCraft.Blocks.qBlock.blockRenderID = RenderingRegistry.getNextAvailableRenderId();

    // Setup client forge handlers
    registerForgeHandlers();
}
 
Example 2
Source File: ClientProxy.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
@Override
public int getArmorRenderID(String armorName){
    return RenderingRegistry.addNewArmourRendererPrefix(armorName);
}
 
Example 3
Source File: ClientProxy.java    From HexxitGear with GNU General Public License v3.0 4 votes vote down vote up
@Override
public int addArmor(String armorName) {
    return RenderingRegistry.addNewArmourRendererPrefix(armorName);
}