mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-03 20:41:12 -05:00
917b6adda1
* put parsePacketData in deserializer and createPacketBuffer in serializer * remove packets from the index and expose readPacket instead * load packets when needed in various files * make tests test every supported version static cross version of #234, fix #65, fix #240
22 lines
725 B
JavaScript
22 lines
725 B
JavaScript
var Client = require('./client');
|
|
var Server = require('./server');
|
|
var Yggdrasil = require('./yggdrasil.js');
|
|
var serializer = require("./transforms/serializer");
|
|
var utils = require("./utils");
|
|
var readPackets = require("./packets").readPackets;
|
|
var createClient = require("./createClient");
|
|
var createServer = require("./createServer");
|
|
|
|
module.exports = {
|
|
createClient: createClient,
|
|
createServer: createServer,
|
|
Client: Client,
|
|
Server: Server,
|
|
states: serializer.states,
|
|
createSerializer:serializer.createSerializer,
|
|
createDeserializer:serializer.createDeserializer,
|
|
readPackets:readPackets,
|
|
ping: require('./ping'),
|
|
yggdrasil: Yggdrasil,
|
|
supportedVersions:require("./version").supportedVersions
|
|
};
|