Do you get the exact same error? What may help would be to put a new line between each function call (so
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Asolin.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
would become:
Minecraft.getMinecraft()
.getRenderItem()
.getItemModelMesher()
.register(item, 0, new ModelResourceLocation(Asolin.MODID + ":" + item.
getUnlocalizedName().
substring(5), "inventory"));
So you can see which function call is throwing an error, rather than just "somewhere in the entire line".