-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
43 lines (36 loc) · 875 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const MCAPI_PLAYERS = require('./lib/apis/Players')
const MCAPI_MISC = require('./lib/apis/Misc')
const MCAPI_SERVERS = require('./lib/apis/Servers')
const MCAPI_ACCOUNTS = require('./lib/apis/Accounts')
module.exports = class MCAPI {
/**
* @static @attribute players - Methods for players
*/
static get players() {
return MCAPI_PLAYERS
}
/**
* @static @attribute misc - Miscellaneous methods
*/
static get misc() {
return MCAPI_MISC
}
/**
* @static @attribute servers - Methods for servers
*/
static get servers() {
return MCAPI_SERVERS
}
/**
* @static @attribute accounts - Methods for Mojang Accounts
*/
static get accounts() {
return MCAPI_ACCOUNTS
}
/**
* @static @attribute version - Minecraft-js package version
*/
static get version() {
return require("package.json").version
}
}