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还在写,暂时用不了
 

在线会员

  • Good67gg
  • 爱玩游戏的谢飞
  • mc_xiaoQAQ_
  • Xuezl
  • 我来诠释手法
  • xiaozhi_Cc
  • Pemdow
  • 阿侬
  • shupianjun
  • 小莓子
  • TheJcc_
  • 6666))
  • nsoer
  • 林大杠
  • lzy12345
  • gaowenbo
  • Cookiesquqi
  • 树树
  • 3092107353
  • 卖饼翁
...和 8 更多。
后退
顶部 底部