mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-14 07:10:24 -04:00
minor API update
* move constants.STRING_MAX_LENGTH -> protocol.STRING_MAX_LENGTH * expose protocol.version * expose protocol.minecraftVersion * expose protocol.sessionVerson * expose protocol.parsePacket * expose protocol.createPacketBuffer
This commit is contained in:
parent
1fb0577fd9
commit
5f769caebc
2 changed files with 2 additions and 4 deletions
2
index.js
2
index.js
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
Client: Client,
|
||||
Server: Server,
|
||||
ping: require('./lib/ping'),
|
||||
constants: protocol.constants,
|
||||
protocol: protocol,
|
||||
};
|
||||
|
||||
function createServer(options) {
|
||||
|
|
|
@ -8,9 +8,7 @@ module.exports = {
|
|||
sessionVersion: 13,
|
||||
parsePacket: parsePacket,
|
||||
createPacketBuffer: createPacketBuffer,
|
||||
constants: {
|
||||
STRING_MAX_LENGTH: STRING_MAX_LENGTH,
|
||||
},
|
||||
STRING_MAX_LENGTH: STRING_MAX_LENGTH,
|
||||
};
|
||||
|
||||
var packets = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue