NoteBlockApi[全版本](附播放nbs文件的插件)

服务端插件 NoteBlockApi[全版本](附播放nbs文件的插件) 1.9.0

完成注册/登录后下载
Nukkit上使用NoteBlockAPI请去BlocklyNukkit,已经内置了NoteBlockAPI,可直接供nukkit开发者实例化调用
 
Nukkit上使用NoteBlockAPI请去BlocklyNukkit,已经内置了NoteBlockAPI,可直接供nukkit开发者实例化调用
这个是Java版的bukkit插件不是nukkit插件
 
Java:
//Step 1/2:
//add this line to your plugin.yml:
depend: [NoteBlockAPI]

//Step 1:
//Parse a .nbs file
Song s = NBSDecoder.parse(new File(getDataFolder(), "Song.nbs"));
//or
Song s = NBSDecoder.parse(new File("/plugins/myplugin/Song.nbs"));

//Step 2:
//Create a player for the song
SongPlayer sp = new RadioSongPlayer(s);

//Step 3:
//define if the song should end when no one listens to it
sp.setAutoDestroy(true);

//Step 4:
//Add players to Song
sp.addPlayer(e.getPlayer());

//Step 5:
//Play song
sp.setPlaying(true);
用 code框写最下面的调用方法应该更好吧))
 
JzkKZq.md.png
可以这样然后获得下载连接,然后直接连接到下载√
但是这样就不能很好的去用bbs的更新功能,
那可以在File里面获取每一个文件的下载地址~
JzkbOs.md.png
 
这个block的翻译geyser还在写,暂时用不了
 

在线会员

  • xiaohanxin
  • KissTheSky
  • Anzzoox
  • mgxfxk
  • dadhawd
  • uuih
  • 学画
  • Shepred_T
  • 太阳_Sol
  • Kik
  • wsws789
  • ge-集权
  • poob
  • minecraft-小u
  • Fly_away
  • littlelittlekai
  • 2374648289
  • skywalkeriron100309
  • 运算051
  • 蛋壳
  • 猫导CatirD
...和 16 更多。
后退
顶部 底部