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;
}
Aggregations