mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 13:45:37 -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
index.js
2
index.js
@ -15,7 +15,7 @@ module.exports = {
|
|||||||
Client: Client,
|
Client: Client,
|
||||||
Server: Server,
|
Server: Server,
|
||||||
ping: require('./lib/ping'),
|
ping: require('./lib/ping'),
|
||||||
constants: protocol.constants,
|
protocol: protocol,
|
||||||
};
|
};
|
||||||
|
|
||||||
function createServer(options) {
|
function createServer(options) {
|
||||||
|
@ -8,9 +8,7 @@ module.exports = {
|
|||||||
sessionVersion: 13,
|
sessionVersion: 13,
|
||||||
parsePacket: parsePacket,
|
parsePacket: parsePacket,
|
||||||
createPacketBuffer: createPacketBuffer,
|
createPacketBuffer: createPacketBuffer,
|
||||||
constants: {
|
STRING_MAX_LENGTH: STRING_MAX_LENGTH,
|
||||||
STRING_MAX_LENGTH: STRING_MAX_LENGTH,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var packets = {
|
var packets = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user