mc-beta-server/server/Packets/Packet4TimeUpdate.js

30 lines
475 B
JavaScript
Raw Normal View History

2021-08-24 15:29:46 +01:00
/*
========- Packet4TimeUpdate.js -========
Created by Holly (tgpethan) (c) 2021
Licenced under MIT
========================================
*/
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;