aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/mod.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2023-12-05 10:59:05 -0600
committerGitHub <noreply@github.com>2023-12-05 10:59:05 -0600
commit7857a014b92e64361ee237ceae7ef1acc185ac46 (patch)
tree5d70ea6b41943493873810e6a03c3483ff90a235 /azalea-protocol/src/packets/game/mod.rs
parentea3e8600126a58f5666d50fbf70dff8209d8979f (diff)
downloadazalea-drasl-7857a014b92e64361ee237ceae7ef1acc185ac46.tar.xz
1.20.3 (#110)
* 23w40a * 23w41a * 23w42a * 23w43a * 23w44a * serialize FormattedText as nbt in network * use azalea-nbt/serde in azalea-chat * 23w45a * fix 23w45a to compile * handle Object in codegen * 1.20.3-pre2 * remove unused clientbound_resource_pack_packet.rs * merge main and make azalea-chat use simdnbt * 1.20.3-rc1 * fix tests * use simdnbt 0.3 * fix ServerboundSetJigsawBlockPacket * 1.20.3
Diffstat (limited to 'azalea-protocol/src/packets/game/mod.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/mod.rs184
1 files changed, 97 insertions, 87 deletions
diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs
index c806f21d..d45ea7b1 100755
--- a/azalea-protocol/src/packets/game/mod.rs
+++ b/azalea-protocol/src/packets/game/mod.rs
@@ -64,7 +64,9 @@ pub mod clientbound_pong_response_packet;
pub mod clientbound_recipe_packet;
pub mod clientbound_remove_entities_packet;
pub mod clientbound_remove_mob_effect_packet;
-pub mod clientbound_resource_pack_packet;
+pub mod clientbound_reset_score_packet;
+pub mod clientbound_resource_pack_pop_packet;
+pub mod clientbound_resource_pack_push_packet;
pub mod clientbound_respawn_packet;
pub mod clientbound_rotate_head_packet;
pub mod clientbound_section_blocks_update_packet;
@@ -106,6 +108,8 @@ pub mod clientbound_tab_list_packet;
pub mod clientbound_tag_query_packet;
pub mod clientbound_take_item_entity_packet;
pub mod clientbound_teleport_entity_packet;
+pub mod clientbound_ticking_state_packet;
+pub mod clientbound_ticking_step_packet;
pub mod clientbound_update_advancements_packet;
pub mod clientbound_update_attributes_packet;
pub mod clientbound_update_mob_effect_packet;
@@ -126,6 +130,7 @@ pub mod serverbound_configuration_acknowledged_packet;
pub mod serverbound_container_button_click_packet;
pub mod serverbound_container_click_packet;
pub mod serverbound_container_close_packet;
+pub mod serverbound_container_slot_state_changed_packet;
pub mod serverbound_custom_payload_packet;
pub mod serverbound_edit_book_packet;
pub mod serverbound_entity_tag_query;
@@ -186,45 +191,46 @@ declare_state_packets!(
0x0c: serverbound_container_button_click_packet::ServerboundContainerButtonClickPacket,
0x0d: serverbound_container_click_packet::ServerboundContainerClickPacket,
0x0e: serverbound_container_close_packet::ServerboundContainerClosePacket,
- 0x0f: serverbound_custom_payload_packet::ServerboundCustomPayloadPacket,
- 0x10: serverbound_edit_book_packet::ServerboundEditBookPacket,
- 0x11: serverbound_entity_tag_query::ServerboundEntityTagQuery,
- 0x12: serverbound_interact_packet::ServerboundInteractPacket,
- 0x13: serverbound_jigsaw_generate_packet::ServerboundJigsawGeneratePacket,
- 0x14: serverbound_keep_alive_packet::ServerboundKeepAlivePacket,
- 0x15: serverbound_lock_difficulty_packet::ServerboundLockDifficultyPacket,
- 0x16: serverbound_move_player_pos_packet::ServerboundMovePlayerPosPacket,
- 0x17: serverbound_move_player_pos_rot_packet::ServerboundMovePlayerPosRotPacket,
- 0x18: serverbound_move_player_rot_packet::ServerboundMovePlayerRotPacket,
- 0x19: serverbound_move_player_status_only_packet::ServerboundMovePlayerStatusOnlyPacket,
- 0x1a: serverbound_move_vehicle_packet::ServerboundMoveVehiclePacket,
- 0x1b: serverbound_paddle_boat_packet::ServerboundPaddleBoatPacket,
- 0x1c: serverbound_pick_item_packet::ServerboundPickItemPacket,
- 0x1d: serverbound_ping_request_packet::ServerboundPingRequestPacket,
- 0x1e: serverbound_place_recipe_packet::ServerboundPlaceRecipePacket,
- 0x1f: serverbound_player_abilities_packet::ServerboundPlayerAbilitiesPacket,
- 0x20: serverbound_player_action_packet::ServerboundPlayerActionPacket,
- 0x21: serverbound_player_command_packet::ServerboundPlayerCommandPacket,
- 0x22: serverbound_player_input_packet::ServerboundPlayerInputPacket,
- 0x23: serverbound_pong_packet::ServerboundPongPacket,
- 0x24: serverbound_recipe_book_change_settings_packet::ServerboundRecipeBookChangeSettingsPacket,
- 0x25: serverbound_recipe_book_seen_recipe_packet::ServerboundRecipeBookSeenRecipePacket,
- 0x26: serverbound_rename_item_packet::ServerboundRenameItemPacket,
- 0x27: serverbound_resource_pack_packet::ServerboundResourcePackPacket,
- 0x28: serverbound_seen_advancements_packet::ServerboundSeenAdvancementsPacket,
- 0x29: serverbound_select_trade_packet::ServerboundSelectTradePacket,
- 0x2a: serverbound_set_beacon_packet::ServerboundSetBeaconPacket,
- 0x2b: serverbound_set_carried_item_packet::ServerboundSetCarriedItemPacket,
- 0x2c: serverbound_set_command_block_packet::ServerboundSetCommandBlockPacket,
- 0x2d: serverbound_set_command_minecart_packet::ServerboundSetCommandMinecartPacket,
- 0x2e: serverbound_set_creative_mode_slot_packet::ServerboundSetCreativeModeSlotPacket,
- 0x2f: serverbound_set_jigsaw_block_packet::ServerboundSetJigsawBlockPacket,
- 0x30: serverbound_set_structure_block_packet::ServerboundSetStructureBlockPacket,
- 0x31: serverbound_sign_update_packet::ServerboundSignUpdatePacket,
- 0x32: serverbound_swing_packet::ServerboundSwingPacket,
- 0x33: serverbound_teleport_to_entity_packet::ServerboundTeleportToEntityPacket,
- 0x34: serverbound_use_item_on_packet::ServerboundUseItemOnPacket,
- 0x35: serverbound_use_item_packet::ServerboundUseItemPacket,
+ 0x0f: serverbound_container_slot_state_changed_packet::ServerboundContainerSlotStateChangedPacket,
+ 0x10: serverbound_custom_payload_packet::ServerboundCustomPayloadPacket,
+ 0x11: serverbound_edit_book_packet::ServerboundEditBookPacket,
+ 0x12: serverbound_entity_tag_query::ServerboundEntityTagQuery,
+ 0x13: serverbound_interact_packet::ServerboundInteractPacket,
+ 0x14: serverbound_jigsaw_generate_packet::ServerboundJigsawGeneratePacket,
+ 0x15: serverbound_keep_alive_packet::ServerboundKeepAlivePacket,
+ 0x16: serverbound_lock_difficulty_packet::ServerboundLockDifficultyPacket,
+ 0x17: serverbound_move_player_pos_packet::ServerboundMovePlayerPosPacket,
+ 0x18: serverbound_move_player_pos_rot_packet::ServerboundMovePlayerPosRotPacket,
+ 0x19: serverbound_move_player_rot_packet::ServerboundMovePlayerRotPacket,
+ 0x1a: serverbound_move_player_status_only_packet::ServerboundMovePlayerStatusOnlyPacket,
+ 0x1b: serverbound_move_vehicle_packet::ServerboundMoveVehiclePacket,
+ 0x1c: serverbound_paddle_boat_packet::ServerboundPaddleBoatPacket,
+ 0x1d: serverbound_pick_item_packet::ServerboundPickItemPacket,
+ 0x1e: serverbound_ping_request_packet::ServerboundPingRequestPacket,
+ 0x1f: serverbound_place_recipe_packet::ServerboundPlaceRecipePacket,
+ 0x20: serverbound_player_abilities_packet::ServerboundPlayerAbilitiesPacket,
+ 0x21: serverbound_player_action_packet::ServerboundPlayerActionPacket,
+ 0x22: serverbound_player_command_packet::ServerboundPlayerCommandPacket,
+ 0x23: serverbound_player_input_packet::ServerboundPlayerInputPacket,
+ 0x24: serverbound_pong_packet::ServerboundPongPacket,
+ 0x25: serverbound_recipe_book_change_settings_packet::ServerboundRecipeBookChangeSettingsPacket,
+ 0x26: serverbound_recipe_book_seen_recipe_packet::ServerboundRecipeBookSeenRecipePacket,
+ 0x27: serverbound_rename_item_packet::ServerboundRenameItemPacket,
+ 0x28: serverbound_resource_pack_packet::ServerboundResourcePackPacket,
+ 0x29: serverbound_seen_advancements_packet::ServerboundSeenAdvancementsPacket,
+ 0x2a: serverbound_select_trade_packet::ServerboundSelectTradePacket,
+ 0x2b: serverbound_set_beacon_packet::ServerboundSetBeaconPacket,
+ 0x2c: serverbound_set_carried_item_packet::ServerboundSetCarriedItemPacket,
+ 0x2d: serverbound_set_command_block_packet::ServerboundSetCommandBlockPacket,
+ 0x2e: serverbound_set_command_minecart_packet::ServerboundSetCommandMinecartPacket,
+ 0x2f: serverbound_set_creative_mode_slot_packet::ServerboundSetCreativeModeSlotPacket,
+ 0x30: serverbound_set_jigsaw_block_packet::ServerboundSetJigsawBlockPacket,
+ 0x31: serverbound_set_structure_block_packet::ServerboundSetStructureBlockPacket,
+ 0x32: serverbound_sign_update_packet::ServerboundSignUpdatePacket,
+ 0x33: serverbound_swing_packet::ServerboundSwingPacket,
+ 0x34: serverbound_teleport_to_entity_packet::ServerboundTeleportToEntityPacket,
+ 0x35: serverbound_use_item_on_packet::ServerboundUseItemOnPacket,
+ 0x36: serverbound_use_item_packet::ServerboundUseItemPacket,
},
Clientbound => {
0x00: clientbound_bundle_packet::ClientboundBundlePacket,
@@ -293,52 +299,56 @@ declare_state_packets!(
0x3f: clientbound_recipe_packet::ClientboundRecipePacket,
0x40: clientbound_remove_entities_packet::ClientboundRemoveEntitiesPacket,
0x41: clientbound_remove_mob_effect_packet::ClientboundRemoveMobEffectPacket,
- 0x42: clientbound_resource_pack_packet::ClientboundResourcePackPacket,
- 0x43: clientbound_respawn_packet::ClientboundRespawnPacket,
- 0x44: clientbound_rotate_head_packet::ClientboundRotateHeadPacket,
- 0x45: clientbound_section_blocks_update_packet::ClientboundSectionBlocksUpdatePacket,
- 0x46: clientbound_select_advancements_tab_packet::ClientboundSelectAdvancementsTabPacket,
- 0x47: clientbound_server_data_packet::ClientboundServerDataPacket,
- 0x48: clientbound_set_action_bar_text_packet::ClientboundSetActionBarTextPacket,
- 0x49: clientbound_set_border_center_packet::ClientboundSetBorderCenterPacket,
- 0x4a: clientbound_set_border_lerp_size_packet::ClientboundSetBorderLerpSizePacket,
- 0x4b: clientbound_set_border_size_packet::ClientboundSetBorderSizePacket,
- 0x4c: clientbound_set_border_warning_delay_packet::ClientboundSetBorderWarningDelayPacket,
- 0x4d: clientbound_set_border_warning_distance_packet::ClientboundSetBorderWarningDistancePacket,
- 0x4e: clientbound_set_camera_packet::ClientboundSetCameraPacket,
- 0x4f: clientbound_set_carried_item_packet::ClientboundSetCarriedItemPacket,
- 0x50: clientbound_set_chunk_cache_center_packet::ClientboundSetChunkCacheCenterPacket,
- 0x51: clientbound_set_chunk_cache_radius_packet::ClientboundSetChunkCacheRadiusPacket,
- 0x52: clientbound_set_default_spawn_position_packet::ClientboundSetDefaultSpawnPositionPacket,
- 0x53: clientbound_set_display_objective_packet::ClientboundSetDisplayObjectivePacket,
- 0x54: clientbound_set_entity_data_packet::ClientboundSetEntityDataPacket,
- 0x55: clientbound_set_entity_link_packet::ClientboundSetEntityLinkPacket,
- 0x56: clientbound_set_entity_motion_packet::ClientboundSetEntityMotionPacket,
- 0x57: clientbound_set_equipment_packet::ClientboundSetEquipmentPacket,
- 0x58: clientbound_set_experience_packet::ClientboundSetExperiencePacket,
- 0x59: clientbound_set_health_packet::ClientboundSetHealthPacket,
- 0x5a: clientbound_set_objective_packet::ClientboundSetObjectivePacket,
- 0x5b: clientbound_set_passengers_packet::ClientboundSetPassengersPacket,
- 0x5c: clientbound_set_player_team_packet::ClientboundSetPlayerTeamPacket,
- 0x5d: clientbound_set_score_packet::ClientboundSetScorePacket,
- 0x5e: clientbound_set_simulation_distance_packet::ClientboundSetSimulationDistancePacket,
- 0x5f: clientbound_set_subtitle_text_packet::ClientboundSetSubtitleTextPacket,
- 0x60: clientbound_set_time_packet::ClientboundSetTimePacket,
- 0x61: clientbound_set_title_text_packet::ClientboundSetTitleTextPacket,
- 0x62: clientbound_set_titles_animation_packet::ClientboundSetTitlesAnimationPacket,
- 0x63: clientbound_sound_entity_packet::ClientboundSoundEntityPacket,
- 0x64: clientbound_sound_packet::ClientboundSoundPacket,
- 0x65: clientbound_start_configuration_packet::ClientboundStartConfigurationPacket,
- 0x66: clientbound_stop_sound_packet::ClientboundStopSoundPacket,
- 0x67: clientbound_system_chat_packet::ClientboundSystemChatPacket,
- 0x68: clientbound_tab_list_packet::ClientboundTabListPacket,
- 0x69: clientbound_tag_query_packet::ClientboundTagQueryPacket,
- 0x6a: clientbound_take_item_entity_packet::ClientboundTakeItemEntityPacket,
- 0x6b: clientbound_teleport_entity_packet::ClientboundTeleportEntityPacket,
- 0x6c: clientbound_update_advancements_packet::ClientboundUpdateAdvancementsPacket,
- 0x6d: clientbound_update_attributes_packet::ClientboundUpdateAttributesPacket,
- 0x6e: clientbound_update_mob_effect_packet::ClientboundUpdateMobEffectPacket,
- 0x6f: clientbound_update_recipes_packet::ClientboundUpdateRecipesPacket,
- 0x70: clientbound_update_tags_packet::ClientboundUpdateTagsPacket,
+ 0x42: clientbound_reset_score_packet::ClientboundResetScorePacket,
+ 0x43: clientbound_resource_pack_pop_packet::ClientboundResourcePackPopPacket,
+ 0x44: clientbound_resource_pack_push_packet::ClientboundResourcePackPushPacket,
+ 0x45: clientbound_respawn_packet::ClientboundRespawnPacket,
+ 0x46: clientbound_rotate_head_packet::ClientboundRotateHeadPacket,
+ 0x47: clientbound_section_blocks_update_packet::ClientboundSectionBlocksUpdatePacket,
+ 0x48: clientbound_select_advancements_tab_packet::ClientboundSelectAdvancementsTabPacket,
+ 0x49: clientbound_server_data_packet::ClientboundServerDataPacket,
+ 0x4a: clientbound_set_action_bar_text_packet::ClientboundSetActionBarTextPacket,
+ 0x4b: clientbound_set_border_center_packet::ClientboundSetBorderCenterPacket,
+ 0x4c: clientbound_set_border_lerp_size_packet::ClientboundSetBorderLerpSizePacket,
+ 0x4d: clientbound_set_border_size_packet::ClientboundSetBorderSizePacket,
+ 0x4e: clientbound_set_border_warning_delay_packet::ClientboundSetBorderWarningDelayPacket,
+ 0x4f: clientbound_set_border_warning_distance_packet::ClientboundSetBorderWarningDistancePacket,
+ 0x50: clientbound_set_camera_packet::ClientboundSetCameraPacket,
+ 0x51: clientbound_set_carried_item_packet::ClientboundSetCarriedItemPacket,
+ 0x52: clientbound_set_chunk_cache_center_packet::ClientboundSetChunkCacheCenterPacket,
+ 0x53: clientbound_set_chunk_cache_radius_packet::ClientboundSetChunkCacheRadiusPacket,
+ 0x54: clientbound_set_default_spawn_position_packet::ClientboundSetDefaultSpawnPositionPacket,
+ 0x55: clientbound_set_display_objective_packet::ClientboundSetDisplayObjectivePacket,
+ 0x56: clientbound_set_entity_data_packet::ClientboundSetEntityDataPacket,
+ 0x57: clientbound_set_entity_link_packet::ClientboundSetEntityLinkPacket,
+ 0x58: clientbound_set_entity_motion_packet::ClientboundSetEntityMotionPacket,
+ 0x59: clientbound_set_equipment_packet::ClientboundSetEquipmentPacket,
+ 0x5a: clientbound_set_experience_packet::ClientboundSetExperiencePacket,
+ 0x5b: clientbound_set_health_packet::ClientboundSetHealthPacket,
+ 0x5c: clientbound_set_objective_packet::ClientboundSetObjectivePacket,
+ 0x5d: clientbound_set_passengers_packet::ClientboundSetPassengersPacket,
+ 0x5e: clientbound_set_player_team_packet::ClientboundSetPlayerTeamPacket,
+ 0x5f: clientbound_set_score_packet::ClientboundSetScorePacket,
+ 0x60: clientbound_set_simulation_distance_packet::ClientboundSetSimulationDistancePacket,
+ 0x61: clientbound_set_subtitle_text_packet::ClientboundSetSubtitleTextPacket,
+ 0x62: clientbound_set_time_packet::ClientboundSetTimePacket,
+ 0x63: clientbound_set_title_text_packet::ClientboundSetTitleTextPacket,
+ 0x64: clientbound_set_titles_animation_packet::ClientboundSetTitlesAnimationPacket,
+ 0x65: clientbound_sound_entity_packet::ClientboundSoundEntityPacket,
+ 0x66: clientbound_sound_packet::ClientboundSoundPacket,
+ 0x67: clientbound_start_configuration_packet::ClientboundStartConfigurationPacket,
+ 0x68: clientbound_stop_sound_packet::ClientboundStopSoundPacket,
+ 0x69: clientbound_system_chat_packet::ClientboundSystemChatPacket,
+ 0x6a: clientbound_tab_list_packet::ClientboundTabListPacket,
+ 0x6b: clientbound_tag_query_packet::ClientboundTagQueryPacket,
+ 0x6c: clientbound_take_item_entity_packet::ClientboundTakeItemEntityPacket,
+ 0x6d: clientbound_teleport_entity_packet::ClientboundTeleportEntityPacket,
+ 0x6e: clientbound_ticking_state_packet::ClientboundTickingStatePacket,
+ 0x6f: clientbound_ticking_step_packet::ClientboundTickingStepPacket,
+ 0x70: clientbound_update_advancements_packet::ClientboundUpdateAdvancementsPacket,
+ 0x71: clientbound_update_attributes_packet::ClientboundUpdateAttributesPacket,
+ 0x72: clientbound_update_mob_effect_packet::ClientboundUpdateMobEffectPacket,
+ 0x73: clientbound_update_recipes_packet::ClientboundUpdateRecipesPacket,
+ 0x74: clientbound_update_tags_packet::ClientboundUpdateTagsPacket,
}
);