mc-beta-server/server/packets/KeepAlive.ts
2023-04-10 21:52:30 +01:00

17 lines
No EOL
455 B
TypeScript

import { Reader, Writer } from "../../bufferStuff";
import { Packet } from "../enums/Packet";
import { IPacket } from "./IPacket";
export class PacketKeepAlive implements IPacket {
public packetId = Packet.KeepAlive;
private static readonly KeepAliveBuffer:Buffer = new Writer(1).writeByte(Packet.KeepAlive).toBuffer();
public readData(reader:Reader) {
reader;
return this;
}
public writeData() {
return PacketKeepAlive.KeepAliveBuffer;
}
}