Add new GenerateStructure packet

This commit is contained in:
ice_iix 2020-06-27 17:44:52 -07:00
parent 65d9966ef7
commit 4d12c78f89
2 changed files with 7 additions and 1 deletions

View File

@ -207,6 +207,12 @@ state_packets!(
field target_id: i32 =,
field ty: u8 =,
}
/// Sent when Generate is pressed on the Jigsaw Block interface.
packet GenerateStructure {
field location: Position =,
field levels: VarInt =,
field keep_jigsaws: bool =,
}
/// KeepAliveServerbound is sent by a client as a response to a
/// KeepAliveClientbound. If the client doesn't reply the server
/// may disconnect the client.

View File

@ -23,7 +23,7 @@ protocol_packet_ids!(
0x0c => EditBook
0x0d => QueryEntityNBT
0x0e => UseEntity_Sneakflag
//0x0f => GenerateStructure // TODO
0x0f => GenerateStructure
0x10 => KeepAliveServerbound_i64
0x11 => LockDifficulty
0x12 => PlayerPosition