Add Explosion_VarInt packet variant

This commit is contained in:
ice_iix 2021-09-04 17:36:53 -07:00
parent 05faeee083
commit 1982431991
21 changed files with 31 additions and 21 deletions

View File

@ -1045,7 +1045,17 @@ state_packets!(
}
/// Explosion is sent when an explosion is triggered (tnt, creeper etc).
/// This plays the effect and removes the effected blocks.
packet Explosion {
packet Explosion_VarInt {
field x: f32 =,
field y: f32 =,
field z: f32 =,
field radius: f32 =,
field records: LenPrefixed<VarInt, packet::ExplosionRecord> =,
field velocity_x: f32 =,
field velocity_y: f32 =,
field velocity_z: f32 =,
}
packet Explosion_i32 {
field x: f32 =,
field y: f32 =,
field z: f32 =,

View File

@ -64,7 +64,7 @@ protocol_packet_ids!(
0x18 => PluginMessageClientbound
0x19 => Disconnect
0x1a => EntityAction
0x1b => Explosion
0x1b => Explosion_i32
0x1c => ChunkUnload
0x1d => SetCompression
0x1e => ChangeGameState

View File

@ -83,7 +83,7 @@ protocol_packet_ids!(
0x1b => Disconnect
0x1c => EntityAction
0x1d => NBTQueryResponse
0x1e => Explosion
0x1e => Explosion_i32
0x1f => ChunkUnload
0x20 => ChangeGameState
0x21 => KeepAliveClientbound_i64

View File

@ -83,7 +83,7 @@ protocol_packet_ids!(
0x1b => Disconnect
0x1c => EntityAction
0x1d => NBTQueryResponse
0x1e => Explosion
0x1e => Explosion_i32
0x1f => ChunkUnload
0x20 => ChangeGameState
0x21 => KeepAliveClientbound_i64

View File

@ -68,7 +68,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => KeepAliveClientbound_VarInt

View File

@ -68,7 +68,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => KeepAliveClientbound_VarInt

View File

@ -71,7 +71,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => KeepAliveClientbound_i64

View File

@ -83,7 +83,7 @@ protocol_packet_ids!(
0x1b => Disconnect
0x1c => EntityAction
0x1d => NBTQueryResponse
0x1e => Explosion
0x1e => Explosion_i32
0x1f => ChunkUnload
0x20 => ChangeGameState
0x21 => KeepAliveClientbound_i64

View File

@ -84,7 +84,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => WindowOpenHorse

View File

@ -84,7 +84,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => WindowOpenHorse

View File

@ -84,7 +84,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => WindowOpenHorse

View File

@ -84,7 +84,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => WindowOpenHorse

View File

@ -84,7 +84,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => WindowOpenHorse

View File

@ -85,7 +85,7 @@ protocol_packet_ids!(
0x1a => NamedSoundEffect
0x1b => Disconnect
0x1c => EntityAction
0x1d => Explosion
0x1d => Explosion_i32
0x1e => ChunkUnload
0x1f => ChangeGameState
0x20 => WindowOpenHorse

View File

@ -85,7 +85,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => WindowOpenHorse

View File

@ -85,7 +85,7 @@ protocol_packet_ids!(
0x18 => NamedSoundEffect
0x19 => Disconnect
0x1a => EntityAction
0x1b => Explosion
0x1b => Explosion_i32
0x1c => ChunkUnload
0x1d => ChangeGameState
0x1e => WindowOpenHorse

View File

@ -86,7 +86,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_VarInt
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => WindowOpenHorse

View File

@ -73,7 +73,7 @@ protocol_packet_ids!(
0x24 => BlockAction_u16
0x25 => BlockBreakAnimation_i32
0x26 => ChunkDataBulk_17
0x27 => Explosion
0x27 => Explosion_i32
0x28 => Effect_u8y
0x29 => NamedSoundEffect_u8_NoCategory
0x2a => Particle_Named

View File

@ -75,7 +75,7 @@ protocol_packet_ids!(
0x24 => BlockAction
0x25 => BlockBreakAnimation
0x26 => ChunkDataBulk
0x27 => Explosion
0x27 => Explosion_i32
0x28 => Effect
0x29 => NamedSoundEffect_u8_NoCategory
0x2a => Particle_VarIntArray

View File

@ -68,7 +68,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect_u8
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => KeepAliveClientbound_VarInt

View File

@ -68,7 +68,7 @@ protocol_packet_ids!(
0x19 => NamedSoundEffect_u8
0x1a => Disconnect
0x1b => EntityAction
0x1c => Explosion
0x1c => Explosion_i32
0x1d => ChunkUnload
0x1e => ChangeGameState
0x1f => KeepAliveClientbound_VarInt