Search in sources :

Example 1 with ItemRenderer

use of net.minecraft.client.renderer.ItemRenderer in project PneumaticCraft by MineMaarten.

the class ItemMinigun method suppressSwitchAnimation.

@SideOnly(Side.CLIENT)
private void suppressSwitchAnimation() {
    Minecraft mc = Minecraft.getMinecraft();
    ItemRenderer renderer = mc.entityRenderer.itemRenderer;
    renderer.updateEquippedItem();
    renderer.equippedProgress = 1;
    renderer.prevEquippedProgress = 1;
}
Also used : ItemRenderer(net.minecraft.client.renderer.ItemRenderer) Minecraft(net.minecraft.client.Minecraft) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Aggregations

SideOnly (cpw.mods.fml.relauncher.SideOnly)1 Minecraft (net.minecraft.client.Minecraft)1 ItemRenderer (net.minecraft.client.renderer.ItemRenderer)1