File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ # CHNoteBlock
2+ NoteBlockAPI wrapper for CommandHelper
3+
4+ ## Functions
5+
6+ | Function Name | Returns | Arguments | Description |
7+ | ----------------- | ------- | ----------------------------------------- | ----------------------------------------------- |
8+ | all_nbsongs | array | | Returns all of loaded noteblock songs |
9+ | load_nbsong_async | void | id, path[ , successCallback, failCallback] | Load the song |
10+ | play_nbsong | void | player, playData | Play the song |
11+ | unload_nbsong | bool | id | Unload the song of the given id. |
12+
13+ ## Examples
14+
15+ ``` javascript
16+ load_nbsong_async (' song-id' , ' path' , closure () {
17+ play_nbsong (player (), array (
18+ id: ' song-id' ,
19+ type: position,
20+ location: ploc (player ()),
21+ players: all_players ()
22+ ))
23+ })
24+ ```
You can’t perform that action at this time.
0 commit comments