/NBStom

A NBS reader and player for Minestom

Primary LanguageJavaMIT LicenseMIT

NBStom

API

NBSSong song = new NBSSong(Path.of("path/to/.nbs"));

// for a player
NBS.play(song, player);
NBS.stop(player);

// for an audience
UUID stopId = UUID.randomUUID();
NBS.play(song, audience, MinecraftServer.getSchedulerManager(), stopId);
NBS.stop(stopId)