Skip to content

Commit 02c95ab

Browse files
authored
Create README.md
1 parent 9e01783 commit 02c95ab

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
```

0 commit comments

Comments
 (0)