Add Serverbound Confirm Teleportation
This commit is contained in:
1 parent
f111c7881c
commit
a45a43397c
7 files changed
+81
-27
No files matched your search
@@ -3,4 +3,5 @@
|
||||
pub mod config;
|
||||
pub mod handshake;
|
||||
pub mod login;
|
||||
pub mod play;
|
||||
pub mod status;
|
||||
@@ -0,0 +1,15 @@
|
||||
use crate::{ServerPacket, VarInt};
|
||||
|
||||
pub struct SConfirmTeleport {
|
||||
teleport_id: VarInt,
|
||||
}
|
||||
|
||||
impl ServerPacket for SConfirmTeleport {
|
||||
const PACKET_ID: VarInt = 0x00;
|
||||
|
||||
fn read(bytebuf: &mut crate::bytebuf::ByteBuffer) -> Self {
|
||||
Self {
|
||||
teleport_id: bytebuf.get_var_int(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user