mc-beta-server/server/Packets/Packet4TimeUpdate.js
2021-08-21 09:38:25 +01:00

23 lines
No EOL
322 B
JavaScript

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