2015-07-26 20:26:36 -04:00
|
|
|
var Client = require('./client');
|
|
|
|
var Server = require('./server');
|
|
|
|
var Yggdrasil = require('./yggdrasil.js');
|
|
|
|
var serializer = require("./transforms/serializer");
|
|
|
|
var utils = require("./utils");
|
|
|
|
var version = require("./version");
|
2015-08-27 07:36:07 -04:00
|
|
|
var packets = require('minecraft-data')(version.majorVersion).protocol.states;
|
2015-05-22 21:31:47 -04:00
|
|
|
var readPackets = require("./packets").readPackets;
|
2015-07-26 20:26:36 -04:00
|
|
|
var packetIndexes = readPackets(packets, serializer.states);
|
|
|
|
var createClient = require("./createClient");
|
|
|
|
var createServer = require("./createServer");
|
2015-05-22 21:31:47 -04:00
|
|
|
|
2013-01-04 21:33:19 -05:00
|
|
|
module.exports = {
|
|
|
|
createClient: createClient,
|
|
|
|
createServer: createServer,
|
|
|
|
Client: Client,
|
|
|
|
Server: Server,
|
2015-07-26 20:26:36 -04:00
|
|
|
states: serializer.states,
|
2015-05-22 21:31:47 -04:00
|
|
|
createPacketBuffer: serializer.createPacketBuffer,
|
|
|
|
parsePacketData: serializer.parsePacketData,
|
|
|
|
packetFields: packetIndexes.packetFields,
|
|
|
|
packetNames: packetIndexes.packetNames,
|
|
|
|
packetIds: packetIndexes.packetIds,
|
|
|
|
packetStates: packetIndexes.packetStates,
|
|
|
|
types: serializer.types,
|
|
|
|
get: serializer.get,
|
2015-03-07 00:00:32 -05:00
|
|
|
ping: require('./ping'),
|
2014-01-10 06:55:16 -05:00
|
|
|
yggdrasil: Yggdrasil,
|
2015-07-26 20:26:36 -04:00
|
|
|
version: version.version,
|
|
|
|
minecraftVersion: version.minecraftVersion
|
2015-03-29 02:24:23 -04:00
|
|
|
};
|