As I recall, the Satsuma rebellion in 1877 was the last conflict to involve the usage of muskets on the Japanese Isles. The rebels where mainly equipped with British and Russian rifled muskets, while the Imperial troops had Snider-Enfield breech-loading cartridge rifles.