Add new GenerateStructure packet
This commit is contained in:
parent
65d9966ef7
commit
4d12c78f89
|
@ -207,6 +207,12 @@ state_packets!(
|
||||||
field target_id: i32 =,
|
field target_id: i32 =,
|
||||||
field ty: u8 =,
|
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
|
/// KeepAliveServerbound is sent by a client as a response to a
|
||||||
/// KeepAliveClientbound. If the client doesn't reply the server
|
/// KeepAliveClientbound. If the client doesn't reply the server
|
||||||
/// may disconnect the client.
|
/// may disconnect the client.
|
||||||
|
|
|
@ -23,7 +23,7 @@ protocol_packet_ids!(
|
||||||
0x0c => EditBook
|
0x0c => EditBook
|
||||||
0x0d => QueryEntityNBT
|
0x0d => QueryEntityNBT
|
||||||
0x0e => UseEntity_Sneakflag
|
0x0e => UseEntity_Sneakflag
|
||||||
//0x0f => GenerateStructure // TODO
|
0x0f => GenerateStructure
|
||||||
0x10 => KeepAliveServerbound_i64
|
0x10 => KeepAliveServerbound_i64
|
||||||
0x11 => LockDifficulty
|
0x11 => LockDifficulty
|
||||||
0x12 => PlayerPosition
|
0x12 => PlayerPosition
|
||||||
|
|
Loading…
Reference in New Issue