2021-08-15 11:33:08 +01:00
|
|
|
const Packet = require("./Packet.js");
|
|
|
|
|
|
|
|
class Packet4TimeUpdate extends Packet {
|
|
|
|
constructor(time = BigInt(0)) {
|
|
|
|
super(0x04);
|
|
|
|
|
|
|
|
this.time = time;
|
|
|
|
}
|
|
|
|
|
|
|
|
readPacket() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-08-21 09:38:25 +01:00
|
|
|
writePacket() {
|
2021-08-15 11:33:08 +01:00
|
|
|
super.writePacket();
|
|
|
|
|
|
|
|
this.writer.writeLong(this.time);
|
|
|
|
|
|
|
|
return this.toBuffer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Packet4TimeUpdate;
|