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

26 lines
457 B
JavaScript
Raw Permalink Normal View History

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