Create provider for map different than the defaults one

I have my own tile server that serves png tiles.
For example My address is:
http://192.168.2.25:3500/{z}/{x}/{y}.png this format is very similar to OpenStreetMap tiles server. So I was checking how OpenStreetMapProvider was implemeneted and I saw that the class is using a const address to OpenStreetMap. The rational option is to implement A new provider class that have my ip address as it const Ip address and devired from the provider i mentioned up above. I was wondering if this solution is good enough or maybe there is another easy and fast solution.

If this is the best solution then… how can I make use of this class as a new provider to the current providers that appears in the list of map providers.

have a look at providing your tiles as WMS tiles. this will save a lot of work

MP supports WMS atm with no changes