mc-beta-server/server/Packets/Packet10Player.js
2021-08-12 04:58:56 +01:00

19 lines
No EOL
304 B
JavaScript

const Packet = require("./Packet.js");
class Packet10Player extends Packet {
constructor(onGround = true) {
super(0x0A);
this.onGround = onGround;
}
writePacket() {
super.writePacket();
this.writer.writeBool(this.onGround);
return this.toBuffer();
}
}
module.exports = Packet10Player;