protocol: add UpdateSimulationDistance packet and update IDs

This commit is contained in:
ice_iix 2021-12-24 13:30:30 -08:00
parent 1dc49c7525
commit e5e2c501a4
2 changed files with 21 additions and 16 deletions

View File

@ -2019,6 +2019,10 @@ state_packets!(
field object_name: String =, field object_name: String =,
field value: Option<i32 > = when(|p: &UpdateScore_i32| p.action != 1), field value: Option<i32 > = when(|p: &UpdateScore_i32| p.action != 1),
} }
/// UpdateSimulationDistance is used to set how far the client will process entities.
packet UpdateSimulationDistance {
field simulationDistance: VarInt =,
}
/// SpawnPosition is sent to change the player's current spawn point. Currently /// SpawnPosition is sent to change the player's current spawn point. Currently
/// only used by the client for the compass. /// only used by the client for the compass.
packet SpawnPosition_Angle { packet SpawnPosition_Angle {

View File

@ -145,22 +145,23 @@ protocol_packet_ids!(
0x54 => SetPassengers 0x54 => SetPassengers
0x55 => Teams_VarInt 0x55 => Teams_VarInt
0x56 => UpdateScore 0x56 => UpdateScore
0x57 => TitleSubtitle 0x57 => UpdateSimulationDistance
0x58 => TimeUpdate 0x58 => TitleSubtitle
0x59 => Title 0x59 => TimeUpdate
0x5a => TitleTimes 0x5a => Title
0x5b => EntitySoundEffect 0x5b => TitleTimes
0x5c => SoundEffect 0x5c => EntitySoundEffect
0x5d => StopSound 0x5d => SoundEffect
0x5e => PlayerListHeaderFooter 0x5e => StopSound
0x5f => NBTQueryResponse 0x5f => PlayerListHeaderFooter
0x60 => CollectItem 0x60 => NBTQueryResponse
0x61 => EntityTeleport_f64 0x61 => CollectItem
0x62 => Advancements 0x62 => EntityTeleport_f64
0x63 => EntityProperties_VarIntVarInt 0x63 => Advancements
0x64 => EntityEffect 0x64 => EntityProperties_VarIntVarInt
0x65 => DeclareRecipes 0x65 => EntityEffect
0x66 => Tags_Nested 0x66 => DeclareRecipes
0x67 => Tags_Nested
} }
} }
login Login { login Login {