1.18.2 protocol (758) (#706)
Minor protocol update https://minecraft.fandom.com/wiki/Java_Edition_1.18.2 https://wiki.vg/index.php?title=Protocol&oldid=17499 1.18.2 (758) https://wiki.vg/index.php?title=Protocol&diff=17499&oldid=17341 1.18.1 (757) vs 1.18.2 (758) * Add EntityRemoveEffect_VarInt, split i8 variant * Add UpdateScore_VarInt, split u8 variant * Add EntityEffect_VarInt, split i8 variant
This commit is contained in:
parent
adb71c7caa
commit
069a3915bd
|
@ -24,6 +24,7 @@ Discussion forum: [https://github.com/iceiix/stevenarella/discussions](https://g
|
|||
|
||||
| Game version | Protocol version | Supported? |
|
||||
| ------ | --- | --- |
|
||||
| 1.18.2 | 758 | ✓ |
|
||||
| 1.18.1 | 757 | ✓ |
|
||||
| 1.17.1 | 756 | ✓ |
|
||||
| 1.16.5 | 754 | ✓ |
|
||||
|
|
|
@ -39,9 +39,9 @@ use std::io::{Read, Write};
|
|||
use std::net::TcpStream;
|
||||
use std::sync::atomic::{AtomicBool, AtomicI32, Ordering};
|
||||
|
||||
pub const SUPPORTED_PROTOCOLS: [i32; 26] = [
|
||||
757, 756, 754, 753, 751, 736, 735, 578, 575, 498, 490, 485, 480, 477, 452, 451, 404, 340, 316,
|
||||
315, 210, 109, 107, 74, 47, 5,
|
||||
pub const SUPPORTED_PROTOCOLS: [i32; 27] = [
|
||||
758, 757, 756, 754, 753, 751, 736, 735, 578, 575, 498, 490, 485, 480, 477, 452, 451, 404, 340,
|
||||
316, 315, 210, 109, 107, 74, 47, 5,
|
||||
];
|
||||
|
||||
static CURRENT_PROTOCOL_VERSION: AtomicI32 = AtomicI32::new(SUPPORTED_PROTOCOLS[0]);
|
||||
|
|
|
@ -1796,7 +1796,11 @@ state_packets!(
|
|||
field entity_ids: LenPrefixed<u8, i32> =,
|
||||
}
|
||||
/// EntityRemoveEffect removes an effect from an entity.
|
||||
packet EntityRemoveEffect {
|
||||
packet EntityRemoveEffect_VarInt {
|
||||
field entity_id: VarInt =,
|
||||
field effect_id: VarInt =,
|
||||
}
|
||||
packet EntityRemoveEffect_i8 {
|
||||
field entity_id: VarInt =,
|
||||
field effect_id: i8 =,
|
||||
}
|
||||
|
@ -2062,17 +2066,23 @@ state_packets!(
|
|||
}
|
||||
/// UpdateScore is used to update or remove an item from a scoreboard
|
||||
/// objective.
|
||||
packet UpdateScore {
|
||||
packet UpdateScore_VarInt {
|
||||
field name: String =,
|
||||
field action: VarInt =,
|
||||
field object_name: String =,
|
||||
field value: Option<VarInt> = when(|p: &UpdateScore_VarInt| p.action.0 != 1),
|
||||
}
|
||||
packet UpdateScore_u8 {
|
||||
field name: String =,
|
||||
field action: u8 =,
|
||||
field object_name: String =,
|
||||
field value: Option<VarInt> = when(|p: &UpdateScore| p.action != 1),
|
||||
field value: Option<VarInt> = when(|p: &UpdateScore_u8| p.action != 1),
|
||||
}
|
||||
packet UpdateScore_i32 {
|
||||
field name: String =,
|
||||
field action: u8 =,
|
||||
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 {
|
||||
|
@ -2255,7 +2265,14 @@ state_packets!(
|
|||
field properties: LenPrefixed<i32, packet::EntityProperty_i16> =,
|
||||
}
|
||||
/// EntityEffect applies a status effect to an entity for a given duration.
|
||||
packet EntityEffect {
|
||||
packet EntityEffect_VarInt {
|
||||
field entity_id: VarInt =,
|
||||
field effect_id: VarInt =,
|
||||
field amplifier: i8 =,
|
||||
field duration: VarInt =,
|
||||
field hide_particles: bool =,
|
||||
}
|
||||
packet EntityEffect_i8 {
|
||||
field entity_id: VarInt =,
|
||||
field effect_id: i8 =,
|
||||
field amplifier: i8 =,
|
||||
|
|
|
@ -17,6 +17,7 @@ mod v1_16_1;
|
|||
mod v1_16_4;
|
||||
mod v1_17_1;
|
||||
mod v1_18_1;
|
||||
mod v1_18_2;
|
||||
mod v1_7_10;
|
||||
mod v1_8_9;
|
||||
mod v1_9;
|
||||
|
@ -28,6 +29,7 @@ mod v1_9_2;
|
|||
pub fn protocol_name_to_protocol_version(s: String) -> i32 {
|
||||
match s.as_ref() {
|
||||
"" => SUPPORTED_PROTOCOLS[0],
|
||||
"1.18.2" => 758,
|
||||
"1.18.1" => 757,
|
||||
"1.17.1" => 756,
|
||||
"1.16.5" => 754,
|
||||
|
@ -73,6 +75,7 @@ pub fn translate_internal_packet_id_for_version(
|
|||
to_internal: bool,
|
||||
) -> i32 {
|
||||
match version {
|
||||
758 => v1_18_2::translate_internal_packet_id(state, dir, id, to_internal),
|
||||
757 => v1_18_1::translate_internal_packet_id(state, dir, id, to_internal),
|
||||
756 => v1_17_1::translate_internal_packet_id(state, dir, id, to_internal),
|
||||
754 | 753 | 751 => v1_16_4::translate_internal_packet_id(state, dir, id, to_internal),
|
||||
|
|
|
@ -86,7 +86,7 @@ protocol_packet_ids!(
|
|||
0x2e => TeleportPlayer_NoConfirm
|
||||
0x2f => EntityUsedBed
|
||||
0x30 => EntityDestroy
|
||||
0x31 => EntityRemoveEffect
|
||||
0x31 => EntityRemoveEffect_i8
|
||||
0x32 => ResourcePackSend
|
||||
0x33 => Respawn_Gamemode
|
||||
0x34 => EntityHeadLook
|
||||
|
@ -102,7 +102,7 @@ protocol_packet_ids!(
|
|||
0x3e => UpdateHealth
|
||||
0x3f => ScoreboardObjective
|
||||
0x40 => Teams_u8
|
||||
0x41 => UpdateScore
|
||||
0x41 => UpdateScore_u8
|
||||
0x42 => SpawnPosition_NoAngle
|
||||
0x43 => TimeUpdate
|
||||
0x44 => Title_notext_component
|
||||
|
@ -111,7 +111,7 @@ protocol_packet_ids!(
|
|||
0x47 => CollectItem_nocount
|
||||
0x48 => EntityTeleport_i32
|
||||
0x49 => EntityProperties_VarInt
|
||||
0x4a => EntityEffect
|
||||
0x4a => EntityEffect_i8
|
||||
}
|
||||
}
|
||||
login Login {
|
||||
|
|
|
@ -108,7 +108,7 @@ protocol_packet_ids!(
|
|||
0x34 => EntityUsedBed
|
||||
0x35 => UnlockRecipes_WithSmelting
|
||||
0x36 => EntityDestroy
|
||||
0x37 => EntityRemoveEffect
|
||||
0x37 => EntityRemoveEffect_i8
|
||||
0x38 => ResourcePackSend
|
||||
0x39 => Respawn_Gamemode
|
||||
0x3a => EntityHeadLook
|
||||
|
@ -126,7 +126,7 @@ protocol_packet_ids!(
|
|||
0x46 => ScoreboardObjective
|
||||
0x47 => SetPassengers
|
||||
0x48 => Teams_u8
|
||||
0x49 => UpdateScore
|
||||
0x49 => UpdateScore_u8
|
||||
0x4a => SpawnPosition_NoAngle
|
||||
0x4b => TimeUpdate
|
||||
0x4d => StopSound
|
||||
|
@ -137,7 +137,7 @@ protocol_packet_ids!(
|
|||
0x52 => EntityTeleport_f64
|
||||
0x53 => Advancements
|
||||
0x54 => EntityProperties_VarInt
|
||||
0x55 => EntityEffect
|
||||
0x55 => EntityEffect_i8
|
||||
0x56 => DeclareRecipes
|
||||
0x57 => Tags_WithEntities
|
||||
0x58 => UpdateLight_NoTrust
|
||||
|
|
|
@ -108,7 +108,7 @@ protocol_packet_ids!(
|
|||
0x34 => EntityUsedBed
|
||||
0x35 => UnlockRecipes_WithSmelting
|
||||
0x36 => EntityDestroy
|
||||
0x37 => EntityRemoveEffect
|
||||
0x37 => EntityRemoveEffect_i8
|
||||
0x38 => ResourcePackSend
|
||||
0x39 => Respawn_Gamemode
|
||||
0x3a => EntityHeadLook
|
||||
|
@ -126,7 +126,7 @@ protocol_packet_ids!(
|
|||
0x46 => ScoreboardObjective
|
||||
0x47 => SetPassengers
|
||||
0x48 => Teams_u8
|
||||
0x49 => UpdateScore
|
||||
0x49 => UpdateScore_u8
|
||||
0x4a => SpawnPosition_NoAngle
|
||||
0x4b => TimeUpdate
|
||||
0x4d => StopSound
|
||||
|
@ -137,7 +137,7 @@ protocol_packet_ids!(
|
|||
0x52 => EntityTeleport_f64
|
||||
0x53 => Advancements
|
||||
0x54 => EntityProperties_VarInt
|
||||
0x55 => EntityEffect
|
||||
0x55 => EntityEffect_i8
|
||||
0x56 => DeclareRecipes
|
||||
0x57 => Tags_WithEntities
|
||||
0x58 => UpdateLight_NoTrust
|
||||
|
|
|
@ -89,7 +89,7 @@ protocol_packet_ids!(
|
|||
0x2e => TeleportPlayer_WithConfirm
|
||||
0x2f => EntityUsedBed
|
||||
0x30 => EntityDestroy
|
||||
0x31 => EntityRemoveEffect
|
||||
0x31 => EntityRemoveEffect_i8
|
||||
0x32 => ResourcePackSend
|
||||
0x33 => Respawn_Gamemode
|
||||
0x34 => EntityHeadLook
|
||||
|
@ -106,7 +106,7 @@ protocol_packet_ids!(
|
|||
0x3f => ScoreboardObjective
|
||||
0x40 => SetPassengers
|
||||
0x41 => Teams_u8
|
||||
0x42 => UpdateScore
|
||||
0x42 => UpdateScore_u8
|
||||
0x43 => SpawnPosition_NoAngle
|
||||
0x44 => TimeUpdate
|
||||
0x45 => Title_notext
|
||||
|
@ -115,7 +115,7 @@ protocol_packet_ids!(
|
|||
0x48 => CollectItem_nocount
|
||||
0x49 => EntityTeleport_f64
|
||||
0x4a => EntityProperties_VarInt
|
||||
0x4b => EntityEffect
|
||||
0x4b => EntityEffect_i8
|
||||
}
|
||||
}
|
||||
login Login {
|
||||
|
|
|
@ -89,7 +89,7 @@ protocol_packet_ids!(
|
|||
0x2e => TeleportPlayer_WithConfirm
|
||||
0x2f => EntityUsedBed
|
||||
0x30 => EntityDestroy
|
||||
0x31 => EntityRemoveEffect
|
||||
0x31 => EntityRemoveEffect_i8
|
||||
0x32 => ResourcePackSend
|
||||
0x33 => Respawn_Gamemode
|
||||
0x34 => EntityHeadLook
|
||||
|
@ -106,7 +106,7 @@ protocol_packet_ids!(
|
|||
0x3f => ScoreboardObjective
|
||||
0x40 => SetPassengers
|
||||
0x41 => Teams_u8
|
||||
0x42 => UpdateScore
|
||||
0x42 => UpdateScore_u8
|
||||
0x43 => SpawnPosition_NoAngle
|
||||
0x44 => TimeUpdate
|
||||
0x45 => Title
|
||||
|
@ -115,7 +115,7 @@ protocol_packet_ids!(
|
|||
0x48 => CollectItem
|
||||
0x49 => EntityTeleport_f64
|
||||
0x4a => EntityProperties_VarInt
|
||||
0x4b => EntityEffect
|
||||
0x4b => EntityEffect_i8
|
||||
}
|
||||
}
|
||||
login Login {
|
||||
|
|
|
@ -94,7 +94,7 @@ protocol_packet_ids!(
|
|||
0x30 => EntityUsedBed
|
||||
0x31 => UnlockRecipes_NoSmelting
|
||||
0x32 => EntityDestroy
|
||||
0x33 => EntityRemoveEffect
|
||||
0x33 => EntityRemoveEffect_i8
|
||||
0x34 => ResourcePackSend
|
||||
0x35 => Respawn_Gamemode
|
||||
0x36 => EntityHeadLook
|
||||
|
@ -112,7 +112,7 @@ protocol_packet_ids!(
|
|||
0x42 => ScoreboardObjective
|
||||
0x43 => SetPassengers
|
||||
0x44 => Teams_u8
|
||||
0x45 => UpdateScore
|
||||
0x45 => UpdateScore_u8
|
||||
0x46 => SpawnPosition_NoAngle
|
||||
0x47 => TimeUpdate
|
||||
0x48 => Title
|
||||
|
@ -122,7 +122,7 @@ protocol_packet_ids!(
|
|||
0x4c => EntityTeleport_f64
|
||||
0x4d => Advancements
|
||||
0x4e => EntityProperties_VarInt
|
||||
0x4f => EntityEffect
|
||||
0x4f => EntityEffect_i8
|
||||
}
|
||||
}
|
||||
login Login {
|
||||
|
|
|
@ -107,7 +107,7 @@ protocol_packet_ids!(
|
|||
0x33 => EntityUsedBed
|
||||
0x34 => UnlockRecipes_WithSmelting
|
||||
0x35 => EntityDestroy
|
||||
0x36 => EntityRemoveEffect
|
||||
0x36 => EntityRemoveEffect_i8
|
||||
0x37 => ResourcePackSend
|
||||
0x38 => Respawn_Gamemode
|
||||
0x39 => EntityHeadLook
|
||||
|
@ -125,7 +125,7 @@ protocol_packet_ids!(
|
|||
0x45 => ScoreboardObjective
|
||||
0x46 => SetPassengers
|
||||
0x47 => Teams_VarInt
|
||||
0x48 => UpdateScore
|
||||
0x48 => UpdateScore_u8
|
||||
0x49 => SpawnPosition_NoAngle
|
||||
0x4a => TimeUpdate
|
||||
0x4c => StopSound
|
||||
|
@ -135,7 +135,7 @@ protocol_packet_ids!(
|
|||
0x50 => EntityTeleport_f64
|
||||
0x51 => Advancements
|
||||
0x52 => EntityProperties_VarInt
|
||||
0x53 => EntityEffect
|
||||
0x53 => EntityEffect_i8
|
||||
0x54 => DeclareRecipes
|
||||
0x55 => Tags
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ protocol_packet_ids!(
|
|||
0x35 => TeleportPlayer_WithConfirm
|
||||
0x36 => UnlockRecipes_WithSmelting
|
||||
0x37 => EntityDestroy
|
||||
0x38 => EntityRemoveEffect
|
||||
0x38 => EntityRemoveEffect_i8
|
||||
0x39 => ResourcePackSend
|
||||
0x3a => Respawn_Gamemode
|
||||
0x3b => EntityHeadLook
|
||||
|
@ -132,7 +132,7 @@ protocol_packet_ids!(
|
|||
0x49 => ScoreboardObjective
|
||||
0x4a => SetPassengers
|
||||
0x4b => Teams_VarInt
|
||||
0x4c => UpdateScore
|
||||
0x4c => UpdateScore_u8
|
||||
0x4d => SpawnPosition_NoAngle
|
||||
0x4e => TimeUpdate
|
||||
0x4f => Title
|
||||
|
@ -145,7 +145,7 @@ protocol_packet_ids!(
|
|||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x59 => EntityEffect_i8
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => Tags_WithEntities
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ protocol_packet_ids!(
|
|||
0x35 => TeleportPlayer_WithConfirm
|
||||
0x36 => UnlockRecipes_WithSmelting
|
||||
0x37 => EntityDestroy
|
||||
0x38 => EntityRemoveEffect
|
||||
0x38 => EntityRemoveEffect_i8
|
||||
0x39 => ResourcePackSend
|
||||
0x3a => Respawn_Gamemode
|
||||
0x3b => EntityHeadLook
|
||||
|
@ -132,7 +132,7 @@ protocol_packet_ids!(
|
|||
0x49 => ScoreboardObjective
|
||||
0x4a => SetPassengers
|
||||
0x4b => Teams_VarInt
|
||||
0x4c => UpdateScore
|
||||
0x4c => UpdateScore_u8
|
||||
0x4d => SpawnPosition_NoAngle
|
||||
0x4e => TimeUpdate
|
||||
0x4f => Title
|
||||
|
@ -145,7 +145,7 @@ protocol_packet_ids!(
|
|||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x59 => EntityEffect_i8
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => Tags_WithEntities
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ protocol_packet_ids!(
|
|||
0x35 => TeleportPlayer_WithConfirm
|
||||
0x36 => UnlockRecipes_WithSmelting
|
||||
0x37 => EntityDestroy
|
||||
0x38 => EntityRemoveEffect
|
||||
0x38 => EntityRemoveEffect_i8
|
||||
0x39 => ResourcePackSend
|
||||
0x3a => Respawn_Gamemode
|
||||
0x3b => EntityHeadLook
|
||||
|
@ -132,7 +132,7 @@ protocol_packet_ids!(
|
|||
0x49 => ScoreboardObjective
|
||||
0x4a => SetPassengers
|
||||
0x4b => Teams_VarInt
|
||||
0x4c => UpdateScore
|
||||
0x4c => UpdateScore_u8
|
||||
0x4d => SpawnPosition_NoAngle
|
||||
0x4e => TimeUpdate
|
||||
0x4f => Title
|
||||
|
@ -145,7 +145,7 @@ protocol_packet_ids!(
|
|||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x59 => EntityEffect_i8
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => Tags_WithEntities
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ protocol_packet_ids!(
|
|||
0x35 => TeleportPlayer_WithConfirm
|
||||
0x36 => UnlockRecipes_WithSmelting
|
||||
0x37 => EntityDestroy
|
||||
0x38 => EntityRemoveEffect
|
||||
0x38 => EntityRemoveEffect_i8
|
||||
0x39 => ResourcePackSend
|
||||
0x3a => Respawn_Gamemode
|
||||
0x3b => EntityHeadLook
|
||||
|
@ -132,7 +132,7 @@ protocol_packet_ids!(
|
|||
0x49 => ScoreboardObjective
|
||||
0x4a => SetPassengers
|
||||
0x4b => Teams_VarInt
|
||||
0x4c => UpdateScore
|
||||
0x4c => UpdateScore_u8
|
||||
0x4d => SpawnPosition_NoAngle
|
||||
0x4e => TimeUpdate
|
||||
0x4f => Title
|
||||
|
@ -145,7 +145,7 @@ protocol_packet_ids!(
|
|||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x59 => EntityEffect_i8
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => Tags_WithEntities
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ protocol_packet_ids!(
|
|||
0x35 => TeleportPlayer_WithConfirm
|
||||
0x36 => UnlockRecipes_WithSmelting
|
||||
0x37 => EntityDestroy
|
||||
0x38 => EntityRemoveEffect
|
||||
0x38 => EntityRemoveEffect_i8
|
||||
0x39 => ResourcePackSend
|
||||
0x3a => Respawn_Gamemode
|
||||
0x3b => EntityHeadLook
|
||||
|
@ -132,7 +132,7 @@ protocol_packet_ids!(
|
|||
0x49 => ScoreboardObjective
|
||||
0x4a => SetPassengers
|
||||
0x4b => Teams_VarInt
|
||||
0x4c => UpdateScore
|
||||
0x4c => UpdateScore_u8
|
||||
0x4d => SpawnPosition_NoAngle
|
||||
0x4e => TimeUpdate
|
||||
0x4f => Title
|
||||
|
@ -145,7 +145,7 @@ protocol_packet_ids!(
|
|||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x59 => EntityEffect_i8
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => Tags_WithEntities
|
||||
0x5c => AcknowledgePlayerDigging
|
||||
|
|
|
@ -113,7 +113,7 @@ protocol_packet_ids!(
|
|||
0x36 => TeleportPlayer_WithConfirm
|
||||
0x37 => UnlockRecipes_WithSmelting
|
||||
0x38 => EntityDestroy
|
||||
0x39 => EntityRemoveEffect
|
||||
0x39 => EntityRemoveEffect_i8
|
||||
0x3a => ResourcePackSend
|
||||
0x3b => Respawn_HashedSeed
|
||||
0x3c => EntityHeadLook
|
||||
|
@ -133,7 +133,7 @@ protocol_packet_ids!(
|
|||
0x4a => ScoreboardObjective
|
||||
0x4b => SetPassengers
|
||||
0x4c => Teams_VarInt
|
||||
0x4d => UpdateScore
|
||||
0x4d => UpdateScore_u8
|
||||
0x4e => SpawnPosition_NoAngle
|
||||
0x4f => TimeUpdate
|
||||
0x50 => Title
|
||||
|
@ -146,7 +146,7 @@ protocol_packet_ids!(
|
|||
0x57 => EntityTeleport_f64
|
||||
0x58 => Advancements
|
||||
0x59 => EntityProperties_VarInt
|
||||
0x5a => EntityEffect
|
||||
0x5a => EntityEffect_i8
|
||||
0x5b => DeclareRecipes
|
||||
0x5c => Tags_WithEntities
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ protocol_packet_ids!(
|
|||
0x35 => TeleportPlayer_WithConfirm
|
||||
0x36 => UnlockRecipes_WithSmelting
|
||||
0x37 => EntityDestroy
|
||||
0x38 => EntityRemoveEffect
|
||||
0x38 => EntityRemoveEffect_i8
|
||||
0x39 => ResourcePackSend
|
||||
0x3a => Respawn_WorldName
|
||||
0x3b => EntityHeadLook
|
||||
|
@ -134,7 +134,7 @@ protocol_packet_ids!(
|
|||
0x4a => ScoreboardObjective
|
||||
0x4b => SetPassengers
|
||||
0x4c => Teams_VarInt
|
||||
0x4d => UpdateScore
|
||||
0x4d => UpdateScore_u8
|
||||
0x4e => TimeUpdate
|
||||
0x4f => Title
|
||||
0x50 => EntitySoundEffect
|
||||
|
@ -146,7 +146,7 @@ protocol_packet_ids!(
|
|||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x59 => EntityEffect_i8
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => Tags_WithEntities
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ protocol_packet_ids!(
|
|||
0x34 => TeleportPlayer_WithConfirm
|
||||
0x35 => UnlockRecipes_WithBlastSmoker
|
||||
0x36 => EntityDestroy
|
||||
0x37 => EntityRemoveEffect
|
||||
0x37 => EntityRemoveEffect_i8
|
||||
0x38 => ResourcePackSend
|
||||
0x39 => Respawn_NBT
|
||||
0x3a => EntityHeadLook
|
||||
|
@ -135,7 +135,7 @@ protocol_packet_ids!(
|
|||
0x4a => ScoreboardObjective
|
||||
0x4b => SetPassengers
|
||||
0x4c => Teams_VarInt
|
||||
0x4d => UpdateScore
|
||||
0x4d => UpdateScore_u8
|
||||
0x4e => TimeUpdate
|
||||
0x4f => Title
|
||||
0x50 => EntitySoundEffect
|
||||
|
@ -147,7 +147,7 @@ protocol_packet_ids!(
|
|||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x59 => EntityEffect_i8
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => Tags_WithEntities
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ protocol_packet_ids!(
|
|||
0x38 => TeleportPlayer_WithDismount
|
||||
0x39 => UnlockRecipes_WithBlastSmoker
|
||||
0x3a => EntityDestroy
|
||||
0x3b => EntityRemoveEffect
|
||||
0x3b => EntityRemoveEffect_i8
|
||||
0x3c => ResourcePackSend_Prompt
|
||||
0x3d => Respawn_NBT
|
||||
0x3e => EntityHeadLook
|
||||
|
@ -144,7 +144,7 @@ protocol_packet_ids!(
|
|||
0x53 => ScoreboardObjective
|
||||
0x54 => SetPassengers
|
||||
0x55 => Teams_VarInt
|
||||
0x56 => UpdateScore
|
||||
0x56 => UpdateScore_u8
|
||||
0x57 => TitleSubtitle
|
||||
0x58 => TimeUpdate
|
||||
0x59 => Title
|
||||
|
@ -158,7 +158,7 @@ protocol_packet_ids!(
|
|||
0x61 => EntityTeleport_f64
|
||||
0x62 => Advancements
|
||||
0x63 => EntityProperties_VarIntVarInt
|
||||
0x64 => EntityEffect
|
||||
0x64 => EntityEffect_i8
|
||||
0x65 => DeclareRecipes
|
||||
0x66 => Tags_Nested
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ protocol_packet_ids!(
|
|||
0x38 => TeleportPlayer_WithDismount
|
||||
0x39 => UnlockRecipes_WithBlastSmoker
|
||||
0x3a => EntityDestroy
|
||||
0x3b => EntityRemoveEffect
|
||||
0x3b => EntityRemoveEffect_i8
|
||||
0x3c => ResourcePackSend_Prompt
|
||||
0x3d => Respawn_NBT
|
||||
0x3e => EntityHeadLook
|
||||
|
@ -144,7 +144,7 @@ protocol_packet_ids!(
|
|||
0x53 => ScoreboardObjective
|
||||
0x54 => SetPassengers
|
||||
0x55 => Teams_VarInt
|
||||
0x56 => UpdateScore
|
||||
0x56 => UpdateScore_u8
|
||||
0x57 => UpdateSimulationDistance
|
||||
0x58 => TitleSubtitle
|
||||
0x59 => TimeUpdate
|
||||
|
@ -159,7 +159,7 @@ protocol_packet_ids!(
|
|||
0x62 => EntityTeleport_f64
|
||||
0x63 => Advancements
|
||||
0x64 => EntityProperties_VarIntVarInt
|
||||
0x65 => EntityEffect
|
||||
0x65 => EntityEffect_i8
|
||||
0x66 => DeclareRecipes
|
||||
0x67 => Tags_Nested
|
||||
}
|
||||
|
|
|
@ -0,0 +1,191 @@
|
|||
protocol_packet_ids!(
|
||||
handshake Handshaking {
|
||||
serverbound Serverbound {
|
||||
0x00 => Handshake
|
||||
}
|
||||
clientbound Clientbound {
|
||||
}
|
||||
}
|
||||
play Play {
|
||||
serverbound Serverbound {
|
||||
0x00 => TeleportConfirm
|
||||
0x01 => QueryBlockNBT
|
||||
0x02 => SetDifficulty
|
||||
0x03 => ChatMessage
|
||||
0x04 => ClientStatus
|
||||
0x05 => ClientSettings_Filtering
|
||||
0x06 => TabComplete
|
||||
0x07 => ClickWindowButton
|
||||
0x08 => ClickWindow_State
|
||||
0x09 => CloseWindow
|
||||
0x0a => PluginMessageServerbound
|
||||
0x0b => EditBook_Pages
|
||||
0x0c => QueryEntityNBT
|
||||
0x0d => UseEntity_Sneakflag
|
||||
0x0e => GenerateStructure
|
||||
0x0f => KeepAliveServerbound_i64
|
||||
0x10 => LockDifficulty
|
||||
0x11 => PlayerPosition
|
||||
0x12 => PlayerPositionLook
|
||||
0x13 => PlayerLook
|
||||
0x14 => Player
|
||||
0x15 => VehicleMove
|
||||
0x16 => SteerBoat
|
||||
0x17 => PickItem
|
||||
0x18 => CraftRecipeRequest
|
||||
0x19 => ClientAbilities_u8
|
||||
0x1a => PlayerDigging
|
||||
0x1b => PlayerAction
|
||||
0x1c => SteerVehicle
|
||||
0x1d => WindowPong
|
||||
0x1e => SetDisplayedRecipe
|
||||
0x1f => SetRecipeBookState
|
||||
0x20 => NameItem
|
||||
0x21 => ResourcePackStatus
|
||||
0x22 => AdvancementTab
|
||||
0x23 => SelectTrade
|
||||
0x24 => SetBeaconEffect
|
||||
0x25 => HeldItemChange
|
||||
0x26 => UpdateCommandBlock
|
||||
0x27 => UpdateCommandBlockMinecart
|
||||
0x28 => CreativeInventoryAction
|
||||
0x29 => UpdateJigsawBlock_Joint
|
||||
0x2a => UpdateStructureBlock
|
||||
0x2b => SetSign
|
||||
0x2c => ArmSwing
|
||||
0x2d => SpectateTeleport
|
||||
0x2e => PlayerBlockPlacement_insideblock
|
||||
0x2f => UseItem
|
||||
}
|
||||
clientbound Clientbound {
|
||||
0x00 => SpawnObject_VarInt
|
||||
0x01 => SpawnExperienceOrb
|
||||
0x02 => SpawnMob_NoMeta
|
||||
0x03 => SpawnPainting_VarInt
|
||||
0x04 => SpawnPlayer_f64_NoMeta
|
||||
0x05 => SculkVibrationSignal
|
||||
0x06 => Animation
|
||||
0x07 => Statistics
|
||||
0x08 => AcknowledgePlayerDigging
|
||||
0x09 => BlockBreakAnimation
|
||||
0x0a => UpdateBlockEntity_VarInt
|
||||
0x0b => BlockAction
|
||||
0x0c => BlockChange_VarInt
|
||||
0x0d => BossBar
|
||||
0x0e => ServerDifficulty_Locked
|
||||
0x0f => ServerMessage_Sender
|
||||
0x10 => ClearTitles
|
||||
0x11 => TabCompleteReply
|
||||
0x12 => DeclareCommands
|
||||
0x13 => WindowClose
|
||||
0x14 => WindowItems_StateCarry
|
||||
0x15 => WindowProperty
|
||||
0x16 => WindowSetSlot_State
|
||||
0x17 => SetCooldown
|
||||
0x18 => PluginMessageClientbound
|
||||
0x19 => NamedSoundEffect
|
||||
0x1a => Disconnect
|
||||
0x1b => EntityAction
|
||||
0x1c => Explosion_VarInt
|
||||
0x1d => ChunkUnload
|
||||
0x1e => ChangeGameState
|
||||
0x1f => WindowOpenHorse
|
||||
0x20 => WorldBorderInit
|
||||
0x21 => KeepAliveClientbound_i64
|
||||
0x22 => ChunkData_AndLight
|
||||
0x23 => Effect
|
||||
0x24 => Particle_f64
|
||||
0x25 => UpdateLight_Arrays
|
||||
0x26 => JoinGame_WorldNames_IsHard_SimDist
|
||||
0x27 => Maps
|
||||
0x28 => TradeList_WithRestock
|
||||
0x29 => EntityMove_i16
|
||||
0x2a => EntityLookAndMove_i16
|
||||
0x2b => EntityLook_VarInt
|
||||
0x2c => VehicleTeleport
|
||||
0x2d => OpenBook
|
||||
0x2e => WindowOpen_VarInt
|
||||
0x2f => SignEditorOpen
|
||||
0x30 => WindowPing
|
||||
0x31 => CraftRecipeResponse
|
||||
0x32 => PlayerAbilities
|
||||
0x33 => CombatEventEnd
|
||||
0x34 => CombatEventEnter
|
||||
0x35 => CombatEventDeath
|
||||
0x36 => PlayerInfo
|
||||
0x37 => FacePlayer
|
||||
0x38 => TeleportPlayer_WithDismount
|
||||
0x39 => UnlockRecipes_WithBlastSmoker
|
||||
0x3a => EntityDestroy
|
||||
0x3b => EntityRemoveEffect_VarInt
|
||||
0x3c => ResourcePackSend_Prompt
|
||||
0x3d => Respawn_NBT
|
||||
0x3e => EntityHeadLook
|
||||
0x3f => MultiBlockChange_Packed
|
||||
0x40 => SelectAdvancementTab
|
||||
0x41 => ActionBar
|
||||
0x42 => WorldBorderCenter
|
||||
0x43 => WorldBorderLerpSize
|
||||
0x44 => WorldBorderSize
|
||||
0x45 => WorldBorderWarningDelay
|
||||
0x46 => WorldBorderWarningReach
|
||||
0x47 => Camera
|
||||
0x48 => SetCurrentHotbarSlot
|
||||
0x49 => UpdateViewPosition
|
||||
0x4a => UpdateViewDistance
|
||||
0x4b => SpawnPosition_Angle
|
||||
0x4c => ScoreboardDisplay
|
||||
0x4d => EntityMetadata
|
||||
0x4e => EntityAttach
|
||||
0x4f => EntityVelocity
|
||||
0x50 => EntityEquipment_Array
|
||||
0x51 => SetExperience
|
||||
0x52 => UpdateHealth
|
||||
0x53 => ScoreboardObjective
|
||||
0x54 => SetPassengers
|
||||
0x55 => Teams_VarInt
|
||||
0x56 => UpdateScore_VarInt
|
||||
0x57 => UpdateSimulationDistance
|
||||
0x58 => TitleSubtitle
|
||||
0x59 => TimeUpdate
|
||||
0x5a => Title
|
||||
0x5b => TitleTimes
|
||||
0x5c => EntitySoundEffect
|
||||
0x5d => SoundEffect
|
||||
0x5e => StopSound
|
||||
0x5f => PlayerListHeaderFooter
|
||||
0x60 => NBTQueryResponse
|
||||
0x61 => CollectItem
|
||||
0x62 => EntityTeleport_f64
|
||||
0x63 => Advancements
|
||||
0x64 => EntityProperties_VarIntVarInt
|
||||
0x65 => EntityEffect_VarInt
|
||||
0x66 => DeclareRecipes
|
||||
0x67 => Tags_Nested
|
||||
}
|
||||
}
|
||||
login Login {
|
||||
serverbound Serverbound {
|
||||
0x00 => LoginStart
|
||||
0x01 => EncryptionResponse
|
||||
0x02 => LoginPluginResponse
|
||||
}
|
||||
clientbound Clientbound {
|
||||
0x00 => LoginDisconnect
|
||||
0x01 => EncryptionRequest
|
||||
0x02 => LoginSuccess_UUID
|
||||
0x03 => SetInitialCompression
|
||||
0x04 => LoginPluginRequest
|
||||
}
|
||||
}
|
||||
status Status {
|
||||
serverbound Serverbound {
|
||||
0x00 => StatusRequest
|
||||
0x01 => StatusPing
|
||||
}
|
||||
clientbound Clientbound {
|
||||
0x00 => StatusResponse
|
||||
0x01 => StatusPong
|
||||
}
|
||||
}
|
||||
);
|
|
@ -65,8 +65,8 @@ protocol_packet_ids!(
|
|||
0x1a => EntityStatus
|
||||
0x1b => EntityAttach_leashed
|
||||
0x1c => EntityMetadata
|
||||
0x1d => EntityEffect
|
||||
0x1e => EntityRemoveEffect
|
||||
0x1d => EntityEffect_i8
|
||||
0x1e => EntityRemoveEffect_i8
|
||||
0x1f => SetExperience
|
||||
0x20 => EntityProperties_VarInt
|
||||
0x21 => ChunkData_NoEntities_u16
|
||||
|
@ -96,7 +96,7 @@ protocol_packet_ids!(
|
|||
0x39 => PlayerAbilities
|
||||
0x3a => TabCompleteReply
|
||||
0x3b => ScoreboardObjective
|
||||
0x3c => UpdateScore
|
||||
0x3c => UpdateScore_u8
|
||||
0x3d => ScoreboardDisplay
|
||||
0x3e => Teams_u8
|
||||
0x3f => PluginMessageClientbound
|
||||
|
|
|
@ -89,7 +89,7 @@ protocol_packet_ids!(
|
|||
0x2e => TeleportPlayer_WithConfirm
|
||||
0x2f => EntityUsedBed
|
||||
0x30 => EntityDestroy
|
||||
0x31 => EntityRemoveEffect
|
||||
0x31 => EntityRemoveEffect_i8
|
||||
0x32 => ResourcePackSend
|
||||
0x33 => Respawn_Gamemode
|
||||
0x34 => EntityHeadLook
|
||||
|
@ -106,7 +106,7 @@ protocol_packet_ids!(
|
|||
0x3f => ScoreboardObjective
|
||||
0x40 => SetPassengers
|
||||
0x41 => Teams_u8
|
||||
0x42 => UpdateScore
|
||||
0x42 => UpdateScore_u8
|
||||
0x43 => SpawnPosition_NoAngle
|
||||
0x44 => TimeUpdate
|
||||
0x45 => Title_notext
|
||||
|
@ -116,7 +116,7 @@ protocol_packet_ids!(
|
|||
0x49 => CollectItem_nocount
|
||||
0x4a => EntityTeleport_f64
|
||||
0x4b => EntityProperties_VarInt
|
||||
0x4c => EntityEffect
|
||||
0x4c => EntityEffect_i8
|
||||
}
|
||||
}
|
||||
login Login {
|
||||
|
|
|
@ -89,7 +89,7 @@ protocol_packet_ids!(
|
|||
0x2e => TeleportPlayer_WithConfirm
|
||||
0x2f => EntityUsedBed
|
||||
0x30 => EntityDestroy
|
||||
0x31 => EntityRemoveEffect
|
||||
0x31 => EntityRemoveEffect_i8
|
||||
0x32 => ResourcePackSend
|
||||
0x33 => Respawn_Gamemode
|
||||
0x34 => EntityHeadLook
|
||||
|
@ -106,7 +106,7 @@ protocol_packet_ids!(
|
|||
0x3f => ScoreboardObjective
|
||||
0x40 => SetPassengers
|
||||
0x41 => Teams_u8
|
||||
0x42 => UpdateScore
|
||||
0x42 => UpdateScore_u8
|
||||
0x43 => SpawnPosition_NoAngle
|
||||
0x44 => TimeUpdate
|
||||
0x45 => Title_notext
|
||||
|
@ -116,7 +116,7 @@ protocol_packet_ids!(
|
|||
0x49 => CollectItem_nocount
|
||||
0x4a => EntityTeleport_f64
|
||||
0x4b => EntityProperties_VarInt
|
||||
0x4c => EntityEffect
|
||||
0x4c => EntityEffect_i8
|
||||
}
|
||||
}
|
||||
login Login {
|
||||
|
|
Loading…
Reference in New Issue