23 lines
329 B
JavaScript
23 lines
329 B
JavaScript
|
const Packet = require("./Packet.js");
|
||
|
|
||
|
class Packet4TimeUpdate extends Packet {
|
||
|
constructor(time = BigInt(0)) {
|
||
|
super(0x04);
|
||
|
|
||
|
this.time = time;
|
||
|
}
|
||
|
|
||
|
readPacket() {
|
||
|
|
||
|
}
|
||
|
|
||
|
writePacket(EID = 0) {
|
||
|
super.writePacket();
|
||
|
|
||
|
this.writer.writeLong(this.time);
|
||
|
|
||
|
return this.toBuffer();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = Packet4TimeUpdate;
|