mc-beta-server/server/PacketMappingTable.js

31 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-08-12 04:58:56 +01:00
const Packet0KeepAlive = require("./Packets/Packet0KeepAlive.js"),
Packet1LoginRequest = require("./Packets/Packet1LoginRequest.js"),
Packet2Handshake = require("./Packets/Packet2Handshake.js"),
Packet3Chat = require("./Packets/Packet3Chat.js"),
2021-08-15 11:33:08 +01:00
Packet4TimeUpdate = require("./Packets/Packet4TimeUpdate"),
2021-08-12 04:58:56 +01:00
Packet6SpawnPosition = require("./Packets/Packet6SpawnPosition.js"),
Packet10Player = require("./Packets/Packet10Player.js"),
Packet13PlayerPositionAndLook = require("./Packets/Packet13PlayerPositionAndLook.js"),
2021-08-20 22:42:00 +01:00
Packet18Animation = require("./Packets/Packet18Animation.js"),
Packet20NamedEntitySpawn = require("./Packets/Packet20NamedEntitySpawn.js"),
2021-08-12 04:58:56 +01:00
Packet50PreChunk = require("./Packets/Packet50PreChunk.js"),
2021-08-20 22:42:00 +01:00
Packet53BlockChange = require("./Packets/Packet53BlockChange.js"),
Packet103SetSlot = require("./Packets/Packet103SetSlot.js");
2021-08-12 04:58:56 +01:00
const mappingTable = {
0x00: Packet0KeepAlive,
0x01: Packet1LoginRequest,
0x02: Packet2Handshake,
0x03: Packet3Chat,
2021-08-15 11:33:08 +01:00
0x04: Packet4TimeUpdate,
2021-08-12 04:58:56 +01:00
0x06: Packet6SpawnPosition,
0x0A: Packet10Player,
0x0D: Packet13PlayerPositionAndLook,
2021-08-20 22:42:00 +01:00
0x12: Packet18Animation,
0x14: Packet20NamedEntitySpawn,
2021-08-12 04:58:56 +01:00
0x32: Packet50PreChunk,
0x35: Packet53BlockChange,
2021-08-20 22:42:00 +01:00
0x67: Packet103SetSlot
2021-08-12 04:58:56 +01:00
};
module.exports = mappingTable;