mc-beta-server/server/packets/IPacket.ts

8 lines
No EOL
210 B
TypeScript

import { IReader } from "bufferstuff";
import { Packet } from "../enums/Packet";
export interface IPacket {
packetId: Packet,
readData: (reader:IReader) => IPacket,
writeData: () => Buffer|Promise<Buffer>
}