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

23 lines
329 B
JavaScript
Raw Normal View History

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() {
}
writePacket(EID = 0) {
super.writePacket();
this.writer.writeLong(this.time);
return this.toBuffer();
}
}
module.exports = Packet4TimeUpdate;