From 254043046f2bdd9bc7aee103ae4019bb7b7e8abe Mon Sep 17 00:00:00 2001 From: alemidev Date: Thu, 30 Dec 2021 20:36:26 +0100 Subject: [PATCH] pushed protocol definition, this should make the library usable until there's proper documentation --- aiocraft/mc/proto/__init__.py | 6 + aiocraft/mc/proto/handshaking/__init__.py | 4 + .../proto/handshaking/clientbound/__init__.py | 6 + .../proto/handshaking/serverbound/__init__.py | 46 +++++ .../packet_legacy_server_list_ping.py | 95 ++++++++++ .../serverbound/packet_set_protocol.py | 98 +++++++++++ aiocraft/mc/proto/login/__init__.py | 4 + .../mc/proto/login/clientbound/__init__.py | 49 ++++++ .../login/clientbound/packet_compress.py | 93 ++++++++++ .../login/clientbound/packet_disconnect.py | 95 ++++++++++ .../clientbound/packet_encryption_begin.py | 97 +++++++++++ .../packet_login_plugin_request.py | 61 +++++++ .../proto/login/clientbound/packet_success.py | 96 +++++++++++ .../mc/proto/login/serverbound/__init__.py | 47 +++++ .../serverbound/packet_encryption_begin.py | 96 +++++++++++ .../packet_login_plugin_response.py | 60 +++++++ .../login/serverbound/packet_login_start.py | 95 ++++++++++ aiocraft/mc/proto/play/__init__.py | 4 + .../mc/proto/play/clientbound/__init__.py | 163 ++++++++++++++++++ .../play/clientbound/packet_abilities.py | 97 +++++++++++ .../packet_acknowledge_player_digging.py | 46 +++++ .../play/clientbound/packet_action_bar.py | 23 +++ .../packet_advancement_progress.py | 19 ++ .../play/clientbound/packet_advancements.py | 76 ++++++++ .../play/clientbound/packet_animation.py | 96 +++++++++++ .../play/clientbound/packet_attach_entity.py | 97 +++++++++++ .../mc/proto/play/clientbound/packet_bed.py | 64 +++++++ .../play/clientbound/packet_block_action.py | 98 +++++++++++ .../packet_block_break_animation.py | 97 +++++++++++ .../play/clientbound/packet_block_change.py | 97 +++++++++++ .../proto/play/clientbound/packet_boss_bar.py | 97 +++++++++++ .../proto/play/clientbound/packet_camera.py | 93 ++++++++++ .../mc/proto/play/clientbound/packet_chat.py | 97 +++++++++++ .../play/clientbound/packet_clear_titles.py | 23 +++ .../play/clientbound/packet_close_window.py | 95 ++++++++++ .../proto/play/clientbound/packet_collect.py | 97 +++++++++++ .../play/clientbound/packet_combat_event.py | 91 ++++++++++ .../clientbound/packet_craft_progress_bar.py | 97 +++++++++++ .../packet_craft_recipe_response.py | 66 +++++++ .../play/clientbound/packet_custom_payload.py | 96 +++++++++++ .../clientbound/packet_death_combat_event.py | 25 +++ .../clientbound/packet_declare_commands.py | 62 +++++++ .../clientbound/packet_declare_recipes.py | 61 +++++++ .../play/clientbound/packet_destroy_entity.py | 19 ++ .../play/clientbound/packet_difficulty.py | 94 ++++++++++ .../clientbound/packet_end_combat_event.py | 24 +++ .../clientbound/packet_enter_combat_event.py | 23 +++ .../proto/play/clientbound/packet_entity.py | 89 ++++++++++ .../play/clientbound/packet_entity_destroy.py | 93 ++++++++++ .../play/clientbound/packet_entity_effect.py | 99 +++++++++++ .../clientbound/packet_entity_equipment.py | 98 +++++++++++ .../packet_entity_head_rotation.py | 96 +++++++++++ .../play/clientbound/packet_entity_look.py | 98 +++++++++++ .../clientbound/packet_entity_metadata.py | 96 +++++++++++ .../clientbound/packet_entity_move_look.py | 101 +++++++++++ .../clientbound/packet_entity_sound_effect.py | 53 ++++++ .../play/clientbound/packet_entity_status.py | 96 +++++++++++ .../clientbound/packet_entity_teleport.py | 101 +++++++++++ .../packet_entity_update_attributes.py | 90 ++++++++++ .../clientbound/packet_entity_velocity.py | 98 +++++++++++ .../play/clientbound/packet_experience.py | 97 +++++++++++ .../play/clientbound/packet_explosion.py | 102 +++++++++++ .../play/clientbound/packet_face_player.py | 65 +++++++ .../clientbound/packet_game_state_change.py | 96 +++++++++++ .../play/clientbound/packet_held_item_slot.py | 95 ++++++++++ .../packet_initialize_world_border.py | 30 ++++ .../play/clientbound/packet_keep_alive.py | 95 ++++++++++ .../clientbound/packet_kick_disconnect.py | 95 ++++++++++ .../mc/proto/play/clientbound/packet_login.py | 112 ++++++++++++ .../mc/proto/play/clientbound/packet_map.py | 104 +++++++++++ .../play/clientbound/packet_map_chunk.py | 113 ++++++++++++ .../play/clientbound/packet_map_chunk_bulk.py | 26 +++ .../clientbound/packet_multi_block_change.py | 101 +++++++++++ .../clientbound/packet_named_entity_spawn.py | 105 +++++++++++ .../clientbound/packet_named_sound_effect.py | 101 +++++++++++ .../clientbound/packet_nbt_query_response.py | 60 +++++++ .../play/clientbound/packet_open_book.py | 49 ++++++ .../clientbound/packet_open_horse_window.py | 51 ++++++ .../clientbound/packet_open_sign_entity.py | 95 ++++++++++ .../play/clientbound/packet_open_window.py | 100 +++++++++++ .../mc/proto/play/clientbound/packet_ping.py | 23 +++ .../play/clientbound/packet_player_info.py | 99 +++++++++++ .../clientbound/packet_playerlist_header.py | 94 ++++++++++ .../proto/play/clientbound/packet_position.py | 103 +++++++++++ .../clientbound/packet_rel_entity_move.py | 99 +++++++++++ .../packet_remove_entity_effect.py | 96 +++++++++++ .../clientbound/packet_resource_pack_send.py | 96 +++++++++++ .../proto/play/clientbound/packet_respawn.py | 104 +++++++++++ .../packet_scoreboard_display_objective.py | 96 +++++++++++ .../packet_scoreboard_objective.py | 98 +++++++++++ .../clientbound/packet_scoreboard_score.py | 98 +++++++++++ .../clientbound/packet_scoreboard_team.py | 32 ++++ .../packet_sculk_vibration_signal.py | 28 +++ .../packet_select_advancement_tab.py | 67 +++++++ .../clientbound/packet_set_compression.py | 21 +++ .../play/clientbound/packet_set_cooldown.py | 92 ++++++++++ .../play/clientbound/packet_set_passengers.py | 90 ++++++++++ .../proto/play/clientbound/packet_set_slot.py | 98 +++++++++++ .../clientbound/packet_set_title_subtitle.py | 23 +++ .../play/clientbound/packet_set_title_text.py | 23 +++ .../play/clientbound/packet_set_title_time.py | 25 +++ .../clientbound/packet_simulation_distance.py | 19 ++ .../play/clientbound/packet_sound_effect.py | 96 +++++++++++ .../play/clientbound/packet_spawn_entity.py | 107 ++++++++++++ .../packet_spawn_entity_experience_orb.py | 99 +++++++++++ .../clientbound/packet_spawn_entity_living.py | 107 ++++++++++++ .../packet_spawn_entity_painting.py | 99 +++++++++++ .../packet_spawn_entity_weather.py | 83 +++++++++ .../play/clientbound/packet_spawn_position.py | 96 +++++++++++ .../play/clientbound/packet_statistics.py | 95 ++++++++++ .../play/clientbound/packet_stop_sound.py | 63 +++++++ .../play/clientbound/packet_tab_complete.py | 98 +++++++++++ .../mc/proto/play/clientbound/packet_tags.py | 65 +++++++ .../mc/proto/play/clientbound/packet_teams.py | 99 +++++++++++ .../clientbound/packet_tile_entity_data.py | 97 +++++++++++ .../mc/proto/play/clientbound/packet_title.py | 91 ++++++++++ .../play/clientbound/packet_trade_list.py | 54 ++++++ .../play/clientbound/packet_transaction.py | 91 ++++++++++ .../play/clientbound/packet_unload_chunk.py | 92 ++++++++++ .../play/clientbound/packet_unlock_recipes.py | 85 +++++++++ .../clientbound/packet_update_attributes.py | 24 +++ .../clientbound/packet_update_entity_nbt.py | 20 +++ .../play/clientbound/packet_update_health.py | 97 +++++++++++ .../play/clientbound/packet_update_light.py | 58 +++++++ .../play/clientbound/packet_update_sign.py | 33 ++++ .../play/clientbound/packet_update_time.py | 96 +++++++++++ .../packet_update_view_distance.py | 49 ++++++ .../packet_update_view_position.py | 50 ++++++ .../play/clientbound/packet_vehicle_move.py | 93 ++++++++++ .../play/clientbound/packet_window_items.py | 98 +++++++++++ .../play/clientbound/packet_world_border.py | 96 +++++++++++ .../clientbound/packet_world_border_center.py | 24 +++ .../packet_world_border_lerp_size.py | 25 +++ .../clientbound/packet_world_border_size.py | 23 +++ .../packet_world_border_warning_delay.py | 23 +++ .../packet_world_border_warning_reach.py | 23 +++ .../play/clientbound/packet_world_event.py | 98 +++++++++++ .../clientbound/packet_world_particles.py | 106 ++++++++++++ .../mc/proto/play/serverbound/__init__.py | 95 ++++++++++ .../play/serverbound/packet_abilities.py | 97 +++++++++++ .../serverbound/packet_advancement_tab.py | 70 ++++++++ .../play/serverbound/packet_arm_animation.py | 97 +++++++++++ .../play/serverbound/packet_block_dig.py | 97 +++++++++++ .../play/serverbound/packet_block_place.py | 102 +++++++++++ .../mc/proto/play/serverbound/packet_chat.py | 95 ++++++++++ .../play/serverbound/packet_client_command.py | 96 +++++++++++ .../play/serverbound/packet_close_window.py | 95 ++++++++++ .../packet_craft_recipe_request.py | 67 +++++++ .../serverbound/packet_crafting_book_data.py | 63 +++++++ .../play/serverbound/packet_custom_payload.py | 96 +++++++++++ .../serverbound/packet_displayed_recipe.py | 27 +++ .../play/serverbound/packet_edit_book.py | 63 +++++++ .../play/serverbound/packet_enchant_item.py | 96 +++++++++++ .../play/serverbound/packet_entity_action.py | 97 +++++++++++ .../proto/play/serverbound/packet_flying.py | 95 ++++++++++ .../serverbound/packet_generate_structure.py | 35 ++++ .../play/serverbound/packet_held_item_slot.py | 95 ++++++++++ .../play/serverbound/packet_keep_alive.py | 95 ++++++++++ .../serverbound/packet_lock_difficulty.py | 49 ++++++ .../mc/proto/play/serverbound/packet_look.py | 97 +++++++++++ .../play/serverbound/packet_name_item.py | 59 +++++++ .../play/serverbound/packet_pick_item.py | 59 +++++++ .../mc/proto/play/serverbound/packet_pong.py | 23 +++ .../proto/play/serverbound/packet_position.py | 99 +++++++++++ .../play/serverbound/packet_position_look.py | 101 +++++++++++ .../packet_prepare_crafting_grid.py | 28 +++ .../serverbound/packet_query_block_nbt.py | 60 +++++++ .../serverbound/packet_query_entity_nbt.py | 60 +++++++ .../play/serverbound/packet_recipe_book.py | 29 ++++ .../packet_resource_pack_receive.py | 94 ++++++++++ .../play/serverbound/packet_select_trade.py | 59 +++++++ .../serverbound/packet_set_beacon_effect.py | 60 +++++++ .../serverbound/packet_set_creative_slot.py | 96 +++++++++++ .../play/serverbound/packet_set_difficulty.py | 49 ++++++ .../proto/play/serverbound/packet_settings.py | 105 +++++++++++ .../proto/play/serverbound/packet_spectate.py | 93 ++++++++++ .../play/serverbound/packet_steer_boat.py | 90 ++++++++++ .../play/serverbound/packet_steer_vehicle.py | 98 +++++++++++ .../play/serverbound/packet_tab_complete.py | 99 +++++++++++ .../serverbound/packet_teleport_confirm.py | 89 ++++++++++ .../play/serverbound/packet_transaction.py | 91 ++++++++++ .../packet_update_command_block.py | 62 +++++++ .../packet_update_command_block_minecart.py | 61 +++++++ .../serverbound/packet_update_jigsaw_block.py | 56 ++++++ .../play/serverbound/packet_update_sign.py | 99 +++++++++++ .../packet_update_structure_block.py | 74 ++++++++ .../play/serverbound/packet_use_entity.py | 101 +++++++++++ .../proto/play/serverbound/packet_use_item.py | 91 ++++++++++ .../play/serverbound/packet_vehicle_move.py | 93 ++++++++++ .../play/serverbound/packet_window_click.py | 103 +++++++++++ aiocraft/mc/proto/status/__init__.py | 4 + .../mc/proto/status/clientbound/__init__.py | 46 +++++ .../proto/status/clientbound/packet_ping.py | 95 ++++++++++ .../status/clientbound/packet_server_info.py | 95 ++++++++++ .../mc/proto/status/serverbound/__init__.py | 46 +++++ .../proto/status/serverbound/packet_ping.py | 95 ++++++++++ .../status/serverbound/packet_ping_start.py | 95 ++++++++++ aiocraft/mc/types.py | 2 +- setup.py | 8 +- 199 files changed, 14843 insertions(+), 5 deletions(-) create mode 100644 aiocraft/mc/proto/__init__.py create mode 100644 aiocraft/mc/proto/handshaking/__init__.py create mode 100644 aiocraft/mc/proto/handshaking/clientbound/__init__.py create mode 100644 aiocraft/mc/proto/handshaking/serverbound/__init__.py create mode 100644 aiocraft/mc/proto/handshaking/serverbound/packet_legacy_server_list_ping.py create mode 100644 aiocraft/mc/proto/handshaking/serverbound/packet_set_protocol.py create mode 100644 aiocraft/mc/proto/login/__init__.py create mode 100644 aiocraft/mc/proto/login/clientbound/__init__.py create mode 100644 aiocraft/mc/proto/login/clientbound/packet_compress.py create mode 100644 aiocraft/mc/proto/login/clientbound/packet_disconnect.py create mode 100644 aiocraft/mc/proto/login/clientbound/packet_encryption_begin.py create mode 100644 aiocraft/mc/proto/login/clientbound/packet_login_plugin_request.py create mode 100644 aiocraft/mc/proto/login/clientbound/packet_success.py create mode 100644 aiocraft/mc/proto/login/serverbound/__init__.py create mode 100644 aiocraft/mc/proto/login/serverbound/packet_encryption_begin.py create mode 100644 aiocraft/mc/proto/login/serverbound/packet_login_plugin_response.py create mode 100644 aiocraft/mc/proto/login/serverbound/packet_login_start.py create mode 100644 aiocraft/mc/proto/play/__init__.py create mode 100644 aiocraft/mc/proto/play/clientbound/__init__.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_abilities.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_acknowledge_player_digging.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_action_bar.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_advancement_progress.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_advancements.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_animation.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_attach_entity.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_bed.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_block_action.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_block_break_animation.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_block_change.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_boss_bar.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_camera.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_chat.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_clear_titles.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_close_window.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_collect.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_combat_event.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_craft_progress_bar.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_craft_recipe_response.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_custom_payload.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_death_combat_event.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_declare_commands.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_declare_recipes.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_destroy_entity.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_difficulty.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_end_combat_event.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_enter_combat_event.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_destroy.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_effect.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_equipment.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_head_rotation.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_look.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_metadata.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_move_look.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_sound_effect.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_status.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_teleport.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_update_attributes.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_entity_velocity.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_experience.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_explosion.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_face_player.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_game_state_change.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_held_item_slot.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_initialize_world_border.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_keep_alive.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_kick_disconnect.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_login.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_map.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_map_chunk.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_map_chunk_bulk.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_multi_block_change.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_named_entity_spawn.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_named_sound_effect.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_nbt_query_response.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_open_book.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_open_horse_window.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_open_sign_entity.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_open_window.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_ping.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_player_info.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_playerlist_header.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_position.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_rel_entity_move.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_remove_entity_effect.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_resource_pack_send.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_respawn.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_scoreboard_display_objective.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_scoreboard_objective.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_scoreboard_score.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_scoreboard_team.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_sculk_vibration_signal.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_select_advancement_tab.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_set_compression.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_set_cooldown.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_set_passengers.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_set_slot.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_set_title_subtitle.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_set_title_text.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_set_title_time.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_simulation_distance.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_sound_effect.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_spawn_entity.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_spawn_entity_experience_orb.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_spawn_entity_living.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_spawn_entity_painting.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_spawn_entity_weather.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_spawn_position.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_statistics.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_stop_sound.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_tab_complete.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_tags.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_teams.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_tile_entity_data.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_title.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_trade_list.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_transaction.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_unload_chunk.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_unlock_recipes.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_update_attributes.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_update_entity_nbt.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_update_health.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_update_light.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_update_sign.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_update_time.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_update_view_distance.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_update_view_position.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_vehicle_move.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_window_items.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_world_border.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_world_border_center.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_world_border_lerp_size.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_world_border_size.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_world_border_warning_delay.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_world_border_warning_reach.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_world_event.py create mode 100644 aiocraft/mc/proto/play/clientbound/packet_world_particles.py create mode 100644 aiocraft/mc/proto/play/serverbound/__init__.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_abilities.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_advancement_tab.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_arm_animation.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_block_dig.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_block_place.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_chat.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_client_command.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_close_window.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_craft_recipe_request.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_crafting_book_data.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_custom_payload.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_displayed_recipe.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_edit_book.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_enchant_item.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_entity_action.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_flying.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_generate_structure.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_held_item_slot.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_keep_alive.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_lock_difficulty.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_look.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_name_item.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_pick_item.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_pong.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_position.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_position_look.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_prepare_crafting_grid.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_query_block_nbt.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_query_entity_nbt.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_recipe_book.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_resource_pack_receive.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_select_trade.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_set_beacon_effect.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_set_creative_slot.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_set_difficulty.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_settings.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_spectate.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_steer_boat.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_steer_vehicle.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_tab_complete.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_teleport_confirm.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_transaction.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_update_command_block.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_update_command_block_minecart.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_update_jigsaw_block.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_update_sign.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_update_structure_block.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_use_entity.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_use_item.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_vehicle_move.py create mode 100644 aiocraft/mc/proto/play/serverbound/packet_window_click.py create mode 100644 aiocraft/mc/proto/status/__init__.py create mode 100644 aiocraft/mc/proto/status/clientbound/__init__.py create mode 100644 aiocraft/mc/proto/status/clientbound/packet_ping.py create mode 100644 aiocraft/mc/proto/status/clientbound/packet_server_info.py create mode 100644 aiocraft/mc/proto/status/serverbound/__init__.py create mode 100644 aiocraft/mc/proto/status/serverbound/packet_ping.py create mode 100644 aiocraft/mc/proto/status/serverbound/packet_ping_start.py diff --git a/aiocraft/mc/proto/__init__.py b/aiocraft/mc/proto/__init__.py new file mode 100644 index 0000000..36e1c6d --- /dev/null +++ b/aiocraft/mc/proto/__init__.py @@ -0,0 +1,6 @@ +"""[!] This file is autogenerated""" + +from .handshaking import * +from .status import * +from .login import * +from .play import * diff --git a/aiocraft/mc/proto/handshaking/__init__.py b/aiocraft/mc/proto/handshaking/__init__.py new file mode 100644 index 0000000..ca03e38 --- /dev/null +++ b/aiocraft/mc/proto/handshaking/__init__.py @@ -0,0 +1,4 @@ +"""[!] This file is autogenerated""" + +from .clientbound import * +from .serverbound import * diff --git a/aiocraft/mc/proto/handshaking/clientbound/__init__.py b/aiocraft/mc/proto/handshaking/clientbound/__init__.py new file mode 100644 index 0000000..040bf67 --- /dev/null +++ b/aiocraft/mc/proto/handshaking/clientbound/__init__.py @@ -0,0 +1,6 @@ +"""[!] This file is autogenerated""" + + +REGISTRY = { + +} diff --git a/aiocraft/mc/proto/handshaking/serverbound/__init__.py b/aiocraft/mc/proto/handshaking/serverbound/__init__.py new file mode 100644 index 0000000..a14e10f --- /dev/null +++ b/aiocraft/mc/proto/handshaking/serverbound/__init__.py @@ -0,0 +1,46 @@ +"""[!] This file is autogenerated""" + +from .packet_set_protocol import PacketSetProtocol +from .packet_legacy_server_list_ping import PacketLegacyServerListPing + +REGISTRY = { + 1073741839 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 709 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 351 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 327 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 321 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 304 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 201 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 76 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 107 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 110 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 109 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 108 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 47 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 5 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 757 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 755 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 756 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 735 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 751 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 736 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 734 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 573 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 578 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 575 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 477 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 498 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 490 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 480 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 393 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 404 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 403 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 402 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 401 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 335 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 340 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 338 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 331 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 315 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing }, + 210 : { 0:PacketSetProtocol, 254:PacketLegacyServerListPing } +} diff --git a/aiocraft/mc/proto/handshaking/serverbound/packet_legacy_server_list_ping.py b/aiocraft/mc/proto/handshaking/serverbound/packet_legacy_server_list_ping.py new file mode 100644 index 0000000..a6eee54 --- /dev/null +++ b/aiocraft/mc/proto/handshaking/serverbound/packet_legacy_server_list_ping.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketLegacyServerListPing(Packet): + __slots__ = ( 'id', 'payload' ) + + payload : int + + _state : int = 0 + + _ids : Dict[int, int] = { + 5 : 254, + 47 : 254, + 76 : 254, + 107 : 254, + 108 : 254, + 109 : 254, + 110 : 254, + 201 : 254, + 210 : 254, + 304 : 254, + 315 : 254, + 321 : 254, + 327 : 254, + 331 : 254, + 335 : 254, + 338 : 254, + 340 : 254, + 351 : 254, + 393 : 254, + 401 : 254, + 402 : 254, + 403 : 254, + 404 : 254, + 477 : 254, + 480 : 254, + 490 : 254, + 498 : 254, + 573 : 254, + 575 : 254, + 578 : 254, + 709 : 254, + 734 : 254, + 735 : 254, + 736 : 254, + 751 : 254, + 755 : 254, + 756 : 254, + 757 : 254, + 1073741839 : 254 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'payload', Byte ) ], + 47 : [ ( 'payload', Byte ) ], + 76 : [ ( 'payload', Byte ) ], + 107 : [ ( 'payload', Byte ) ], + 108 : [ ( 'payload', Byte ) ], + 109 : [ ( 'payload', Byte ) ], + 110 : [ ( 'payload', Byte ) ], + 201 : [ ( 'payload', Byte ) ], + 210 : [ ( 'payload', Byte ) ], + 304 : [ ( 'payload', Byte ) ], + 315 : [ ( 'payload', Byte ) ], + 321 : [ ( 'payload', Byte ) ], + 327 : [ ( 'payload', Byte ) ], + 331 : [ ( 'payload', Byte ) ], + 335 : [ ( 'payload', Byte ) ], + 338 : [ ( 'payload', Byte ) ], + 340 : [ ( 'payload', Byte ) ], + 351 : [ ( 'payload', Byte ) ], + 393 : [ ( 'payload', Byte ) ], + 401 : [ ( 'payload', Byte ) ], + 402 : [ ( 'payload', Byte ) ], + 403 : [ ( 'payload', Byte ) ], + 404 : [ ( 'payload', Byte ) ], + 477 : [ ( 'payload', Byte ) ], + 480 : [ ( 'payload', Byte ) ], + 490 : [ ( 'payload', Byte ) ], + 498 : [ ( 'payload', Byte ) ], + 573 : [ ( 'payload', Byte ) ], + 575 : [ ( 'payload', Byte ) ], + 578 : [ ( 'payload', Byte ) ], + 709 : [ ( 'payload', Byte ) ], + 734 : [ ( 'payload', Byte ) ], + 735 : [ ( 'payload', Byte ) ], + 736 : [ ( 'payload', Byte ) ], + 751 : [ ( 'payload', Byte ) ], + 755 : [ ( 'payload', Byte ) ], + 756 : [ ( 'payload', Byte ) ], + 757 : [ ( 'payload', Byte ) ], + 1073741839 : [ ( 'payload', Byte ) ] + } diff --git a/aiocraft/mc/proto/handshaking/serverbound/packet_set_protocol.py b/aiocraft/mc/proto/handshaking/serverbound/packet_set_protocol.py new file mode 100644 index 0000000..94ec108 --- /dev/null +++ b/aiocraft/mc/proto/handshaking/serverbound/packet_set_protocol.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetProtocol(Packet): + __slots__ = ( 'id', 'serverPort', 'serverHost', 'protocolVersion', 'nextState' ) + + serverPort : int + serverHost : str + protocolVersion : int + nextState : int + + _state : int = 0 + + _ids : Dict[int, int] = { + 5 : 0, + 47 : 0, + 76 : 0, + 107 : 0, + 108 : 0, + 109 : 0, + 110 : 0, + 201 : 0, + 210 : 0, + 304 : 0, + 315 : 0, + 321 : 0, + 327 : 0, + 331 : 0, + 335 : 0, + 338 : 0, + 340 : 0, + 351 : 0, + 393 : 0, + 401 : 0, + 402 : 0, + 403 : 0, + 404 : 0, + 477 : 0, + 480 : 0, + 490 : 0, + 498 : 0, + 573 : 0, + 575 : 0, + 578 : 0, + 709 : 0, + 734 : 0, + 735 : 0, + 736 : 0, + 751 : 0, + 755 : 0, + 756 : 0, + 757 : 0, + 1073741839 : 0 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 47 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 76 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 107 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 108 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 109 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 110 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 201 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 210 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 304 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 315 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 321 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 327 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 331 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 335 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 338 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 340 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 351 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 393 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 401 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 402 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 403 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 404 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 477 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 480 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 490 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 498 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 573 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 575 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 578 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 709 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 734 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 735 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 736 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 751 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 755 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 756 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 757 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ], + 1073741839 : [ ( 'protocolVersion', VarInt ), ( 'serverHost', String ), ( 'serverPort', UnsignedShort ), ( 'nextState', VarInt ) ] + } diff --git a/aiocraft/mc/proto/login/__init__.py b/aiocraft/mc/proto/login/__init__.py new file mode 100644 index 0000000..ca03e38 --- /dev/null +++ b/aiocraft/mc/proto/login/__init__.py @@ -0,0 +1,4 @@ +"""[!] This file is autogenerated""" + +from .clientbound import * +from .serverbound import * diff --git a/aiocraft/mc/proto/login/clientbound/__init__.py b/aiocraft/mc/proto/login/clientbound/__init__.py new file mode 100644 index 0000000..2695704 --- /dev/null +++ b/aiocraft/mc/proto/login/clientbound/__init__.py @@ -0,0 +1,49 @@ +"""[!] This file is autogenerated""" + +from .packet_disconnect import PacketDisconnect +from .packet_encryption_begin import PacketEncryptionBegin +from .packet_success import PacketSuccess +from .packet_compress import PacketCompress +from .packet_login_plugin_request import PacketLoginPluginRequest + +REGISTRY = { + 1073741839 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 709 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 351 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 327 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 321 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 304 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 201 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 76 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 107 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 110 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 109 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 108 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 47 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 5 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess }, + 757 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 755 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 756 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 735 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 751 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 736 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 734 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 573 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 578 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 575 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 477 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 498 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 490 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 480 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 393 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 404 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 403 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 402 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 401 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress, 4:PacketLoginPluginRequest }, + 335 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 340 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 338 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 331 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 315 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress }, + 210 : { 0:PacketDisconnect, 1:PacketEncryptionBegin, 2:PacketSuccess, 3:PacketCompress } +} diff --git a/aiocraft/mc/proto/login/clientbound/packet_compress.py b/aiocraft/mc/proto/login/clientbound/packet_compress.py new file mode 100644 index 0000000..2ca92ca --- /dev/null +++ b/aiocraft/mc/proto/login/clientbound/packet_compress.py @@ -0,0 +1,93 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCompress(Packet): + __slots__ = ( 'id', 'threshold' ) + + threshold : int + + _state : int = 2 + + _ids : Dict[int, int] = { + 47 : 3, + 76 : 3, + 107 : 3, + 108 : 3, + 109 : 3, + 110 : 3, + 201 : 3, + 210 : 3, + 304 : 3, + 315 : 3, + 321 : 3, + 327 : 3, + 331 : 3, + 335 : 3, + 338 : 3, + 340 : 3, + 351 : 3, + 393 : 3, + 401 : 3, + 402 : 3, + 403 : 3, + 404 : 3, + 477 : 3, + 480 : 3, + 490 : 3, + 498 : 3, + 573 : 3, + 575 : 3, + 578 : 3, + 709 : 3, + 734 : 3, + 735 : 3, + 736 : 3, + 751 : 3, + 755 : 3, + 756 : 3, + 757 : 3, + 1073741839 : 3 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'threshold', VarInt ) ], + 76 : [ ( 'threshold', VarInt ) ], + 107 : [ ( 'threshold', VarInt ) ], + 108 : [ ( 'threshold', VarInt ) ], + 109 : [ ( 'threshold', VarInt ) ], + 110 : [ ( 'threshold', VarInt ) ], + 201 : [ ( 'threshold', VarInt ) ], + 210 : [ ( 'threshold', VarInt ) ], + 304 : [ ( 'threshold', VarInt ) ], + 315 : [ ( 'threshold', VarInt ) ], + 321 : [ ( 'threshold', VarInt ) ], + 327 : [ ( 'threshold', VarInt ) ], + 331 : [ ( 'threshold', VarInt ) ], + 335 : [ ( 'threshold', VarInt ) ], + 338 : [ ( 'threshold', VarInt ) ], + 340 : [ ( 'threshold', VarInt ) ], + 351 : [ ( 'threshold', VarInt ) ], + 393 : [ ( 'threshold', VarInt ) ], + 401 : [ ( 'threshold', VarInt ) ], + 402 : [ ( 'threshold', VarInt ) ], + 403 : [ ( 'threshold', VarInt ) ], + 404 : [ ( 'threshold', VarInt ) ], + 477 : [ ( 'threshold', VarInt ) ], + 480 : [ ( 'threshold', VarInt ) ], + 490 : [ ( 'threshold', VarInt ) ], + 498 : [ ( 'threshold', VarInt ) ], + 573 : [ ( 'threshold', VarInt ) ], + 575 : [ ( 'threshold', VarInt ) ], + 578 : [ ( 'threshold', VarInt ) ], + 709 : [ ( 'threshold', VarInt ) ], + 734 : [ ( 'threshold', VarInt ) ], + 735 : [ ( 'threshold', VarInt ) ], + 736 : [ ( 'threshold', VarInt ) ], + 751 : [ ( 'threshold', VarInt ) ], + 755 : [ ( 'threshold', VarInt ) ], + 756 : [ ( 'threshold', VarInt ) ], + 757 : [ ( 'threshold', VarInt ) ], + 1073741839 : [ ( 'threshold', VarInt ) ] + } diff --git a/aiocraft/mc/proto/login/clientbound/packet_disconnect.py b/aiocraft/mc/proto/login/clientbound/packet_disconnect.py new file mode 100644 index 0000000..42833c4 --- /dev/null +++ b/aiocraft/mc/proto/login/clientbound/packet_disconnect.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketDisconnect(Packet): + __slots__ = ( 'id', 'reason' ) + + reason : str + + _state : int = 2 + + _ids : Dict[int, int] = { + 5 : 0, + 47 : 0, + 76 : 0, + 107 : 0, + 108 : 0, + 109 : 0, + 110 : 0, + 201 : 0, + 210 : 0, + 304 : 0, + 315 : 0, + 321 : 0, + 327 : 0, + 331 : 0, + 335 : 0, + 338 : 0, + 340 : 0, + 351 : 0, + 393 : 0, + 401 : 0, + 402 : 0, + 403 : 0, + 404 : 0, + 477 : 0, + 480 : 0, + 490 : 0, + 498 : 0, + 573 : 0, + 575 : 0, + 578 : 0, + 709 : 0, + 734 : 0, + 735 : 0, + 736 : 0, + 751 : 0, + 755 : 0, + 756 : 0, + 757 : 0, + 1073741839 : 0 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'reason', String ) ], + 47 : [ ( 'reason', String ) ], + 76 : [ ( 'reason', String ) ], + 107 : [ ( 'reason', String ) ], + 108 : [ ( 'reason', String ) ], + 109 : [ ( 'reason', String ) ], + 110 : [ ( 'reason', String ) ], + 201 : [ ( 'reason', String ) ], + 210 : [ ( 'reason', String ) ], + 304 : [ ( 'reason', String ) ], + 315 : [ ( 'reason', String ) ], + 321 : [ ( 'reason', String ) ], + 327 : [ ( 'reason', String ) ], + 331 : [ ( 'reason', String ) ], + 335 : [ ( 'reason', String ) ], + 338 : [ ( 'reason', String ) ], + 340 : [ ( 'reason', String ) ], + 351 : [ ( 'reason', String ) ], + 393 : [ ( 'reason', String ) ], + 401 : [ ( 'reason', String ) ], + 402 : [ ( 'reason', String ) ], + 403 : [ ( 'reason', String ) ], + 404 : [ ( 'reason', String ) ], + 477 : [ ( 'reason', String ) ], + 480 : [ ( 'reason', String ) ], + 490 : [ ( 'reason', String ) ], + 498 : [ ( 'reason', String ) ], + 573 : [ ( 'reason', String ) ], + 575 : [ ( 'reason', String ) ], + 578 : [ ( 'reason', String ) ], + 709 : [ ( 'reason', String ) ], + 734 : [ ( 'reason', String ) ], + 735 : [ ( 'reason', String ) ], + 736 : [ ( 'reason', String ) ], + 751 : [ ( 'reason', String ) ], + 755 : [ ( 'reason', String ) ], + 756 : [ ( 'reason', String ) ], + 757 : [ ( 'reason', String ) ], + 1073741839 : [ ( 'reason', String ) ] + } diff --git a/aiocraft/mc/proto/login/clientbound/packet_encryption_begin.py b/aiocraft/mc/proto/login/clientbound/packet_encryption_begin.py new file mode 100644 index 0000000..404a8bf --- /dev/null +++ b/aiocraft/mc/proto/login/clientbound/packet_encryption_begin.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEncryptionBegin(Packet): + __slots__ = ( 'id', 'serverId', 'verifyToken', 'publicKey' ) + + serverId : str + verifyToken : bytes + publicKey : bytes + + _state : int = 2 + + _ids : Dict[int, int] = { + 5 : 1, + 47 : 1, + 76 : 1, + 107 : 1, + 108 : 1, + 109 : 1, + 110 : 1, + 201 : 1, + 210 : 1, + 304 : 1, + 315 : 1, + 321 : 1, + 327 : 1, + 331 : 1, + 335 : 1, + 338 : 1, + 340 : 1, + 351 : 1, + 393 : 1, + 401 : 1, + 402 : 1, + 403 : 1, + 404 : 1, + 477 : 1, + 480 : 1, + 490 : 1, + 498 : 1, + 573 : 1, + 575 : 1, + 578 : 1, + 709 : 1, + 734 : 1, + 735 : 1, + 736 : 1, + 751 : 1, + 755 : 1, + 756 : 1, + 757 : 1, + 1073741839 : 1 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 47 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 76 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 107 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 108 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 109 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 110 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 201 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 210 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 304 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 315 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 321 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 327 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 331 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 335 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 338 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 340 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 351 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 393 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 401 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 402 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 403 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 404 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 477 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 480 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 490 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 498 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 573 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 575 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 578 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 709 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 734 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 735 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 736 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 751 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 755 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 756 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 757 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ], + 1073741839 : [ ( 'serverId', String ), ( 'publicKey', ByteArray ), ( 'verifyToken', ByteArray ) ] + } diff --git a/aiocraft/mc/proto/login/clientbound/packet_login_plugin_request.py b/aiocraft/mc/proto/login/clientbound/packet_login_plugin_request.py new file mode 100644 index 0000000..412d2cc --- /dev/null +++ b/aiocraft/mc/proto/login/clientbound/packet_login_plugin_request.py @@ -0,0 +1,61 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketLoginPluginRequest(Packet): + __slots__ = ( 'id', 'data', 'messageId', 'channel' ) + + data : bytes + messageId : int + channel : str + + _state : int = 2 + + _ids : Dict[int, int] = { + 393 : 4, + 401 : 4, + 402 : 4, + 403 : 4, + 404 : 4, + 477 : 4, + 480 : 4, + 490 : 4, + 498 : 4, + 573 : 4, + 575 : 4, + 578 : 4, + 709 : 4, + 734 : 4, + 735 : 4, + 736 : 4, + 751 : 4, + 755 : 4, + 756 : 4, + 757 : 4, + 1073741839 : 4 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 401 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 402 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 403 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 404 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 477 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 480 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 490 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 498 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 573 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 575 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 578 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 709 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 734 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 735 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 736 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 751 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 755 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 756 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 757 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ], + 1073741839 : [ ( 'messageId', VarInt ), ( 'channel', String ), ( 'data', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/login/clientbound/packet_success.py b/aiocraft/mc/proto/login/clientbound/packet_success.py new file mode 100644 index 0000000..b9a7f31 --- /dev/null +++ b/aiocraft/mc/proto/login/clientbound/packet_success.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSuccess(Packet): + __slots__ = ( 'id', 'uuid', 'username' ) + + uuid : str + username : str + + _state : int = 2 + + _ids : Dict[int, int] = { + 5 : 2, + 47 : 2, + 76 : 2, + 107 : 2, + 108 : 2, + 109 : 2, + 110 : 2, + 201 : 2, + 210 : 2, + 304 : 2, + 315 : 2, + 321 : 2, + 327 : 2, + 331 : 2, + 335 : 2, + 338 : 2, + 340 : 2, + 351 : 2, + 393 : 2, + 401 : 2, + 402 : 2, + 403 : 2, + 404 : 2, + 477 : 2, + 480 : 2, + 490 : 2, + 498 : 2, + 573 : 2, + 575 : 2, + 578 : 2, + 709 : 2, + 734 : 2, + 735 : 2, + 736 : 2, + 751 : 2, + 755 : 2, + 756 : 2, + 757 : 2, + 1073741839 : 2 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'uuid', String ), ( 'username', String ) ], + 47 : [ ( 'uuid', String ), ( 'username', String ) ], + 76 : [ ( 'uuid', String ), ( 'username', String ) ], + 107 : [ ( 'uuid', String ), ( 'username', String ) ], + 108 : [ ( 'uuid', String ), ( 'username', String ) ], + 109 : [ ( 'uuid', String ), ( 'username', String ) ], + 110 : [ ( 'uuid', String ), ( 'username', String ) ], + 201 : [ ( 'uuid', String ), ( 'username', String ) ], + 210 : [ ( 'uuid', String ), ( 'username', String ) ], + 304 : [ ( 'uuid', String ), ( 'username', String ) ], + 315 : [ ( 'uuid', String ), ( 'username', String ) ], + 321 : [ ( 'uuid', String ), ( 'username', String ) ], + 327 : [ ( 'uuid', String ), ( 'username', String ) ], + 331 : [ ( 'uuid', String ), ( 'username', String ) ], + 335 : [ ( 'uuid', String ), ( 'username', String ) ], + 338 : [ ( 'uuid', String ), ( 'username', String ) ], + 340 : [ ( 'uuid', String ), ( 'username', String ) ], + 351 : [ ( 'uuid', String ), ( 'username', String ) ], + 393 : [ ( 'uuid', String ), ( 'username', String ) ], + 401 : [ ( 'uuid', String ), ( 'username', String ) ], + 402 : [ ( 'uuid', String ), ( 'username', String ) ], + 403 : [ ( 'uuid', String ), ( 'username', String ) ], + 404 : [ ( 'uuid', String ), ( 'username', String ) ], + 477 : [ ( 'uuid', String ), ( 'username', String ) ], + 480 : [ ( 'uuid', String ), ( 'username', String ) ], + 490 : [ ( 'uuid', String ), ( 'username', String ) ], + 498 : [ ( 'uuid', String ), ( 'username', String ) ], + 573 : [ ( 'uuid', String ), ( 'username', String ) ], + 575 : [ ( 'uuid', String ), ( 'username', String ) ], + 578 : [ ( 'uuid', String ), ( 'username', String ) ], + 709 : [ ( 'uuid', UUID ), ( 'username', String ) ], + 734 : [ ( 'uuid', UUID ), ( 'username', String ) ], + 735 : [ ( 'uuid', UUID ), ( 'username', String ) ], + 736 : [ ( 'uuid', UUID ), ( 'username', String ) ], + 751 : [ ( 'uuid', UUID ), ( 'username', String ) ], + 755 : [ ( 'uuid', UUID ), ( 'username', String ) ], + 756 : [ ( 'uuid', UUID ), ( 'username', String ) ], + 757 : [ ( 'uuid', UUID ), ( 'username', String ) ], + 1073741839 : [ ( 'uuid', UUID ), ( 'username', String ) ] + } diff --git a/aiocraft/mc/proto/login/serverbound/__init__.py b/aiocraft/mc/proto/login/serverbound/__init__.py new file mode 100644 index 0000000..1c3bff1 --- /dev/null +++ b/aiocraft/mc/proto/login/serverbound/__init__.py @@ -0,0 +1,47 @@ +"""[!] This file is autogenerated""" + +from .packet_login_start import PacketLoginStart +from .packet_encryption_begin import PacketEncryptionBegin +from .packet_login_plugin_response import PacketLoginPluginResponse + +REGISTRY = { + 1073741839 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 709 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 351 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 327 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 321 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 304 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 201 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 76 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 107 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 110 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 109 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 108 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 47 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 5 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 757 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 755 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 756 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 735 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 751 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 736 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 734 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 573 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 578 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 575 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 477 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 498 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 490 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 480 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 393 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 404 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 403 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 402 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 401 : { 0:PacketLoginStart, 1:PacketEncryptionBegin, 2:PacketLoginPluginResponse }, + 335 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 340 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 338 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 331 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 315 : { 0:PacketLoginStart, 1:PacketEncryptionBegin }, + 210 : { 0:PacketLoginStart, 1:PacketEncryptionBegin } +} diff --git a/aiocraft/mc/proto/login/serverbound/packet_encryption_begin.py b/aiocraft/mc/proto/login/serverbound/packet_encryption_begin.py new file mode 100644 index 0000000..c412292 --- /dev/null +++ b/aiocraft/mc/proto/login/serverbound/packet_encryption_begin.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEncryptionBegin(Packet): + __slots__ = ( 'id', 'verifyToken', 'sharedSecret' ) + + verifyToken : bytes + sharedSecret : bytes + + _state : int = 2 + + _ids : Dict[int, int] = { + 5 : 1, + 47 : 1, + 76 : 1, + 107 : 1, + 108 : 1, + 109 : 1, + 110 : 1, + 201 : 1, + 210 : 1, + 304 : 1, + 315 : 1, + 321 : 1, + 327 : 1, + 331 : 1, + 335 : 1, + 338 : 1, + 340 : 1, + 351 : 1, + 393 : 1, + 401 : 1, + 402 : 1, + 403 : 1, + 404 : 1, + 477 : 1, + 480 : 1, + 490 : 1, + 498 : 1, + 573 : 1, + 575 : 1, + 578 : 1, + 709 : 1, + 734 : 1, + 735 : 1, + 736 : 1, + 751 : 1, + 755 : 1, + 756 : 1, + 757 : 1, + 1073741839 : 1 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 47 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 76 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 107 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 108 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 109 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 110 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 201 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 210 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 304 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 315 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 321 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 327 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 331 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 335 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 338 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 340 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 351 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 393 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 401 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 402 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 403 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 404 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 477 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 480 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 490 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 498 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 573 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 575 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 578 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 709 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 734 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 735 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 736 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 751 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 755 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 756 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 757 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ], + 1073741839 : [ ( 'sharedSecret', ByteArray ), ( 'verifyToken', ByteArray ) ] + } diff --git a/aiocraft/mc/proto/login/serverbound/packet_login_plugin_response.py b/aiocraft/mc/proto/login/serverbound/packet_login_plugin_response.py new file mode 100644 index 0000000..e7a6e90 --- /dev/null +++ b/aiocraft/mc/proto/login/serverbound/packet_login_plugin_response.py @@ -0,0 +1,60 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketLoginPluginResponse(Packet): + __slots__ = ( 'id', 'data', 'messageId' ) + + data : tuple + messageId : int + + _state : int = 2 + + _ids : Dict[int, int] = { + 393 : 2, + 401 : 2, + 402 : 2, + 403 : 2, + 404 : 2, + 477 : 2, + 480 : 2, + 490 : 2, + 498 : 2, + 573 : 2, + 575 : 2, + 578 : 2, + 709 : 2, + 734 : 2, + 735 : 2, + 736 : 2, + 751 : 2, + 755 : 2, + 756 : 2, + 757 : 2, + 1073741839 : 2 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 401 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 402 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 403 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 404 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 477 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 480 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 490 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 498 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 573 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 575 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 578 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 709 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 734 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 735 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 736 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 751 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 755 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 756 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 757 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ], + 1073741839 : [ ( 'messageId', VarInt ), ( 'data', OptionalType(TrailingData, ) ) ] + } diff --git a/aiocraft/mc/proto/login/serverbound/packet_login_start.py b/aiocraft/mc/proto/login/serverbound/packet_login_start.py new file mode 100644 index 0000000..8bd8d92 --- /dev/null +++ b/aiocraft/mc/proto/login/serverbound/packet_login_start.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketLoginStart(Packet): + __slots__ = ( 'id', 'username' ) + + username : str + + _state : int = 2 + + _ids : Dict[int, int] = { + 5 : 0, + 47 : 0, + 76 : 0, + 107 : 0, + 108 : 0, + 109 : 0, + 110 : 0, + 201 : 0, + 210 : 0, + 304 : 0, + 315 : 0, + 321 : 0, + 327 : 0, + 331 : 0, + 335 : 0, + 338 : 0, + 340 : 0, + 351 : 0, + 393 : 0, + 401 : 0, + 402 : 0, + 403 : 0, + 404 : 0, + 477 : 0, + 480 : 0, + 490 : 0, + 498 : 0, + 573 : 0, + 575 : 0, + 578 : 0, + 709 : 0, + 734 : 0, + 735 : 0, + 736 : 0, + 751 : 0, + 755 : 0, + 756 : 0, + 757 : 0, + 1073741839 : 0 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'username', String ) ], + 47 : [ ( 'username', String ) ], + 76 : [ ( 'username', String ) ], + 107 : [ ( 'username', String ) ], + 108 : [ ( 'username', String ) ], + 109 : [ ( 'username', String ) ], + 110 : [ ( 'username', String ) ], + 201 : [ ( 'username', String ) ], + 210 : [ ( 'username', String ) ], + 304 : [ ( 'username', String ) ], + 315 : [ ( 'username', String ) ], + 321 : [ ( 'username', String ) ], + 327 : [ ( 'username', String ) ], + 331 : [ ( 'username', String ) ], + 335 : [ ( 'username', String ) ], + 338 : [ ( 'username', String ) ], + 340 : [ ( 'username', String ) ], + 351 : [ ( 'username', String ) ], + 393 : [ ( 'username', String ) ], + 401 : [ ( 'username', String ) ], + 402 : [ ( 'username', String ) ], + 403 : [ ( 'username', String ) ], + 404 : [ ( 'username', String ) ], + 477 : [ ( 'username', String ) ], + 480 : [ ( 'username', String ) ], + 490 : [ ( 'username', String ) ], + 498 : [ ( 'username', String ) ], + 573 : [ ( 'username', String ) ], + 575 : [ ( 'username', String ) ], + 578 : [ ( 'username', String ) ], + 709 : [ ( 'username', String ) ], + 734 : [ ( 'username', String ) ], + 735 : [ ( 'username', String ) ], + 736 : [ ( 'username', String ) ], + 751 : [ ( 'username', String ) ], + 755 : [ ( 'username', String ) ], + 756 : [ ( 'username', String ) ], + 757 : [ ( 'username', String ) ], + 1073741839 : [ ( 'username', String ) ] + } diff --git a/aiocraft/mc/proto/play/__init__.py b/aiocraft/mc/proto/play/__init__.py new file mode 100644 index 0000000..ca03e38 --- /dev/null +++ b/aiocraft/mc/proto/play/__init__.py @@ -0,0 +1,4 @@ +"""[!] This file is autogenerated""" + +from .clientbound import * +from .serverbound import * diff --git a/aiocraft/mc/proto/play/clientbound/__init__.py b/aiocraft/mc/proto/play/clientbound/__init__.py new file mode 100644 index 0000000..48bf2d6 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/__init__.py @@ -0,0 +1,163 @@ +"""[!] This file is autogenerated""" + +from .packet_spawn_entity import PacketSpawnEntity +from .packet_spawn_entity_experience_orb import PacketSpawnEntityExperienceOrb +from .packet_spawn_entity_living import PacketSpawnEntityLiving +from .packet_spawn_entity_painting import PacketSpawnEntityPainting +from .packet_named_entity_spawn import PacketNamedEntitySpawn +from .packet_animation import PacketAnimation +from .packet_statistics import PacketStatistics +from .packet_advancements import PacketAdvancements +from .packet_block_break_animation import PacketBlockBreakAnimation +from .packet_tile_entity_data import PacketTileEntityData +from .packet_block_action import PacketBlockAction +from .packet_block_change import PacketBlockChange +from .packet_boss_bar import PacketBossBar +from .packet_difficulty import PacketDifficulty +from .packet_tab_complete import PacketTabComplete +from .packet_declare_commands import PacketDeclareCommands +from .packet_face_player import PacketFacePlayer +from .packet_nbt_query_response import PacketNbtQueryResponse +from .packet_chat import PacketChat +from .packet_multi_block_change import PacketMultiBlockChange +from .packet_transaction import PacketTransaction +from .packet_close_window import PacketCloseWindow +from .packet_open_window import PacketOpenWindow +from .packet_window_items import PacketWindowItems +from .packet_craft_progress_bar import PacketCraftProgressBar +from .packet_set_slot import PacketSetSlot +from .packet_set_cooldown import PacketSetCooldown +from .packet_custom_payload import PacketCustomPayload +from .packet_named_sound_effect import PacketNamedSoundEffect +from .packet_kick_disconnect import PacketKickDisconnect +from .packet_entity_status import PacketEntityStatus +from .packet_explosion import PacketExplosion +from .packet_unload_chunk import PacketUnloadChunk +from .packet_game_state_change import PacketGameStateChange +from .packet_open_horse_window import PacketOpenHorseWindow +from .packet_keep_alive import PacketKeepAlive +from .packet_map_chunk import PacketMapChunk +from .packet_world_event import PacketWorldEvent +from .packet_world_particles import PacketWorldParticles +from .packet_update_light import PacketUpdateLight +from .packet_login import PacketLogin +from .packet_map import PacketMap +from .packet_trade_list import PacketTradeList +from .packet_rel_entity_move import PacketRelEntityMove +from .packet_entity_move_look import PacketEntityMoveLook +from .packet_entity_look import PacketEntityLook +from .packet_entity import PacketEntity +from .packet_vehicle_move import PacketVehicleMove +from .packet_open_book import PacketOpenBook +from .packet_open_sign_entity import PacketOpenSignEntity +from .packet_craft_recipe_response import PacketCraftRecipeResponse +from .packet_abilities import PacketAbilities +from .packet_combat_event import PacketCombatEvent +from .packet_player_info import PacketPlayerInfo +from .packet_position import PacketPosition +from .packet_unlock_recipes import PacketUnlockRecipes +from .packet_entity_destroy import PacketEntityDestroy +from .packet_remove_entity_effect import PacketRemoveEntityEffect +from .packet_resource_pack_send import PacketResourcePackSend +from .packet_respawn import PacketRespawn +from .packet_entity_head_rotation import PacketEntityHeadRotation +from .packet_world_border import PacketWorldBorder +from .packet_camera import PacketCamera +from .packet_held_item_slot import PacketHeldItemSlot +from .packet_update_view_position import PacketUpdateViewPosition +from .packet_update_view_distance import PacketUpdateViewDistance +from .packet_scoreboard_display_objective import PacketScoreboardDisplayObjective +from .packet_entity_metadata import PacketEntityMetadata +from .packet_attach_entity import PacketAttachEntity +from .packet_entity_velocity import PacketEntityVelocity +from .packet_entity_equipment import PacketEntityEquipment +from .packet_experience import PacketExperience +from .packet_update_health import PacketUpdateHealth +from .packet_scoreboard_objective import PacketScoreboardObjective +from .packet_set_passengers import PacketSetPassengers +from .packet_teams import PacketTeams +from .packet_scoreboard_score import PacketScoreboardScore +from .packet_spawn_position import PacketSpawnPosition +from .packet_update_time import PacketUpdateTime +from .packet_title import PacketTitle +from .packet_entity_sound_effect import PacketEntitySoundEffect +from .packet_stop_sound import PacketStopSound +from .packet_sound_effect import PacketSoundEffect +from .packet_playerlist_header import PacketPlayerlistHeader +from .packet_collect import PacketCollect +from .packet_entity_teleport import PacketEntityTeleport +from .packet_entity_update_attributes import PacketEntityUpdateAttributes +from .packet_entity_effect import PacketEntityEffect +from .packet_select_advancement_tab import PacketSelectAdvancementTab +from .packet_declare_recipes import PacketDeclareRecipes +from .packet_tags import PacketTags +from .packet_acknowledge_player_digging import PacketAcknowledgePlayerDigging +from .packet_sculk_vibration_signal import PacketSculkVibrationSignal +from .packet_spawn_entity_weather import PacketSpawnEntityWeather +from .packet_bed import PacketBed +from .packet_update_attributes import PacketUpdateAttributes +from .packet_update_sign import PacketUpdateSign +from .packet_scoreboard_team import PacketScoreboardTeam +from .packet_set_compression import PacketSetCompression +from .packet_map_chunk_bulk import PacketMapChunkBulk +from .packet_update_entity_nbt import PacketUpdateEntityNbt +from .packet_end_combat_event import PacketEndCombatEvent +from .packet_enter_combat_event import PacketEnterCombatEvent +from .packet_death_combat_event import PacketDeathCombatEvent +from .packet_clear_titles import PacketClearTitles +from .packet_initialize_world_border import PacketInitializeWorldBorder +from .packet_action_bar import PacketActionBar +from .packet_world_border_center import PacketWorldBorderCenter +from .packet_world_border_lerp_size import PacketWorldBorderLerpSize +from .packet_world_border_size import PacketWorldBorderSize +from .packet_world_border_warning_delay import PacketWorldBorderWarningDelay +from .packet_world_border_warning_reach import PacketWorldBorderWarningReach +from .packet_ping import PacketPing +from .packet_set_title_subtitle import PacketSetTitleSubtitle +from .packet_set_title_text import PacketSetTitleText +from .packet_set_title_time import PacketSetTitleTime +from .packet_simulation_distance import PacketSimulationDistance +from .packet_destroy_entity import PacketDestroyEntity +from .packet_advancement_progress import PacketAdvancementProgress + +REGISTRY = { + 1073741839 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 2:PacketSpawnEntityLiving, 3:PacketSpawnEntityPainting, 4:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 88:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 52:PacketFacePlayer, 85:PacketNbtQueryResponse, 15:PacketChat, 60:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketUpdateLight, 37:PacketLogin, 38:PacketMap, 39:PacketTradeList, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 43:PacketEntity, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 48:PacketCraftRecipeResponse, 49:PacketAbilities, 50:PacketCombatEvent, 51:PacketPlayerInfo, 53:PacketPosition, 54:PacketUnlockRecipes, 55:PacketEntityDestroy, 56:PacketRemoveEntityEffect, 57:PacketResourcePackSend, 58:PacketRespawn, 59:PacketEntityHeadRotation, 62:PacketWorldBorder, 63:PacketCamera, 64:PacketHeldItemSlot, 65:PacketUpdateViewPosition, 66:PacketUpdateViewDistance, 68:PacketScoreboardDisplayObjective, 69:PacketEntityMetadata, 70:PacketAttachEntity, 71:PacketEntityVelocity, 72:PacketEntityEquipment, 73:PacketExperience, 74:PacketUpdateHealth, 75:PacketScoreboardObjective, 76:PacketSetPassengers, 77:PacketTeams, 78:PacketScoreboardScore, 67:PacketSpawnPosition, 79:PacketUpdateTime, 80:PacketTitle, 81:PacketEntitySoundEffect, 83:PacketStopSound, 82:PacketSoundEffect, 84:PacketPlayerlistHeader, 86:PacketCollect, 87:PacketEntityTeleport, 89:PacketEntityUpdateAttributes, 90:PacketEntityEffect, 61:PacketSelectAdvancementTab, 91:PacketDeclareRecipes, 92:PacketTags, 8:PacketAcknowledgePlayerDigging, 5:PacketSculkVibrationSignal }, + 709 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 88:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 17:PacketTabComplete, 18:PacketDeclareCommands, 53:PacketFacePlayer, 85:PacketNbtQueryResponse, 15:PacketChat, 16:PacketMultiBlockChange, 19:PacketTransaction, 20:PacketCloseWindow, 47:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 29:PacketExplosion, 30:PacketUnloadChunk, 31:PacketGameStateChange, 32:PacketOpenHorseWindow, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketUpdateLight, 38:PacketLogin, 39:PacketMap, 40:PacketTradeList, 41:PacketRelEntityMove, 42:PacketEntityMoveLook, 43:PacketEntityLook, 44:PacketEntity, 45:PacketVehicleMove, 46:PacketOpenBook, 48:PacketOpenSignEntity, 49:PacketCraftRecipeResponse, 50:PacketAbilities, 51:PacketCombatEvent, 52:PacketPlayerInfo, 54:PacketPosition, 55:PacketUnlockRecipes, 56:PacketEntityDestroy, 57:PacketRemoveEntityEffect, 58:PacketResourcePackSend, 59:PacketRespawn, 60:PacketEntityHeadRotation, 62:PacketWorldBorder, 63:PacketCamera, 64:PacketHeldItemSlot, 65:PacketUpdateViewPosition, 66:PacketUpdateViewDistance, 68:PacketScoreboardDisplayObjective, 69:PacketEntityMetadata, 70:PacketAttachEntity, 71:PacketEntityVelocity, 72:PacketEntityEquipment, 73:PacketExperience, 74:PacketUpdateHealth, 75:PacketScoreboardObjective, 76:PacketSetPassengers, 77:PacketTeams, 78:PacketScoreboardScore, 67:PacketSpawnPosition, 79:PacketUpdateTime, 80:PacketTitle, 81:PacketEntitySoundEffect, 83:PacketStopSound, 82:PacketSoundEffect, 84:PacketPlayerlistHeader, 86:PacketCollect, 87:PacketEntityTeleport, 89:PacketEntityUpdateAttributes, 90:PacketEntityEffect, 61:PacketSelectAdvancementTab, 91:PacketDeclareRecipes, 92:PacketTags, 8:PacketAcknowledgePlayerDigging, 2:PacketSpawnEntityWeather }, + 351 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 79:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 29:PacketExplosion, 30:PacketUnloadChunk, 31:PacketGameStateChange, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketLogin, 37:PacketMap, 39:PacketRelEntityMove, 40:PacketEntityMoveLook, 41:PacketEntityLook, 38:PacketEntity, 42:PacketVehicleMove, 43:PacketOpenSignEntity, 44:PacketCraftRecipeResponse, 45:PacketAbilities, 46:PacketCombatEvent, 47:PacketPlayerInfo, 48:PacketPosition, 50:PacketUnlockRecipes, 51:PacketEntityDestroy, 52:PacketRemoveEntityEffect, 53:PacketResourcePackSend, 54:PacketRespawn, 55:PacketEntityHeadRotation, 57:PacketWorldBorder, 58:PacketCamera, 59:PacketHeldItemSlot, 60:PacketScoreboardDisplayObjective, 61:PacketEntityMetadata, 62:PacketAttachEntity, 63:PacketEntityVelocity, 64:PacketEntityEquipment, 65:PacketExperience, 66:PacketUpdateHealth, 67:PacketScoreboardObjective, 68:PacketSetPassengers, 69:PacketTeams, 70:PacketScoreboardScore, 71:PacketSpawnPosition, 72:PacketUpdateTime, 73:PacketTitle, 74:PacketStopSound, 75:PacketSoundEffect, 76:PacketPlayerlistHeader, 77:PacketCollect, 78:PacketEntityTeleport, 80:PacketEntityUpdateAttributes, 81:PacketEntityEffect, 56:PacketSelectAdvancementTab, 82:PacketDeclareRecipes, 83:PacketTags, 2:PacketSpawnEntityWeather, 49:PacketBed }, + 327 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 15:PacketTabComplete, 16:PacketChat, 17:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 29:PacketExplosion, 30:PacketUnloadChunk, 31:PacketGameStateChange, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketLogin, 37:PacketMap, 38:PacketRelEntityMove, 39:PacketEntityMoveLook, 40:PacketEntityLook, 41:PacketEntity, 42:PacketVehicleMove, 43:PacketOpenSignEntity, 44:PacketAbilities, 45:PacketCombatEvent, 46:PacketPlayerInfo, 47:PacketPosition, 49:PacketUnlockRecipes, 50:PacketEntityDestroy, 51:PacketRemoveEntityEffect, 52:PacketResourcePackSend, 53:PacketRespawn, 54:PacketEntityHeadRotation, 55:PacketWorldBorder, 56:PacketCamera, 57:PacketHeldItemSlot, 58:PacketScoreboardDisplayObjective, 59:PacketEntityMetadata, 60:PacketAttachEntity, 61:PacketEntityVelocity, 62:PacketEntityEquipment, 63:PacketExperience, 64:PacketUpdateHealth, 65:PacketScoreboardObjective, 66:PacketSetPassengers, 67:PacketTeams, 68:PacketScoreboardScore, 69:PacketSpawnPosition, 70:PacketUpdateTime, 71:PacketTitle, 72:PacketSoundEffect, 73:PacketPlayerlistHeader, 74:PacketCollect, 75:PacketEntityTeleport, 76:PacketEntityUpdateAttributes, 77:PacketEntityEffect, 2:PacketSpawnEntityWeather, 48:PacketBed }, + 321 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 15:PacketTabComplete, 16:PacketChat, 17:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 29:PacketExplosion, 30:PacketUnloadChunk, 31:PacketGameStateChange, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketLogin, 37:PacketMap, 38:PacketRelEntityMove, 39:PacketEntityMoveLook, 40:PacketEntityLook, 41:PacketEntity, 42:PacketVehicleMove, 43:PacketOpenSignEntity, 44:PacketAbilities, 45:PacketCombatEvent, 46:PacketPlayerInfo, 47:PacketPosition, 49:PacketUnlockRecipes, 50:PacketEntityDestroy, 51:PacketRemoveEntityEffect, 52:PacketResourcePackSend, 53:PacketRespawn, 54:PacketEntityHeadRotation, 55:PacketWorldBorder, 56:PacketCamera, 57:PacketHeldItemSlot, 58:PacketScoreboardDisplayObjective, 59:PacketEntityMetadata, 60:PacketAttachEntity, 61:PacketEntityVelocity, 62:PacketEntityEquipment, 63:PacketExperience, 64:PacketUpdateHealth, 65:PacketScoreboardObjective, 66:PacketSetPassengers, 67:PacketTeams, 68:PacketScoreboardScore, 69:PacketSpawnPosition, 70:PacketUpdateTime, 71:PacketTitle, 72:PacketSoundEffect, 73:PacketPlayerlistHeader, 74:PacketCollect, 75:PacketEntityTeleport, 76:PacketEntityUpdateAttributes, 77:PacketEntityEffect, 2:PacketSpawnEntityWeather, 48:PacketBed }, + 304 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 37:PacketRelEntityMove, 38:PacketEntityMoveLook, 39:PacketEntityLook, 40:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 64:PacketSetPassengers, 65:PacketTeams, 66:PacketScoreboardScore, 67:PacketSpawnPosition, 68:PacketUpdateTime, 69:PacketTitle, 70:PacketSoundEffect, 71:PacketPlayerlistHeader, 72:PacketCollect, 73:PacketEntityTeleport, 74:PacketEntityUpdateAttributes, 75:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed }, + 201 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 37:PacketRelEntityMove, 38:PacketEntityMoveLook, 39:PacketEntityLook, 40:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 64:PacketSetPassengers, 65:PacketTeams, 66:PacketScoreboardScore, 67:PacketSpawnPosition, 68:PacketUpdateTime, 69:PacketTitle, 70:PacketSoundEffect, 71:PacketPlayerlistHeader, 72:PacketCollect, 73:PacketEntityTeleport, 74:PacketEntityUpdateAttributes, 75:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed }, + 76 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 35:PacketNamedSoundEffect, 25:PacketKickDisconnect, 26:PacketEntityStatus, 27:PacketExplosion, 28:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 36:PacketLogin, 37:PacketMap, 38:PacketRelEntityMove, 39:PacketEntityMoveLook, 40:PacketEntityLook, 41:PacketEntity, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 65:PacketScoreboardScore, 66:PacketSpawnPosition, 67:PacketUpdateTime, 68:PacketTitle, 70:PacketPlayerlistHeader, 71:PacketCollect, 72:PacketEntityTeleport, 74:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed, 73:PacketUpdateAttributes, 69:PacketUpdateSign, 64:PacketScoreboardTeam, 29:PacketSetCompression }, + 107 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 37:PacketRelEntityMove, 38:PacketEntityMoveLook, 39:PacketEntityLook, 40:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 64:PacketSetPassengers, 65:PacketTeams, 66:PacketScoreboardScore, 67:PacketSpawnPosition, 68:PacketUpdateTime, 69:PacketTitle, 71:PacketSoundEffect, 72:PacketPlayerlistHeader, 73:PacketCollect, 74:PacketEntityTeleport, 75:PacketEntityUpdateAttributes, 76:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed, 70:PacketUpdateSign }, + 110 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 37:PacketRelEntityMove, 38:PacketEntityMoveLook, 39:PacketEntityLook, 40:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 64:PacketSetPassengers, 65:PacketTeams, 66:PacketScoreboardScore, 67:PacketSpawnPosition, 68:PacketUpdateTime, 69:PacketTitle, 70:PacketSoundEffect, 71:PacketPlayerlistHeader, 72:PacketCollect, 73:PacketEntityTeleport, 74:PacketEntityUpdateAttributes, 75:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed }, + 109 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 37:PacketRelEntityMove, 38:PacketEntityMoveLook, 39:PacketEntityLook, 40:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 64:PacketSetPassengers, 65:PacketTeams, 66:PacketScoreboardScore, 67:PacketSpawnPosition, 68:PacketUpdateTime, 69:PacketTitle, 71:PacketSoundEffect, 72:PacketPlayerlistHeader, 73:PacketCollect, 74:PacketEntityTeleport, 75:PacketEntityUpdateAttributes, 76:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed, 70:PacketUpdateSign }, + 108 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 37:PacketRelEntityMove, 38:PacketEntityMoveLook, 39:PacketEntityLook, 40:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 64:PacketSetPassengers, 65:PacketTeams, 66:PacketScoreboardScore, 67:PacketSpawnPosition, 68:PacketUpdateTime, 69:PacketTitle, 71:PacketSoundEffect, 72:PacketPlayerlistHeader, 73:PacketCollect, 74:PacketEntityTeleport, 75:PacketEntityUpdateAttributes, 76:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed, 70:PacketUpdateSign }, + 47 : { 14:PacketSpawnEntity, 17:PacketSpawnEntityExperienceOrb, 15:PacketSpawnEntityLiving, 16:PacketSpawnEntityPainting, 12:PacketNamedEntitySpawn, 11:PacketAnimation, 55:PacketStatistics, 37:PacketBlockBreakAnimation, 53:PacketTileEntityData, 36:PacketBlockAction, 35:PacketBlockChange, 65:PacketDifficulty, 58:PacketTabComplete, 2:PacketChat, 34:PacketMultiBlockChange, 50:PacketTransaction, 46:PacketCloseWindow, 45:PacketOpenWindow, 48:PacketWindowItems, 49:PacketCraftProgressBar, 47:PacketSetSlot, 63:PacketCustomPayload, 41:PacketNamedSoundEffect, 64:PacketKickDisconnect, 26:PacketEntityStatus, 39:PacketExplosion, 43:PacketGameStateChange, 0:PacketKeepAlive, 33:PacketMapChunk, 40:PacketWorldEvent, 42:PacketWorldParticles, 1:PacketLogin, 52:PacketMap, 21:PacketRelEntityMove, 23:PacketEntityMoveLook, 22:PacketEntityLook, 20:PacketEntity, 54:PacketOpenSignEntity, 57:PacketAbilities, 66:PacketCombatEvent, 56:PacketPlayerInfo, 8:PacketPosition, 19:PacketEntityDestroy, 30:PacketRemoveEntityEffect, 72:PacketResourcePackSend, 7:PacketRespawn, 25:PacketEntityHeadRotation, 68:PacketWorldBorder, 67:PacketCamera, 9:PacketHeldItemSlot, 61:PacketScoreboardDisplayObjective, 28:PacketEntityMetadata, 27:PacketAttachEntity, 18:PacketEntityVelocity, 4:PacketEntityEquipment, 31:PacketExperience, 6:PacketUpdateHealth, 59:PacketScoreboardObjective, 60:PacketScoreboardScore, 5:PacketSpawnPosition, 3:PacketUpdateTime, 69:PacketTitle, 71:PacketPlayerlistHeader, 13:PacketCollect, 24:PacketEntityTeleport, 29:PacketEntityEffect, 44:PacketSpawnEntityWeather, 10:PacketBed, 32:PacketUpdateAttributes, 51:PacketUpdateSign, 62:PacketScoreboardTeam, 70:PacketSetCompression, 38:PacketMapChunkBulk, 73:PacketUpdateEntityNbt }, + 5 : { 14:PacketSpawnEntity, 17:PacketSpawnEntityExperienceOrb, 15:PacketSpawnEntityLiving, 16:PacketSpawnEntityPainting, 12:PacketNamedEntitySpawn, 11:PacketAnimation, 55:PacketStatistics, 37:PacketBlockBreakAnimation, 53:PacketTileEntityData, 36:PacketBlockAction, 35:PacketBlockChange, 58:PacketTabComplete, 2:PacketChat, 34:PacketMultiBlockChange, 50:PacketTransaction, 46:PacketCloseWindow, 45:PacketOpenWindow, 48:PacketWindowItems, 49:PacketCraftProgressBar, 47:PacketSetSlot, 63:PacketCustomPayload, 41:PacketNamedSoundEffect, 64:PacketKickDisconnect, 26:PacketEntityStatus, 39:PacketExplosion, 43:PacketGameStateChange, 0:PacketKeepAlive, 33:PacketMapChunk, 40:PacketWorldEvent, 42:PacketWorldParticles, 1:PacketLogin, 52:PacketMap, 21:PacketRelEntityMove, 23:PacketEntityMoveLook, 22:PacketEntityLook, 20:PacketEntity, 54:PacketOpenSignEntity, 57:PacketAbilities, 56:PacketPlayerInfo, 8:PacketPosition, 19:PacketEntityDestroy, 30:PacketRemoveEntityEffect, 7:PacketRespawn, 25:PacketEntityHeadRotation, 9:PacketHeldItemSlot, 61:PacketScoreboardDisplayObjective, 28:PacketEntityMetadata, 27:PacketAttachEntity, 18:PacketEntityVelocity, 4:PacketEntityEquipment, 31:PacketExperience, 6:PacketUpdateHealth, 59:PacketScoreboardObjective, 60:PacketScoreboardScore, 5:PacketSpawnPosition, 3:PacketUpdateTime, 13:PacketCollect, 24:PacketEntityTeleport, 29:PacketEntityEffect, 44:PacketSpawnEntityWeather, 10:PacketBed, 32:PacketUpdateAttributes, 51:PacketUpdateSign, 62:PacketScoreboardTeam, 38:PacketMapChunkBulk }, + 757 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 2:PacketSpawnEntityLiving, 3:PacketSpawnEntityPainting, 4:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 99:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 17:PacketTabComplete, 18:PacketDeclareCommands, 55:PacketFacePlayer, 96:PacketNbtQueryResponse, 15:PacketChat, 63:PacketMultiBlockChange, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketUpdateLight, 38:PacketLogin, 39:PacketMap, 40:PacketTradeList, 41:PacketRelEntityMove, 42:PacketEntityMoveLook, 43:PacketEntityLook, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 49:PacketCraftRecipeResponse, 50:PacketAbilities, 54:PacketPlayerInfo, 56:PacketPosition, 57:PacketUnlockRecipes, 58:PacketEntityDestroy, 59:PacketRemoveEntityEffect, 60:PacketResourcePackSend, 61:PacketRespawn, 62:PacketEntityHeadRotation, 71:PacketCamera, 72:PacketHeldItemSlot, 73:PacketUpdateViewPosition, 74:PacketUpdateViewDistance, 76:PacketScoreboardDisplayObjective, 77:PacketEntityMetadata, 78:PacketAttachEntity, 79:PacketEntityVelocity, 80:PacketEntityEquipment, 81:PacketExperience, 82:PacketUpdateHealth, 83:PacketScoreboardObjective, 84:PacketSetPassengers, 85:PacketTeams, 86:PacketScoreboardScore, 75:PacketSpawnPosition, 89:PacketUpdateTime, 92:PacketEntitySoundEffect, 94:PacketStopSound, 93:PacketSoundEffect, 95:PacketPlayerlistHeader, 97:PacketCollect, 98:PacketEntityTeleport, 100:PacketEntityUpdateAttributes, 101:PacketEntityEffect, 64:PacketSelectAdvancementTab, 102:PacketDeclareRecipes, 103:PacketTags, 8:PacketAcknowledgePlayerDigging, 5:PacketSculkVibrationSignal, 51:PacketEndCombatEvent, 52:PacketEnterCombatEvent, 53:PacketDeathCombatEvent, 16:PacketClearTitles, 32:PacketInitializeWorldBorder, 65:PacketActionBar, 66:PacketWorldBorderCenter, 67:PacketWorldBorderLerpSize, 68:PacketWorldBorderSize, 69:PacketWorldBorderWarningDelay, 70:PacketWorldBorderWarningReach, 48:PacketPing, 88:PacketSetTitleSubtitle, 90:PacketSetTitleText, 91:PacketSetTitleTime, 87:PacketSimulationDistance }, + 755 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 2:PacketSpawnEntityLiving, 3:PacketSpawnEntityPainting, 4:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 98:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 17:PacketTabComplete, 18:PacketDeclareCommands, 55:PacketFacePlayer, 95:PacketNbtQueryResponse, 15:PacketChat, 63:PacketMultiBlockChange, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketUpdateLight, 38:PacketLogin, 39:PacketMap, 40:PacketTradeList, 41:PacketRelEntityMove, 42:PacketEntityMoveLook, 43:PacketEntityLook, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 49:PacketCraftRecipeResponse, 50:PacketAbilities, 54:PacketPlayerInfo, 56:PacketPosition, 57:PacketUnlockRecipes, 59:PacketRemoveEntityEffect, 60:PacketResourcePackSend, 61:PacketRespawn, 62:PacketEntityHeadRotation, 71:PacketCamera, 72:PacketHeldItemSlot, 73:PacketUpdateViewPosition, 74:PacketUpdateViewDistance, 76:PacketScoreboardDisplayObjective, 77:PacketEntityMetadata, 78:PacketAttachEntity, 79:PacketEntityVelocity, 80:PacketEntityEquipment, 81:PacketExperience, 82:PacketUpdateHealth, 83:PacketScoreboardObjective, 84:PacketSetPassengers, 85:PacketTeams, 86:PacketScoreboardScore, 75:PacketSpawnPosition, 88:PacketUpdateTime, 91:PacketEntitySoundEffect, 93:PacketStopSound, 92:PacketSoundEffect, 94:PacketPlayerlistHeader, 96:PacketCollect, 97:PacketEntityTeleport, 99:PacketEntityUpdateAttributes, 100:PacketEntityEffect, 64:PacketSelectAdvancementTab, 101:PacketDeclareRecipes, 102:PacketTags, 8:PacketAcknowledgePlayerDigging, 5:PacketSculkVibrationSignal, 51:PacketEndCombatEvent, 52:PacketEnterCombatEvent, 53:PacketDeathCombatEvent, 16:PacketClearTitles, 32:PacketInitializeWorldBorder, 65:PacketActionBar, 66:PacketWorldBorderCenter, 67:PacketWorldBorderLerpSize, 68:PacketWorldBorderSize, 69:PacketWorldBorderWarningDelay, 70:PacketWorldBorderWarningReach, 48:PacketPing, 87:PacketSetTitleSubtitle, 89:PacketSetTitleText, 90:PacketSetTitleTime, 58:PacketDestroyEntity }, + 756 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 2:PacketSpawnEntityLiving, 3:PacketSpawnEntityPainting, 4:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 98:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 17:PacketTabComplete, 18:PacketDeclareCommands, 55:PacketFacePlayer, 95:PacketNbtQueryResponse, 15:PacketChat, 63:PacketMultiBlockChange, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketUpdateLight, 38:PacketLogin, 39:PacketMap, 40:PacketTradeList, 41:PacketRelEntityMove, 42:PacketEntityMoveLook, 43:PacketEntityLook, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 49:PacketCraftRecipeResponse, 50:PacketAbilities, 54:PacketPlayerInfo, 56:PacketPosition, 57:PacketUnlockRecipes, 58:PacketEntityDestroy, 59:PacketRemoveEntityEffect, 60:PacketResourcePackSend, 61:PacketRespawn, 62:PacketEntityHeadRotation, 71:PacketCamera, 72:PacketHeldItemSlot, 73:PacketUpdateViewPosition, 74:PacketUpdateViewDistance, 76:PacketScoreboardDisplayObjective, 77:PacketEntityMetadata, 78:PacketAttachEntity, 79:PacketEntityVelocity, 80:PacketEntityEquipment, 81:PacketExperience, 82:PacketUpdateHealth, 83:PacketScoreboardObjective, 84:PacketSetPassengers, 85:PacketTeams, 86:PacketScoreboardScore, 75:PacketSpawnPosition, 88:PacketUpdateTime, 91:PacketEntitySoundEffect, 93:PacketStopSound, 92:PacketSoundEffect, 94:PacketPlayerlistHeader, 96:PacketCollect, 97:PacketEntityTeleport, 99:PacketEntityUpdateAttributes, 100:PacketEntityEffect, 64:PacketSelectAdvancementTab, 101:PacketDeclareRecipes, 102:PacketTags, 8:PacketAcknowledgePlayerDigging, 5:PacketSculkVibrationSignal, 51:PacketEndCombatEvent, 52:PacketEnterCombatEvent, 53:PacketDeathCombatEvent, 16:PacketClearTitles, 32:PacketInitializeWorldBorder, 65:PacketActionBar, 66:PacketWorldBorderCenter, 67:PacketWorldBorderLerpSize, 68:PacketWorldBorderSize, 69:PacketWorldBorderWarningDelay, 70:PacketWorldBorderWarningReach, 48:PacketPing, 87:PacketSetTitleSubtitle, 89:PacketSetTitleText, 90:PacketSetTitleTime }, + 735 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 2:PacketSpawnEntityLiving, 3:PacketSpawnEntityPainting, 4:PacketNamedEntitySpawn, 5:PacketAnimation, 6:PacketStatistics, 87:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 52:PacketFacePlayer, 84:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketUpdateLight, 37:PacketLogin, 38:PacketMap, 39:PacketTradeList, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 43:PacketEntity, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 48:PacketCraftRecipeResponse, 49:PacketAbilities, 50:PacketCombatEvent, 51:PacketPlayerInfo, 53:PacketPosition, 54:PacketUnlockRecipes, 55:PacketEntityDestroy, 56:PacketRemoveEntityEffect, 57:PacketResourcePackSend, 58:PacketRespawn, 59:PacketEntityHeadRotation, 61:PacketWorldBorder, 62:PacketCamera, 63:PacketHeldItemSlot, 64:PacketUpdateViewPosition, 65:PacketUpdateViewDistance, 67:PacketScoreboardDisplayObjective, 68:PacketEntityMetadata, 69:PacketAttachEntity, 70:PacketEntityVelocity, 71:PacketEntityEquipment, 72:PacketExperience, 73:PacketUpdateHealth, 74:PacketScoreboardObjective, 75:PacketSetPassengers, 76:PacketTeams, 77:PacketScoreboardScore, 66:PacketSpawnPosition, 78:PacketUpdateTime, 79:PacketTitle, 80:PacketEntitySoundEffect, 82:PacketStopSound, 81:PacketSoundEffect, 83:PacketPlayerlistHeader, 85:PacketCollect, 86:PacketEntityTeleport, 88:PacketEntityUpdateAttributes, 89:PacketEntityEffect, 60:PacketSelectAdvancementTab, 90:PacketDeclareRecipes, 91:PacketTags, 7:PacketAcknowledgePlayerDigging }, + 751 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 2:PacketSpawnEntityLiving, 3:PacketSpawnEntityPainting, 4:PacketNamedEntitySpawn, 5:PacketAnimation, 6:PacketStatistics, 87:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 15:PacketTabComplete, 16:PacketDeclareCommands, 51:PacketFacePlayer, 84:PacketNbtQueryResponse, 14:PacketChat, 59:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 45:PacketOpenWindow, 19:PacketWindowItems, 20:PacketCraftProgressBar, 21:PacketSetSlot, 22:PacketSetCooldown, 23:PacketCustomPayload, 24:PacketNamedSoundEffect, 25:PacketKickDisconnect, 26:PacketEntityStatus, 27:PacketExplosion, 28:PacketUnloadChunk, 29:PacketGameStateChange, 30:PacketOpenHorseWindow, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketUpdateLight, 36:PacketLogin, 37:PacketMap, 38:PacketTradeList, 39:PacketRelEntityMove, 40:PacketEntityMoveLook, 41:PacketEntityLook, 42:PacketEntity, 43:PacketVehicleMove, 44:PacketOpenBook, 46:PacketOpenSignEntity, 47:PacketCraftRecipeResponse, 48:PacketAbilities, 49:PacketCombatEvent, 50:PacketPlayerInfo, 52:PacketPosition, 53:PacketUnlockRecipes, 54:PacketEntityDestroy, 55:PacketRemoveEntityEffect, 56:PacketResourcePackSend, 57:PacketRespawn, 58:PacketEntityHeadRotation, 61:PacketWorldBorder, 62:PacketCamera, 63:PacketHeldItemSlot, 64:PacketUpdateViewPosition, 65:PacketUpdateViewDistance, 67:PacketScoreboardDisplayObjective, 68:PacketEntityMetadata, 69:PacketAttachEntity, 70:PacketEntityVelocity, 71:PacketEntityEquipment, 72:PacketExperience, 73:PacketUpdateHealth, 74:PacketScoreboardObjective, 75:PacketSetPassengers, 76:PacketTeams, 77:PacketScoreboardScore, 66:PacketSpawnPosition, 78:PacketUpdateTime, 79:PacketTitle, 80:PacketEntitySoundEffect, 82:PacketStopSound, 81:PacketSoundEffect, 83:PacketPlayerlistHeader, 85:PacketCollect, 86:PacketEntityTeleport, 88:PacketEntityUpdateAttributes, 89:PacketEntityEffect, 60:PacketSelectAdvancementTab, 90:PacketDeclareRecipes, 91:PacketTags, 7:PacketAcknowledgePlayerDigging }, + 736 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 2:PacketSpawnEntityLiving, 3:PacketSpawnEntityPainting, 4:PacketNamedEntitySpawn, 5:PacketAnimation, 6:PacketStatistics, 87:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 52:PacketFacePlayer, 84:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketUpdateLight, 37:PacketLogin, 38:PacketMap, 39:PacketTradeList, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 43:PacketEntity, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 48:PacketCraftRecipeResponse, 49:PacketAbilities, 50:PacketCombatEvent, 51:PacketPlayerInfo, 53:PacketPosition, 54:PacketUnlockRecipes, 55:PacketEntityDestroy, 56:PacketRemoveEntityEffect, 57:PacketResourcePackSend, 58:PacketRespawn, 59:PacketEntityHeadRotation, 61:PacketWorldBorder, 62:PacketCamera, 63:PacketHeldItemSlot, 64:PacketUpdateViewPosition, 65:PacketUpdateViewDistance, 67:PacketScoreboardDisplayObjective, 68:PacketEntityMetadata, 69:PacketAttachEntity, 70:PacketEntityVelocity, 71:PacketEntityEquipment, 72:PacketExperience, 73:PacketUpdateHealth, 74:PacketScoreboardObjective, 75:PacketSetPassengers, 76:PacketTeams, 77:PacketScoreboardScore, 66:PacketSpawnPosition, 78:PacketUpdateTime, 79:PacketTitle, 80:PacketEntitySoundEffect, 82:PacketStopSound, 81:PacketSoundEffect, 83:PacketPlayerlistHeader, 85:PacketCollect, 86:PacketEntityTeleport, 88:PacketEntityUpdateAttributes, 89:PacketEntityEffect, 60:PacketSelectAdvancementTab, 90:PacketDeclareRecipes, 91:PacketTags, 7:PacketAcknowledgePlayerDigging }, + 734 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 2:PacketSpawnEntityLiving, 3:PacketSpawnEntityPainting, 4:PacketNamedEntitySpawn, 5:PacketAnimation, 6:PacketStatistics, 87:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 52:PacketFacePlayer, 84:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketUpdateLight, 37:PacketLogin, 38:PacketMap, 39:PacketTradeList, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 43:PacketEntity, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 48:PacketCraftRecipeResponse, 49:PacketAbilities, 50:PacketCombatEvent, 51:PacketPlayerInfo, 53:PacketPosition, 54:PacketUnlockRecipes, 55:PacketEntityDestroy, 56:PacketRemoveEntityEffect, 57:PacketResourcePackSend, 58:PacketRespawn, 59:PacketEntityHeadRotation, 61:PacketWorldBorder, 62:PacketCamera, 63:PacketHeldItemSlot, 64:PacketUpdateViewPosition, 65:PacketUpdateViewDistance, 67:PacketScoreboardDisplayObjective, 68:PacketEntityMetadata, 69:PacketAttachEntity, 70:PacketEntityVelocity, 71:PacketEntityEquipment, 72:PacketExperience, 73:PacketUpdateHealth, 74:PacketScoreboardObjective, 75:PacketSetPassengers, 76:PacketTeams, 77:PacketScoreboardScore, 66:PacketSpawnPosition, 78:PacketUpdateTime, 79:PacketTitle, 80:PacketEntitySoundEffect, 82:PacketStopSound, 81:PacketSoundEffect, 83:PacketPlayerlistHeader, 85:PacketCollect, 86:PacketEntityTeleport, 88:PacketEntityUpdateAttributes, 89:PacketEntityEffect, 60:PacketSelectAdvancementTab, 90:PacketDeclareRecipes, 91:PacketTags, 7:PacketAcknowledgePlayerDigging }, + 573 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 88:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 17:PacketTabComplete, 18:PacketDeclareCommands, 53:PacketFacePlayer, 85:PacketNbtQueryResponse, 15:PacketChat, 16:PacketMultiBlockChange, 19:PacketTransaction, 20:PacketCloseWindow, 47:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 29:PacketExplosion, 30:PacketUnloadChunk, 31:PacketGameStateChange, 32:PacketOpenHorseWindow, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketUpdateLight, 38:PacketLogin, 39:PacketMap, 40:PacketTradeList, 41:PacketRelEntityMove, 42:PacketEntityMoveLook, 43:PacketEntityLook, 44:PacketEntity, 45:PacketVehicleMove, 46:PacketOpenBook, 48:PacketOpenSignEntity, 49:PacketCraftRecipeResponse, 50:PacketAbilities, 51:PacketCombatEvent, 52:PacketPlayerInfo, 54:PacketPosition, 55:PacketUnlockRecipes, 56:PacketEntityDestroy, 57:PacketRemoveEntityEffect, 58:PacketResourcePackSend, 59:PacketRespawn, 60:PacketEntityHeadRotation, 62:PacketWorldBorder, 63:PacketCamera, 64:PacketHeldItemSlot, 65:PacketUpdateViewPosition, 66:PacketUpdateViewDistance, 67:PacketScoreboardDisplayObjective, 68:PacketEntityMetadata, 69:PacketAttachEntity, 70:PacketEntityVelocity, 71:PacketEntityEquipment, 72:PacketExperience, 73:PacketUpdateHealth, 74:PacketScoreboardObjective, 75:PacketSetPassengers, 76:PacketTeams, 77:PacketScoreboardScore, 78:PacketSpawnPosition, 79:PacketUpdateTime, 80:PacketTitle, 81:PacketEntitySoundEffect, 83:PacketStopSound, 82:PacketSoundEffect, 84:PacketPlayerlistHeader, 86:PacketCollect, 87:PacketEntityTeleport, 89:PacketEntityUpdateAttributes, 90:PacketEntityEffect, 61:PacketSelectAdvancementTab, 91:PacketDeclareRecipes, 92:PacketTags, 8:PacketAcknowledgePlayerDigging, 2:PacketSpawnEntityWeather }, + 578 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 88:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 17:PacketTabComplete, 18:PacketDeclareCommands, 53:PacketFacePlayer, 85:PacketNbtQueryResponse, 15:PacketChat, 16:PacketMultiBlockChange, 19:PacketTransaction, 20:PacketCloseWindow, 47:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 29:PacketExplosion, 30:PacketUnloadChunk, 31:PacketGameStateChange, 32:PacketOpenHorseWindow, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketUpdateLight, 38:PacketLogin, 39:PacketMap, 40:PacketTradeList, 41:PacketRelEntityMove, 42:PacketEntityMoveLook, 43:PacketEntityLook, 44:PacketEntity, 45:PacketVehicleMove, 46:PacketOpenBook, 48:PacketOpenSignEntity, 49:PacketCraftRecipeResponse, 50:PacketAbilities, 51:PacketCombatEvent, 52:PacketPlayerInfo, 54:PacketPosition, 55:PacketUnlockRecipes, 56:PacketEntityDestroy, 57:PacketRemoveEntityEffect, 58:PacketResourcePackSend, 59:PacketRespawn, 60:PacketEntityHeadRotation, 62:PacketWorldBorder, 63:PacketCamera, 64:PacketHeldItemSlot, 65:PacketUpdateViewPosition, 66:PacketUpdateViewDistance, 67:PacketScoreboardDisplayObjective, 68:PacketEntityMetadata, 69:PacketAttachEntity, 70:PacketEntityVelocity, 71:PacketEntityEquipment, 72:PacketExperience, 73:PacketUpdateHealth, 74:PacketScoreboardObjective, 75:PacketSetPassengers, 76:PacketTeams, 77:PacketScoreboardScore, 78:PacketSpawnPosition, 79:PacketUpdateTime, 80:PacketTitle, 81:PacketEntitySoundEffect, 83:PacketStopSound, 82:PacketSoundEffect, 84:PacketPlayerlistHeader, 86:PacketCollect, 87:PacketEntityTeleport, 89:PacketEntityUpdateAttributes, 90:PacketEntityEffect, 61:PacketSelectAdvancementTab, 91:PacketDeclareRecipes, 92:PacketTags, 8:PacketAcknowledgePlayerDigging, 2:PacketSpawnEntityWeather }, + 575 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 88:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 17:PacketTabComplete, 18:PacketDeclareCommands, 53:PacketFacePlayer, 85:PacketNbtQueryResponse, 15:PacketChat, 16:PacketMultiBlockChange, 19:PacketTransaction, 20:PacketCloseWindow, 47:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 29:PacketExplosion, 30:PacketUnloadChunk, 31:PacketGameStateChange, 32:PacketOpenHorseWindow, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketUpdateLight, 38:PacketLogin, 39:PacketMap, 40:PacketTradeList, 41:PacketRelEntityMove, 42:PacketEntityMoveLook, 43:PacketEntityLook, 44:PacketEntity, 45:PacketVehicleMove, 46:PacketOpenBook, 48:PacketOpenSignEntity, 49:PacketCraftRecipeResponse, 50:PacketAbilities, 51:PacketCombatEvent, 52:PacketPlayerInfo, 54:PacketPosition, 55:PacketUnlockRecipes, 56:PacketEntityDestroy, 57:PacketRemoveEntityEffect, 58:PacketResourcePackSend, 59:PacketRespawn, 60:PacketEntityHeadRotation, 62:PacketWorldBorder, 63:PacketCamera, 64:PacketHeldItemSlot, 65:PacketUpdateViewPosition, 66:PacketUpdateViewDistance, 67:PacketScoreboardDisplayObjective, 68:PacketEntityMetadata, 69:PacketAttachEntity, 70:PacketEntityVelocity, 71:PacketEntityEquipment, 72:PacketExperience, 73:PacketUpdateHealth, 74:PacketScoreboardObjective, 75:PacketSetPassengers, 76:PacketTeams, 77:PacketScoreboardScore, 78:PacketSpawnPosition, 79:PacketUpdateTime, 80:PacketTitle, 81:PacketEntitySoundEffect, 83:PacketStopSound, 82:PacketSoundEffect, 84:PacketPlayerlistHeader, 86:PacketCollect, 87:PacketEntityTeleport, 89:PacketEntityUpdateAttributes, 90:PacketEntityEffect, 61:PacketSelectAdvancementTab, 91:PacketDeclareRecipes, 92:PacketTags, 8:PacketAcknowledgePlayerDigging, 2:PacketSpawnEntityWeather }, + 477 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 87:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 52:PacketFacePlayer, 84:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketUpdateLight, 37:PacketLogin, 38:PacketMap, 39:PacketTradeList, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 43:PacketEntity, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 48:PacketCraftRecipeResponse, 49:PacketAbilities, 50:PacketCombatEvent, 51:PacketPlayerInfo, 53:PacketPosition, 54:PacketUnlockRecipes, 55:PacketEntityDestroy, 56:PacketRemoveEntityEffect, 57:PacketResourcePackSend, 58:PacketRespawn, 59:PacketEntityHeadRotation, 61:PacketWorldBorder, 62:PacketCamera, 63:PacketHeldItemSlot, 64:PacketUpdateViewPosition, 65:PacketUpdateViewDistance, 66:PacketScoreboardDisplayObjective, 67:PacketEntityMetadata, 68:PacketAttachEntity, 69:PacketEntityVelocity, 70:PacketEntityEquipment, 71:PacketExperience, 72:PacketUpdateHealth, 73:PacketScoreboardObjective, 74:PacketSetPassengers, 75:PacketTeams, 76:PacketScoreboardScore, 77:PacketSpawnPosition, 78:PacketUpdateTime, 79:PacketTitle, 80:PacketEntitySoundEffect, 82:PacketStopSound, 81:PacketSoundEffect, 83:PacketPlayerlistHeader, 85:PacketCollect, 86:PacketEntityTeleport, 88:PacketEntityUpdateAttributes, 89:PacketEntityEffect, 60:PacketSelectAdvancementTab, 90:PacketDeclareRecipes, 91:PacketTags, 2:PacketSpawnEntityWeather }, + 498 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 87:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 52:PacketFacePlayer, 84:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketUpdateLight, 37:PacketLogin, 38:PacketMap, 39:PacketTradeList, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 43:PacketEntity, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 48:PacketCraftRecipeResponse, 49:PacketAbilities, 50:PacketCombatEvent, 51:PacketPlayerInfo, 53:PacketPosition, 54:PacketUnlockRecipes, 55:PacketEntityDestroy, 56:PacketRemoveEntityEffect, 57:PacketResourcePackSend, 58:PacketRespawn, 59:PacketEntityHeadRotation, 61:PacketWorldBorder, 62:PacketCamera, 63:PacketHeldItemSlot, 64:PacketUpdateViewPosition, 65:PacketUpdateViewDistance, 66:PacketScoreboardDisplayObjective, 67:PacketEntityMetadata, 68:PacketAttachEntity, 69:PacketEntityVelocity, 70:PacketEntityEquipment, 71:PacketExperience, 72:PacketUpdateHealth, 73:PacketScoreboardObjective, 74:PacketSetPassengers, 75:PacketTeams, 76:PacketScoreboardScore, 77:PacketSpawnPosition, 78:PacketUpdateTime, 79:PacketTitle, 80:PacketEntitySoundEffect, 82:PacketStopSound, 81:PacketSoundEffect, 83:PacketPlayerlistHeader, 85:PacketCollect, 86:PacketEntityTeleport, 88:PacketEntityUpdateAttributes, 89:PacketEntityEffect, 60:PacketSelectAdvancementTab, 90:PacketDeclareRecipes, 91:PacketTags, 92:PacketAcknowledgePlayerDigging, 2:PacketSpawnEntityWeather }, + 490 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 87:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 52:PacketFacePlayer, 84:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketUpdateLight, 37:PacketLogin, 38:PacketMap, 39:PacketTradeList, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 43:PacketEntity, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 48:PacketCraftRecipeResponse, 49:PacketAbilities, 50:PacketCombatEvent, 51:PacketPlayerInfo, 53:PacketPosition, 54:PacketUnlockRecipes, 55:PacketEntityDestroy, 56:PacketRemoveEntityEffect, 57:PacketResourcePackSend, 58:PacketRespawn, 59:PacketEntityHeadRotation, 61:PacketWorldBorder, 62:PacketCamera, 63:PacketHeldItemSlot, 64:PacketUpdateViewPosition, 65:PacketUpdateViewDistance, 66:PacketScoreboardDisplayObjective, 67:PacketEntityMetadata, 68:PacketAttachEntity, 69:PacketEntityVelocity, 70:PacketEntityEquipment, 71:PacketExperience, 72:PacketUpdateHealth, 73:PacketScoreboardObjective, 74:PacketSetPassengers, 75:PacketTeams, 76:PacketScoreboardScore, 77:PacketSpawnPosition, 78:PacketUpdateTime, 79:PacketTitle, 80:PacketEntitySoundEffect, 82:PacketStopSound, 81:PacketSoundEffect, 83:PacketPlayerlistHeader, 85:PacketCollect, 86:PacketEntityTeleport, 88:PacketEntityUpdateAttributes, 89:PacketEntityEffect, 60:PacketSelectAdvancementTab, 90:PacketDeclareRecipes, 91:PacketTags, 2:PacketSpawnEntityWeather }, + 480 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 87:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 52:PacketFacePlayer, 84:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 46:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketOpenHorseWindow, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketUpdateLight, 37:PacketLogin, 38:PacketMap, 39:PacketTradeList, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 43:PacketEntity, 44:PacketVehicleMove, 45:PacketOpenBook, 47:PacketOpenSignEntity, 48:PacketCraftRecipeResponse, 49:PacketAbilities, 50:PacketCombatEvent, 51:PacketPlayerInfo, 53:PacketPosition, 54:PacketUnlockRecipes, 55:PacketEntityDestroy, 56:PacketRemoveEntityEffect, 57:PacketResourcePackSend, 58:PacketRespawn, 59:PacketEntityHeadRotation, 61:PacketWorldBorder, 62:PacketCamera, 63:PacketHeldItemSlot, 64:PacketUpdateViewPosition, 65:PacketUpdateViewDistance, 66:PacketScoreboardDisplayObjective, 67:PacketEntityMetadata, 68:PacketAttachEntity, 69:PacketEntityVelocity, 70:PacketEntityEquipment, 71:PacketExperience, 72:PacketUpdateHealth, 73:PacketScoreboardObjective, 74:PacketSetPassengers, 75:PacketTeams, 76:PacketScoreboardScore, 77:PacketSpawnPosition, 78:PacketUpdateTime, 79:PacketTitle, 80:PacketEntitySoundEffect, 82:PacketStopSound, 81:PacketSoundEffect, 83:PacketPlayerlistHeader, 85:PacketCollect, 86:PacketEntityTeleport, 88:PacketEntityUpdateAttributes, 89:PacketEntityEffect, 60:PacketSelectAdvancementTab, 90:PacketDeclareRecipes, 91:PacketTags, 2:PacketSpawnEntityWeather }, + 393 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 81:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 49:PacketFacePlayer, 29:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 30:PacketExplosion, 31:PacketUnloadChunk, 32:PacketGameStateChange, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketLogin, 38:PacketMap, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 39:PacketEntity, 43:PacketVehicleMove, 44:PacketOpenSignEntity, 45:PacketCraftRecipeResponse, 46:PacketAbilities, 47:PacketCombatEvent, 48:PacketPlayerInfo, 50:PacketPosition, 52:PacketUnlockRecipes, 53:PacketEntityDestroy, 54:PacketRemoveEntityEffect, 55:PacketResourcePackSend, 56:PacketRespawn, 57:PacketEntityHeadRotation, 59:PacketWorldBorder, 60:PacketCamera, 61:PacketHeldItemSlot, 62:PacketScoreboardDisplayObjective, 63:PacketEntityMetadata, 64:PacketAttachEntity, 65:PacketEntityVelocity, 66:PacketEntityEquipment, 67:PacketExperience, 68:PacketUpdateHealth, 69:PacketScoreboardObjective, 70:PacketSetPassengers, 71:PacketTeams, 72:PacketScoreboardScore, 73:PacketSpawnPosition, 74:PacketUpdateTime, 75:PacketTitle, 76:PacketStopSound, 77:PacketSoundEffect, 78:PacketPlayerlistHeader, 79:PacketCollect, 80:PacketEntityTeleport, 82:PacketEntityUpdateAttributes, 83:PacketEntityEffect, 58:PacketSelectAdvancementTab, 84:PacketDeclareRecipes, 85:PacketTags, 2:PacketSpawnEntityWeather, 51:PacketBed }, + 404 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 81:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 49:PacketFacePlayer, 29:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 30:PacketExplosion, 31:PacketUnloadChunk, 32:PacketGameStateChange, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketLogin, 38:PacketMap, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 39:PacketEntity, 43:PacketVehicleMove, 44:PacketOpenSignEntity, 45:PacketCraftRecipeResponse, 46:PacketAbilities, 47:PacketCombatEvent, 48:PacketPlayerInfo, 50:PacketPosition, 52:PacketUnlockRecipes, 53:PacketEntityDestroy, 54:PacketRemoveEntityEffect, 55:PacketResourcePackSend, 56:PacketRespawn, 57:PacketEntityHeadRotation, 59:PacketWorldBorder, 60:PacketCamera, 61:PacketHeldItemSlot, 62:PacketScoreboardDisplayObjective, 63:PacketEntityMetadata, 64:PacketAttachEntity, 65:PacketEntityVelocity, 66:PacketEntityEquipment, 67:PacketExperience, 68:PacketUpdateHealth, 69:PacketScoreboardObjective, 70:PacketSetPassengers, 71:PacketTeams, 72:PacketScoreboardScore, 73:PacketSpawnPosition, 74:PacketUpdateTime, 75:PacketTitle, 76:PacketStopSound, 77:PacketSoundEffect, 78:PacketPlayerlistHeader, 79:PacketCollect, 80:PacketEntityTeleport, 82:PacketEntityUpdateAttributes, 83:PacketEntityEffect, 58:PacketSelectAdvancementTab, 84:PacketDeclareRecipes, 85:PacketTags, 2:PacketSpawnEntityWeather, 51:PacketBed }, + 403 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 81:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 49:PacketFacePlayer, 29:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 30:PacketExplosion, 31:PacketUnloadChunk, 32:PacketGameStateChange, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketLogin, 38:PacketMap, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 39:PacketEntity, 43:PacketVehicleMove, 44:PacketOpenSignEntity, 45:PacketCraftRecipeResponse, 46:PacketAbilities, 47:PacketCombatEvent, 48:PacketPlayerInfo, 50:PacketPosition, 52:PacketUnlockRecipes, 53:PacketEntityDestroy, 54:PacketRemoveEntityEffect, 55:PacketResourcePackSend, 56:PacketRespawn, 57:PacketEntityHeadRotation, 59:PacketWorldBorder, 60:PacketCamera, 61:PacketHeldItemSlot, 62:PacketScoreboardDisplayObjective, 63:PacketEntityMetadata, 64:PacketAttachEntity, 65:PacketEntityVelocity, 66:PacketEntityEquipment, 67:PacketExperience, 68:PacketUpdateHealth, 69:PacketScoreboardObjective, 70:PacketSetPassengers, 71:PacketTeams, 72:PacketScoreboardScore, 73:PacketSpawnPosition, 74:PacketUpdateTime, 75:PacketTitle, 76:PacketStopSound, 77:PacketSoundEffect, 78:PacketPlayerlistHeader, 79:PacketCollect, 80:PacketEntityTeleport, 82:PacketEntityUpdateAttributes, 83:PacketEntityEffect, 58:PacketSelectAdvancementTab, 84:PacketDeclareRecipes, 85:PacketTags, 2:PacketSpawnEntityWeather, 51:PacketBed }, + 402 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 81:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 49:PacketFacePlayer, 29:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 30:PacketExplosion, 31:PacketUnloadChunk, 32:PacketGameStateChange, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketLogin, 38:PacketMap, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 39:PacketEntity, 43:PacketVehicleMove, 44:PacketOpenSignEntity, 45:PacketCraftRecipeResponse, 46:PacketAbilities, 47:PacketCombatEvent, 48:PacketPlayerInfo, 50:PacketPosition, 52:PacketUnlockRecipes, 53:PacketEntityDestroy, 54:PacketRemoveEntityEffect, 55:PacketResourcePackSend, 56:PacketRespawn, 57:PacketEntityHeadRotation, 59:PacketWorldBorder, 60:PacketCamera, 61:PacketHeldItemSlot, 62:PacketScoreboardDisplayObjective, 63:PacketEntityMetadata, 64:PacketAttachEntity, 65:PacketEntityVelocity, 66:PacketEntityEquipment, 67:PacketExperience, 68:PacketUpdateHealth, 69:PacketScoreboardObjective, 70:PacketSetPassengers, 71:PacketTeams, 72:PacketScoreboardScore, 73:PacketSpawnPosition, 74:PacketUpdateTime, 75:PacketTitle, 76:PacketStopSound, 77:PacketSoundEffect, 78:PacketPlayerlistHeader, 79:PacketCollect, 80:PacketEntityTeleport, 82:PacketEntityUpdateAttributes, 83:PacketEntityEffect, 58:PacketSelectAdvancementTab, 84:PacketDeclareRecipes, 85:PacketTags, 2:PacketSpawnEntityWeather, 51:PacketBed }, + 401 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 81:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 16:PacketTabComplete, 17:PacketDeclareCommands, 49:PacketFacePlayer, 29:PacketNbtQueryResponse, 14:PacketChat, 15:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 30:PacketExplosion, 31:PacketUnloadChunk, 32:PacketGameStateChange, 33:PacketKeepAlive, 34:PacketMapChunk, 35:PacketWorldEvent, 36:PacketWorldParticles, 37:PacketLogin, 38:PacketMap, 40:PacketRelEntityMove, 41:PacketEntityMoveLook, 42:PacketEntityLook, 39:PacketEntity, 43:PacketVehicleMove, 44:PacketOpenSignEntity, 45:PacketCraftRecipeResponse, 46:PacketAbilities, 47:PacketCombatEvent, 48:PacketPlayerInfo, 50:PacketPosition, 52:PacketUnlockRecipes, 53:PacketEntityDestroy, 54:PacketRemoveEntityEffect, 55:PacketResourcePackSend, 56:PacketRespawn, 57:PacketEntityHeadRotation, 59:PacketWorldBorder, 60:PacketCamera, 61:PacketHeldItemSlot, 62:PacketScoreboardDisplayObjective, 63:PacketEntityMetadata, 64:PacketAttachEntity, 65:PacketEntityVelocity, 66:PacketEntityEquipment, 67:PacketExperience, 68:PacketUpdateHealth, 69:PacketScoreboardObjective, 70:PacketSetPassengers, 71:PacketTeams, 72:PacketScoreboardScore, 73:PacketSpawnPosition, 74:PacketUpdateTime, 75:PacketTitle, 76:PacketStopSound, 77:PacketSoundEffect, 78:PacketPlayerlistHeader, 79:PacketCollect, 80:PacketEntityTeleport, 82:PacketEntityUpdateAttributes, 83:PacketEntityEffect, 58:PacketSelectAdvancementTab, 84:PacketDeclareRecipes, 85:PacketTags, 2:PacketSpawnEntityWeather, 51:PacketBed }, + 335 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 76:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 38:PacketRelEntityMove, 39:PacketEntityMoveLook, 40:PacketEntityLook, 37:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketUnlockRecipes, 49:PacketEntityDestroy, 50:PacketRemoveEntityEffect, 51:PacketResourcePackSend, 52:PacketRespawn, 53:PacketEntityHeadRotation, 55:PacketWorldBorder, 56:PacketCamera, 57:PacketHeldItemSlot, 58:PacketScoreboardDisplayObjective, 59:PacketEntityMetadata, 60:PacketAttachEntity, 61:PacketEntityVelocity, 62:PacketEntityEquipment, 63:PacketExperience, 64:PacketUpdateHealth, 65:PacketScoreboardObjective, 66:PacketSetPassengers, 67:PacketTeams, 68:PacketScoreboardScore, 69:PacketSpawnPosition, 70:PacketUpdateTime, 71:PacketTitle, 72:PacketSoundEffect, 73:PacketPlayerlistHeader, 74:PacketCollect, 75:PacketEntityTeleport, 77:PacketEntityUpdateAttributes, 78:PacketEntityEffect, 54:PacketSelectAdvancementTab, 2:PacketSpawnEntityWeather, 47:PacketBed }, + 340 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 77:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 38:PacketRelEntityMove, 39:PacketEntityMoveLook, 40:PacketEntityLook, 37:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketCraftRecipeResponse, 44:PacketAbilities, 45:PacketCombatEvent, 46:PacketPlayerInfo, 47:PacketPosition, 49:PacketUnlockRecipes, 50:PacketEntityDestroy, 51:PacketRemoveEntityEffect, 52:PacketResourcePackSend, 53:PacketRespawn, 54:PacketEntityHeadRotation, 56:PacketWorldBorder, 57:PacketCamera, 58:PacketHeldItemSlot, 59:PacketScoreboardDisplayObjective, 60:PacketEntityMetadata, 61:PacketAttachEntity, 62:PacketEntityVelocity, 63:PacketEntityEquipment, 64:PacketExperience, 65:PacketUpdateHealth, 66:PacketScoreboardObjective, 67:PacketSetPassengers, 68:PacketTeams, 69:PacketScoreboardScore, 70:PacketSpawnPosition, 71:PacketUpdateTime, 72:PacketTitle, 73:PacketSoundEffect, 74:PacketPlayerlistHeader, 75:PacketCollect, 76:PacketEntityTeleport, 78:PacketEntityUpdateAttributes, 79:PacketEntityEffect, 55:PacketSelectAdvancementTab, 2:PacketSpawnEntityWeather, 48:PacketBed }, + 338 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 77:PacketAdvancements, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 38:PacketRelEntityMove, 39:PacketEntityMoveLook, 40:PacketEntityLook, 37:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketCraftRecipeResponse, 44:PacketAbilities, 45:PacketCombatEvent, 46:PacketPlayerInfo, 47:PacketPosition, 49:PacketUnlockRecipes, 50:PacketEntityDestroy, 51:PacketRemoveEntityEffect, 52:PacketResourcePackSend, 53:PacketRespawn, 54:PacketEntityHeadRotation, 56:PacketWorldBorder, 57:PacketCamera, 58:PacketHeldItemSlot, 59:PacketScoreboardDisplayObjective, 60:PacketEntityMetadata, 61:PacketAttachEntity, 62:PacketEntityVelocity, 63:PacketEntityEquipment, 64:PacketExperience, 65:PacketUpdateHealth, 66:PacketScoreboardObjective, 67:PacketSetPassengers, 68:PacketTeams, 69:PacketScoreboardScore, 70:PacketSpawnPosition, 71:PacketUpdateTime, 72:PacketTitle, 73:PacketSoundEffect, 74:PacketPlayerlistHeader, 75:PacketCollect, 76:PacketEntityTeleport, 78:PacketEntityUpdateAttributes, 79:PacketEntityEffect, 55:PacketSelectAdvancementTab, 2:PacketSpawnEntityWeather, 48:PacketBed }, + 331 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketAdvancements, 9:PacketBlockBreakAnimation, 10:PacketTileEntityData, 11:PacketBlockAction, 12:PacketBlockChange, 13:PacketBossBar, 14:PacketDifficulty, 15:PacketTabComplete, 16:PacketChat, 17:PacketMultiBlockChange, 18:PacketTransaction, 19:PacketCloseWindow, 20:PacketOpenWindow, 21:PacketWindowItems, 22:PacketCraftProgressBar, 23:PacketSetSlot, 24:PacketSetCooldown, 25:PacketCustomPayload, 26:PacketNamedSoundEffect, 27:PacketKickDisconnect, 28:PacketEntityStatus, 29:PacketExplosion, 30:PacketUnloadChunk, 31:PacketGameStateChange, 32:PacketKeepAlive, 33:PacketMapChunk, 34:PacketWorldEvent, 35:PacketWorldParticles, 36:PacketLogin, 37:PacketMap, 38:PacketRelEntityMove, 39:PacketEntityMoveLook, 40:PacketEntityLook, 41:PacketEntity, 42:PacketVehicleMove, 43:PacketOpenSignEntity, 44:PacketAbilities, 45:PacketCombatEvent, 46:PacketPlayerInfo, 47:PacketPosition, 49:PacketUnlockRecipes, 50:PacketEntityDestroy, 51:PacketRemoveEntityEffect, 52:PacketResourcePackSend, 53:PacketRespawn, 54:PacketEntityHeadRotation, 55:PacketWorldBorder, 56:PacketCamera, 57:PacketHeldItemSlot, 58:PacketScoreboardDisplayObjective, 59:PacketEntityMetadata, 60:PacketAttachEntity, 61:PacketEntityVelocity, 62:PacketEntityEquipment, 63:PacketExperience, 64:PacketUpdateHealth, 65:PacketScoreboardObjective, 66:PacketSetPassengers, 67:PacketTeams, 68:PacketScoreboardScore, 69:PacketSpawnPosition, 70:PacketUpdateTime, 71:PacketTitle, 72:PacketSoundEffect, 73:PacketPlayerlistHeader, 74:PacketCollect, 75:PacketEntityTeleport, 76:PacketEntityUpdateAttributes, 77:PacketEntityEffect, 2:PacketSpawnEntityWeather, 48:PacketBed, 78:PacketAdvancementProgress }, + 315 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 37:PacketRelEntityMove, 38:PacketEntityMoveLook, 39:PacketEntityLook, 40:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 64:PacketSetPassengers, 65:PacketTeams, 66:PacketScoreboardScore, 67:PacketSpawnPosition, 68:PacketUpdateTime, 69:PacketTitle, 70:PacketSoundEffect, 71:PacketPlayerlistHeader, 72:PacketCollect, 73:PacketEntityTeleport, 74:PacketEntityUpdateAttributes, 75:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed }, + 210 : { 0:PacketSpawnEntity, 1:PacketSpawnEntityExperienceOrb, 3:PacketSpawnEntityLiving, 4:PacketSpawnEntityPainting, 5:PacketNamedEntitySpawn, 6:PacketAnimation, 7:PacketStatistics, 8:PacketBlockBreakAnimation, 9:PacketTileEntityData, 10:PacketBlockAction, 11:PacketBlockChange, 12:PacketBossBar, 13:PacketDifficulty, 14:PacketTabComplete, 15:PacketChat, 16:PacketMultiBlockChange, 17:PacketTransaction, 18:PacketCloseWindow, 19:PacketOpenWindow, 20:PacketWindowItems, 21:PacketCraftProgressBar, 22:PacketSetSlot, 23:PacketSetCooldown, 24:PacketCustomPayload, 25:PacketNamedSoundEffect, 26:PacketKickDisconnect, 27:PacketEntityStatus, 28:PacketExplosion, 29:PacketUnloadChunk, 30:PacketGameStateChange, 31:PacketKeepAlive, 32:PacketMapChunk, 33:PacketWorldEvent, 34:PacketWorldParticles, 35:PacketLogin, 36:PacketMap, 37:PacketRelEntityMove, 38:PacketEntityMoveLook, 39:PacketEntityLook, 40:PacketEntity, 41:PacketVehicleMove, 42:PacketOpenSignEntity, 43:PacketAbilities, 44:PacketCombatEvent, 45:PacketPlayerInfo, 46:PacketPosition, 48:PacketEntityDestroy, 49:PacketRemoveEntityEffect, 50:PacketResourcePackSend, 51:PacketRespawn, 52:PacketEntityHeadRotation, 53:PacketWorldBorder, 54:PacketCamera, 55:PacketHeldItemSlot, 56:PacketScoreboardDisplayObjective, 57:PacketEntityMetadata, 58:PacketAttachEntity, 59:PacketEntityVelocity, 60:PacketEntityEquipment, 61:PacketExperience, 62:PacketUpdateHealth, 63:PacketScoreboardObjective, 64:PacketSetPassengers, 65:PacketTeams, 66:PacketScoreboardScore, 67:PacketSpawnPosition, 68:PacketUpdateTime, 69:PacketTitle, 70:PacketSoundEffect, 71:PacketPlayerlistHeader, 72:PacketCollect, 73:PacketEntityTeleport, 74:PacketEntityUpdateAttributes, 75:PacketEntityEffect, 2:PacketSpawnEntityWeather, 47:PacketBed } +} diff --git a/aiocraft/mc/proto/play/clientbound/packet_abilities.py b/aiocraft/mc/proto/play/clientbound/packet_abilities.py new file mode 100644 index 0000000..dd1a9e9 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_abilities.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketAbilities(Packet): + __slots__ = ( 'id', 'walkingSpeed', 'flyingSpeed', 'flags' ) + + walkingSpeed : float + flyingSpeed : float + flags : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 57, + 47 : 57, + 76 : 43, + 107 : 43, + 108 : 43, + 109 : 43, + 110 : 43, + 201 : 43, + 210 : 43, + 304 : 43, + 315 : 43, + 321 : 44, + 327 : 44, + 331 : 44, + 335 : 43, + 338 : 44, + 340 : 44, + 351 : 45, + 393 : 46, + 401 : 46, + 402 : 46, + 403 : 46, + 404 : 46, + 477 : 49, + 480 : 49, + 490 : 49, + 498 : 49, + 573 : 50, + 575 : 50, + 578 : 50, + 709 : 50, + 734 : 49, + 735 : 49, + 736 : 49, + 751 : 48, + 755 : 50, + 756 : 50, + 757 : 50, + 1073741839 : 49 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 47 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 76 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 107 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 108 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 109 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 110 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 201 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 210 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 304 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 315 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 321 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 327 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 331 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 335 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 338 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 340 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 351 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 393 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 401 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 402 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 403 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 404 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 477 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 480 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 490 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 498 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 573 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 575 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 578 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 709 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 734 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 735 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 736 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 751 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 755 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 756 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 757 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 1073741839 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_acknowledge_player_digging.py b/aiocraft/mc/proto/play/clientbound/packet_acknowledge_player_digging.py new file mode 100644 index 0000000..9ec6fb2 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_acknowledge_player_digging.py @@ -0,0 +1,46 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketAcknowledgePlayerDigging(Packet): + __slots__ = ( 'id', 'block', 'status', 'successful', 'location' ) + + block : int + status : int + successful : bool + location : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 498 : 92, + 573 : 8, + 575 : 8, + 578 : 8, + 709 : 8, + 734 : 7, + 735 : 7, + 736 : 7, + 751 : 7, + 755 : 8, + 756 : 8, + 757 : 8, + 1073741839 : 8 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 498 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 573 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 575 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 578 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 709 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 734 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 735 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 736 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 751 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 755 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 756 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 757 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ], + 1073741839 : [ ( 'location', Position ), ( 'block', VarInt ), ( 'status', VarInt ), ( 'successful', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_action_bar.py b/aiocraft/mc/proto/play/clientbound/packet_action_bar.py new file mode 100644 index 0000000..fc2ace7 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_action_bar.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketActionBar(Packet): + __slots__ = ( 'id', 'text' ) + + text : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 65, + 756 : 65, + 757 : 65 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'text', String ) ], + 756 : [ ( 'text', String ) ], + 757 : [ ( 'text', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_advancement_progress.py b/aiocraft/mc/proto/play/clientbound/packet_advancement_progress.py new file mode 100644 index 0000000..a4ed80d --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_advancement_progress.py @@ -0,0 +1,19 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketAdvancementProgress(Packet): + __slots__ = ( 'id', 'id' ) + + id : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 331 : 78 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 331 : [ ( 'id', OptionalType(String, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_advancements.py b/aiocraft/mc/proto/play/clientbound/packet_advancements.py new file mode 100644 index 0000000..c3d120b --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_advancements.py @@ -0,0 +1,76 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketAdvancements(Packet): + __slots__ = ( 'id', 'progressMapping', 'reset', 'identifiers', 'advancementMapping' ) + + progressMapping : list + reset : bool + identifiers : list + advancementMapping : list + + _state : int = 3 + + _ids : Dict[int, int] = { + 321 : 8, + 327 : 8, + 331 : 8, + 335 : 76, + 338 : 77, + 340 : 77, + 351 : 79, + 393 : 81, + 401 : 81, + 402 : 81, + 403 : 81, + 404 : 81, + 477 : 87, + 480 : 87, + 490 : 87, + 498 : 87, + 573 : 88, + 575 : 88, + 578 : 88, + 709 : 88, + 734 : 87, + 735 : 87, + 736 : 87, + 751 : 87, + 755 : 98, + 756 : 98, + 757 : 99, + 1073741839 : 88 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 321 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', VarInt ), ( 'frameType', VarInt ), ( 'backgroundTexture', OptionalType(String, ) ), ( 'xCord', VarInt ), ( 'yCord', VarInt ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 327 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'backgroundTexture', OptionalType(String, ) ), ( 'showToast', Boolean ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 331 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', OptionalType(String, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 335 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 338 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 340 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 351 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 393 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 401 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 402 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 403 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 404 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 477 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 480 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 490 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 498 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 573 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 575 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 578 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 709 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 734 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 735 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 736 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 751 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 755 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 756 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 757 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ], + 1073741839 : [ ( 'reset', Boolean ), ( 'advancementMapping', ArrayType(StructType(( 'key', String ), ( 'value', StructType(( 'parentId', OptionalType(String, ) ), ( 'displayData', OptionalType(StructType(( 'title', String ), ( 'description', String ), ( 'icon', Slot ), ( 'frameType', VarInt ), ( 'flags', Int ), ( 'backgroundTexture', SwitchType('has_background_texture', { 1 : String }, None, ) ), ( 'xCord', Float ), ( 'yCord', Float ), ), ) ), ( 'criteria', ArrayType(StructType(( 'key', String ), ( 'value', Void ), ), VarInt, ) ), ( 'requirements', ArrayType(ArrayType(String, VarInt, ), VarInt, ) ), ) ), ), VarInt, ) ), ( 'identifiers', ArrayType(String, VarInt, ) ), ( 'progressMapping', ArrayType(StructType(( 'key', String ), ( 'value', ArrayType(StructType(( 'criterionIdentifier', String ), ( 'criterionProgress', OptionalType(Long, ) ), ), VarInt, ) ), ), VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_animation.py b/aiocraft/mc/proto/play/clientbound/packet_animation.py new file mode 100644 index 0000000..b17a992 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_animation.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketAnimation(Packet): + __slots__ = ( 'id', 'animation', 'entityId' ) + + animation : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 11, + 47 : 11, + 76 : 6, + 107 : 6, + 108 : 6, + 109 : 6, + 110 : 6, + 201 : 6, + 210 : 6, + 304 : 6, + 315 : 6, + 321 : 6, + 327 : 6, + 331 : 6, + 335 : 6, + 338 : 6, + 340 : 6, + 351 : 6, + 393 : 6, + 401 : 6, + 402 : 6, + 403 : 6, + 404 : 6, + 477 : 6, + 480 : 6, + 490 : 6, + 498 : 6, + 573 : 6, + 575 : 6, + 578 : 6, + 709 : 6, + 734 : 5, + 735 : 5, + 736 : 5, + 751 : 5, + 755 : 6, + 756 : 6, + 757 : 6, + 1073741839 : 6 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 47 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 76 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 107 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 108 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 109 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 110 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 201 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 210 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 304 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 315 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 321 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 327 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 331 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 335 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 338 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 340 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 351 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 393 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 401 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 402 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 403 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 404 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 477 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 480 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 490 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 498 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 573 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 575 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 578 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 709 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 734 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 735 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 736 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 751 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 755 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 756 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 757 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'animation', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_attach_entity.py b/aiocraft/mc/proto/play/clientbound/packet_attach_entity.py new file mode 100644 index 0000000..839c6d4 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_attach_entity.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketAttachEntity(Packet): + __slots__ = ( 'id', 'leash', 'vehicleId', 'entityId' ) + + leash : bool + vehicleId : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 27, + 47 : 27, + 76 : 58, + 107 : 58, + 108 : 58, + 109 : 58, + 110 : 58, + 201 : 58, + 210 : 58, + 304 : 58, + 315 : 58, + 321 : 60, + 327 : 60, + 331 : 60, + 335 : 60, + 338 : 61, + 340 : 61, + 351 : 62, + 393 : 64, + 401 : 64, + 402 : 64, + 403 : 64, + 404 : 64, + 477 : 68, + 480 : 68, + 490 : 68, + 498 : 68, + 573 : 69, + 575 : 69, + 578 : 69, + 709 : 70, + 734 : 69, + 735 : 69, + 736 : 69, + 751 : 69, + 755 : 78, + 756 : 78, + 757 : 78, + 1073741839 : 70 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'vehicleId', Int ), ( 'leash', Boolean ) ], + 47 : [ ( 'entityId', Int ), ( 'vehicleId', Int ), ( 'leash', Boolean ) ], + 76 : [ ( 'entityId', Int ), ( 'vehicleId', Int ), ( 'leash', Boolean ) ], + 107 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 108 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 109 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 110 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 201 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 210 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 304 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 315 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 321 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 327 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 331 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 335 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 338 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 340 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 351 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 393 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 401 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 402 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 403 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 404 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 477 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 480 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 490 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 498 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 573 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 575 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 578 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 709 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 734 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 735 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 736 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 751 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 755 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 756 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 757 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ], + 1073741839 : [ ( 'entityId', Int ), ( 'vehicleId', Int ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_bed.py b/aiocraft/mc/proto/play/clientbound/packet_bed.py new file mode 100644 index 0000000..ad642b6 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_bed.py @@ -0,0 +1,64 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketBed(Packet): + __slots__ = ( 'id', 'entityId', 'location' ) + + entityId : int + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 10, + 47 : 10, + 76 : 47, + 107 : 47, + 108 : 47, + 109 : 47, + 110 : 47, + 201 : 47, + 210 : 47, + 304 : 47, + 315 : 47, + 321 : 48, + 327 : 48, + 331 : 48, + 335 : 47, + 338 : 48, + 340 : 48, + 351 : 49, + 393 : 51, + 401 : 51, + 402 : 51, + 403 : 51, + 404 : 51 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'location', TrailingData ) ], + 47 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 76 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 107 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 108 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 109 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 110 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 201 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 210 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 304 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 315 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 321 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 327 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 331 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 335 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 338 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 340 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 351 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 393 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 401 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 402 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 403 : [ ( 'entityId', VarInt ), ( 'location', Position ) ], + 404 : [ ( 'entityId', VarInt ), ( 'location', Position ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_block_action.py b/aiocraft/mc/proto/play/clientbound/packet_block_action.py new file mode 100644 index 0000000..141b5dd --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_block_action.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketBlockAction(Packet): + __slots__ = ( 'id', 'blockId', 'byte2', 'byte1', 'location' ) + + blockId : int + byte2 : int + byte1 : int + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 36, + 47 : 36, + 76 : 10, + 107 : 10, + 108 : 10, + 109 : 10, + 110 : 10, + 201 : 10, + 210 : 10, + 304 : 10, + 315 : 10, + 321 : 11, + 327 : 11, + 331 : 11, + 335 : 10, + 338 : 10, + 340 : 10, + 351 : 10, + 393 : 10, + 401 : 10, + 402 : 10, + 403 : 10, + 404 : 10, + 477 : 10, + 480 : 10, + 490 : 10, + 498 : 10, + 573 : 11, + 575 : 11, + 578 : 11, + 709 : 11, + 734 : 10, + 735 : 10, + 736 : 10, + 751 : 10, + 755 : 11, + 756 : 11, + 757 : 11, + 1073741839 : 11 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'location', TrailingData ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 47 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 76 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 107 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 108 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 109 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 110 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 201 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 210 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 304 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 315 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 321 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 327 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 331 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 335 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 338 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 340 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 351 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 393 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 401 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 402 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 403 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 404 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 477 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 480 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 490 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 498 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 573 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 575 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 578 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 709 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 734 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 735 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 736 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 751 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 755 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 756 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 757 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ], + 1073741839 : [ ( 'location', Position ), ( 'byte1', Byte ), ( 'byte2', Byte ), ( 'blockId', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_block_break_animation.py b/aiocraft/mc/proto/play/clientbound/packet_block_break_animation.py new file mode 100644 index 0000000..c3d2b45 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_block_break_animation.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketBlockBreakAnimation(Packet): + __slots__ = ( 'id', 'destroyStage', 'entityId', 'location' ) + + destroyStage : int + entityId : int + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 37, + 47 : 37, + 76 : 8, + 107 : 8, + 108 : 8, + 109 : 8, + 110 : 8, + 201 : 8, + 210 : 8, + 304 : 8, + 315 : 8, + 321 : 9, + 327 : 9, + 331 : 9, + 335 : 8, + 338 : 8, + 340 : 8, + 351 : 8, + 393 : 8, + 401 : 8, + 402 : 8, + 403 : 8, + 404 : 8, + 477 : 8, + 480 : 8, + 490 : 8, + 498 : 8, + 573 : 9, + 575 : 9, + 578 : 9, + 709 : 9, + 734 : 8, + 735 : 8, + 736 : 8, + 751 : 8, + 755 : 9, + 756 : 9, + 757 : 9, + 1073741839 : 9 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', VarInt ), ( 'location', TrailingData ), ( 'destroyStage', Byte ) ], + 47 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 76 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 107 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 108 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 109 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 110 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 201 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 210 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 304 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 315 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 321 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 327 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 331 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 335 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 338 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 340 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 351 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 393 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 401 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 402 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 403 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 404 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 477 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 480 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 490 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 498 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 573 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 575 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 578 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 709 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 734 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 735 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 736 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 751 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 755 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 756 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 757 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'location', Position ), ( 'destroyStage', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_block_change.py b/aiocraft/mc/proto/play/clientbound/packet_block_change.py new file mode 100644 index 0000000..eba97a3 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_block_change.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketBlockChange(Packet): + __slots__ = ( 'id', 'metadata', 'type', 'location' ) + + metadata : int + type : int + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 35, + 47 : 35, + 76 : 11, + 107 : 11, + 108 : 11, + 109 : 11, + 110 : 11, + 201 : 11, + 210 : 11, + 304 : 11, + 315 : 11, + 321 : 12, + 327 : 12, + 331 : 12, + 335 : 11, + 338 : 11, + 340 : 11, + 351 : 11, + 393 : 11, + 401 : 11, + 402 : 11, + 403 : 11, + 404 : 11, + 477 : 11, + 480 : 11, + 490 : 11, + 498 : 11, + 573 : 12, + 575 : 12, + 578 : 12, + 709 : 12, + 734 : 11, + 735 : 11, + 736 : 11, + 751 : 11, + 755 : 12, + 756 : 12, + 757 : 12, + 1073741839 : 12 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'location', TrailingData ), ( 'type', VarInt ), ( 'metadata', Byte ) ], + 47 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 76 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 107 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 108 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 109 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 110 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 201 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 210 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 304 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 315 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 321 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 327 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 331 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 335 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 338 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 340 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 351 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 393 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 401 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 402 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 403 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 404 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 477 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 480 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 490 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 498 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 573 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 575 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 578 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 709 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 734 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 735 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 736 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 751 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 755 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 756 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 757 : [ ( 'location', Position ), ( 'type', VarInt ) ], + 1073741839 : [ ( 'location', Position ), ( 'type', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_boss_bar.py b/aiocraft/mc/proto/play/clientbound/packet_boss_bar.py new file mode 100644 index 0000000..8004807 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_boss_bar.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketBossBar(Packet): + __slots__ = ( 'id', 'dividers', 'action', 'title', 'flags', 'entityUUID', 'color', 'health' ) + + dividers : bytes + action : int + title : bytes + flags : bytes + entityUUID : str + color : bytes + health : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 76 : 12, + 107 : 12, + 108 : 12, + 109 : 12, + 110 : 12, + 201 : 12, + 210 : 12, + 304 : 12, + 315 : 12, + 321 : 13, + 327 : 13, + 331 : 13, + 335 : 12, + 338 : 12, + 340 : 12, + 351 : 12, + 393 : 12, + 401 : 12, + 402 : 12, + 403 : 12, + 404 : 12, + 477 : 12, + 480 : 12, + 490 : 12, + 498 : 12, + 573 : 13, + 575 : 13, + 578 : 13, + 709 : 13, + 734 : 12, + 735 : 12, + 736 : 12, + 751 : 12, + 755 : 13, + 756 : 13, + 757 : 13, + 1073741839 : 13 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 76 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 107 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 108 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 109 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 110 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 201 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 210 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 304 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 315 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 321 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 327 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 331 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 335 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 338 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 340 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 351 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 393 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 401 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 402 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 403 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 404 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 477 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 480 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 490 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 498 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 573 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 575 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 578 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 709 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 734 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 735 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 736 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 751 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 755 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 756 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 757 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ], + 1073741839 : [ ( 'entityUUID', UUID ), ( 'action', VarInt ), ( 'title', SwitchType('action', { 0 : String, 3 : String }, None, ) ), ( 'health', SwitchType('action', { 0 : Float, 2 : Float }, None, ) ), ( 'color', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'dividers', SwitchType('action', { 0 : VarInt, 4 : VarInt }, None, ) ), ( 'flags', SwitchType('action', { 0 : Byte, 5 : Byte }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_camera.py b/aiocraft/mc/proto/play/clientbound/packet_camera.py new file mode 100644 index 0000000..a85cb77 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_camera.py @@ -0,0 +1,93 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCamera(Packet): + __slots__ = ( 'id', 'cameraId' ) + + cameraId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 67, + 76 : 54, + 107 : 54, + 108 : 54, + 109 : 54, + 110 : 54, + 201 : 54, + 210 : 54, + 304 : 54, + 315 : 54, + 321 : 56, + 327 : 56, + 331 : 56, + 335 : 56, + 338 : 57, + 340 : 57, + 351 : 58, + 393 : 60, + 401 : 60, + 402 : 60, + 403 : 60, + 404 : 60, + 477 : 62, + 480 : 62, + 490 : 62, + 498 : 62, + 573 : 63, + 575 : 63, + 578 : 63, + 709 : 63, + 734 : 62, + 735 : 62, + 736 : 62, + 751 : 62, + 755 : 71, + 756 : 71, + 757 : 71, + 1073741839 : 63 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'cameraId', VarInt ) ], + 76 : [ ( 'cameraId', VarInt ) ], + 107 : [ ( 'cameraId', VarInt ) ], + 108 : [ ( 'cameraId', VarInt ) ], + 109 : [ ( 'cameraId', VarInt ) ], + 110 : [ ( 'cameraId', VarInt ) ], + 201 : [ ( 'cameraId', VarInt ) ], + 210 : [ ( 'cameraId', VarInt ) ], + 304 : [ ( 'cameraId', VarInt ) ], + 315 : [ ( 'cameraId', VarInt ) ], + 321 : [ ( 'cameraId', VarInt ) ], + 327 : [ ( 'cameraId', VarInt ) ], + 331 : [ ( 'cameraId', VarInt ) ], + 335 : [ ( 'cameraId', VarInt ) ], + 338 : [ ( 'cameraId', VarInt ) ], + 340 : [ ( 'cameraId', VarInt ) ], + 351 : [ ( 'cameraId', VarInt ) ], + 393 : [ ( 'cameraId', VarInt ) ], + 401 : [ ( 'cameraId', VarInt ) ], + 402 : [ ( 'cameraId', VarInt ) ], + 403 : [ ( 'cameraId', VarInt ) ], + 404 : [ ( 'cameraId', VarInt ) ], + 477 : [ ( 'cameraId', VarInt ) ], + 480 : [ ( 'cameraId', VarInt ) ], + 490 : [ ( 'cameraId', VarInt ) ], + 498 : [ ( 'cameraId', VarInt ) ], + 573 : [ ( 'cameraId', VarInt ) ], + 575 : [ ( 'cameraId', VarInt ) ], + 578 : [ ( 'cameraId', VarInt ) ], + 709 : [ ( 'cameraId', VarInt ) ], + 734 : [ ( 'cameraId', VarInt ) ], + 735 : [ ( 'cameraId', VarInt ) ], + 736 : [ ( 'cameraId', VarInt ) ], + 751 : [ ( 'cameraId', VarInt ) ], + 755 : [ ( 'cameraId', VarInt ) ], + 756 : [ ( 'cameraId', VarInt ) ], + 757 : [ ( 'cameraId', VarInt ) ], + 1073741839 : [ ( 'cameraId', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_chat.py b/aiocraft/mc/proto/play/clientbound/packet_chat.py new file mode 100644 index 0000000..de7f816 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_chat.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketChat(Packet): + __slots__ = ( 'id', 'message', 'position', 'sender' ) + + message : str + position : int + sender : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 2, + 47 : 2, + 76 : 15, + 107 : 15, + 108 : 15, + 109 : 15, + 110 : 15, + 201 : 15, + 210 : 15, + 304 : 15, + 315 : 15, + 321 : 16, + 327 : 16, + 331 : 16, + 335 : 15, + 338 : 15, + 340 : 15, + 351 : 14, + 393 : 14, + 401 : 14, + 402 : 14, + 403 : 14, + 404 : 14, + 477 : 14, + 480 : 14, + 490 : 14, + 498 : 14, + 573 : 15, + 575 : 15, + 578 : 15, + 709 : 15, + 734 : 14, + 735 : 14, + 736 : 14, + 751 : 14, + 755 : 15, + 756 : 15, + 757 : 15, + 1073741839 : 15 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'message', String ) ], + 47 : [ ( 'message', String ), ( 'position', Byte ) ], + 76 : [ ( 'message', String ), ( 'position', Byte ) ], + 107 : [ ( 'message', String ), ( 'position', Byte ) ], + 108 : [ ( 'message', String ), ( 'position', Byte ) ], + 109 : [ ( 'message', String ), ( 'position', Byte ) ], + 110 : [ ( 'message', String ), ( 'position', Byte ) ], + 201 : [ ( 'message', String ), ( 'position', Byte ) ], + 210 : [ ( 'message', String ), ( 'position', Byte ) ], + 304 : [ ( 'message', String ), ( 'position', Byte ) ], + 315 : [ ( 'message', String ), ( 'position', Byte ) ], + 321 : [ ( 'message', String ), ( 'position', Byte ) ], + 327 : [ ( 'message', String ), ( 'position', Byte ) ], + 331 : [ ( 'message', String ), ( 'position', Byte ) ], + 335 : [ ( 'message', String ), ( 'position', Byte ) ], + 338 : [ ( 'message', String ), ( 'position', Byte ) ], + 340 : [ ( 'message', String ), ( 'position', Byte ) ], + 351 : [ ( 'message', String ), ( 'position', Byte ) ], + 393 : [ ( 'message', String ), ( 'position', Byte ) ], + 401 : [ ( 'message', String ), ( 'position', Byte ) ], + 402 : [ ( 'message', String ), ( 'position', Byte ) ], + 403 : [ ( 'message', String ), ( 'position', Byte ) ], + 404 : [ ( 'message', String ), ( 'position', Byte ) ], + 477 : [ ( 'message', String ), ( 'position', Byte ) ], + 480 : [ ( 'message', String ), ( 'position', Byte ) ], + 490 : [ ( 'message', String ), ( 'position', Byte ) ], + 498 : [ ( 'message', String ), ( 'position', Byte ) ], + 573 : [ ( 'message', String ), ( 'position', Byte ) ], + 575 : [ ( 'message', String ), ( 'position', Byte ) ], + 578 : [ ( 'message', String ), ( 'position', Byte ) ], + 709 : [ ( 'message', String ), ( 'position', Byte ) ], + 734 : [ ( 'message', String ), ( 'position', Byte ), ( 'sender', UUID ) ], + 735 : [ ( 'message', String ), ( 'position', Byte ), ( 'sender', UUID ) ], + 736 : [ ( 'message', String ), ( 'position', Byte ), ( 'sender', UUID ) ], + 751 : [ ( 'message', String ), ( 'position', Byte ), ( 'sender', UUID ) ], + 755 : [ ( 'message', String ), ( 'position', Byte ), ( 'sender', UUID ) ], + 756 : [ ( 'message', String ), ( 'position', Byte ), ( 'sender', UUID ) ], + 757 : [ ( 'message', String ), ( 'position', Byte ), ( 'sender', UUID ) ], + 1073741839 : [ ( 'message', String ), ( 'position', Byte ), ( 'sender', UUID ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_clear_titles.py b/aiocraft/mc/proto/play/clientbound/packet_clear_titles.py new file mode 100644 index 0000000..751788e --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_clear_titles.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketClearTitles(Packet): + __slots__ = ( 'id', 'reset' ) + + reset : bool + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 16, + 756 : 16, + 757 : 16 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'reset', Boolean ) ], + 756 : [ ( 'reset', Boolean ) ], + 757 : [ ( 'reset', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_close_window.py b/aiocraft/mc/proto/play/clientbound/packet_close_window.py new file mode 100644 index 0000000..c143cb1 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_close_window.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCloseWindow(Packet): + __slots__ = ( 'id', 'windowId' ) + + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 46, + 47 : 46, + 76 : 18, + 107 : 18, + 108 : 18, + 109 : 18, + 110 : 18, + 201 : 18, + 210 : 18, + 304 : 18, + 315 : 18, + 321 : 19, + 327 : 19, + 331 : 19, + 335 : 18, + 338 : 18, + 340 : 18, + 351 : 19, + 393 : 19, + 401 : 19, + 402 : 19, + 403 : 19, + 404 : 19, + 477 : 19, + 480 : 19, + 490 : 19, + 498 : 19, + 573 : 20, + 575 : 20, + 578 : 20, + 709 : 20, + 734 : 19, + 735 : 19, + 736 : 19, + 751 : 18, + 755 : 19, + 756 : 19, + 757 : 19, + 1073741839 : 19 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ) ], + 47 : [ ( 'windowId', Byte ) ], + 76 : [ ( 'windowId', Byte ) ], + 107 : [ ( 'windowId', Byte ) ], + 108 : [ ( 'windowId', Byte ) ], + 109 : [ ( 'windowId', Byte ) ], + 110 : [ ( 'windowId', Byte ) ], + 201 : [ ( 'windowId', Byte ) ], + 210 : [ ( 'windowId', Byte ) ], + 304 : [ ( 'windowId', Byte ) ], + 315 : [ ( 'windowId', Byte ) ], + 321 : [ ( 'windowId', Byte ) ], + 327 : [ ( 'windowId', Byte ) ], + 331 : [ ( 'windowId', Byte ) ], + 335 : [ ( 'windowId', Byte ) ], + 338 : [ ( 'windowId', Byte ) ], + 340 : [ ( 'windowId', Byte ) ], + 351 : [ ( 'windowId', Byte ) ], + 393 : [ ( 'windowId', Byte ) ], + 401 : [ ( 'windowId', Byte ) ], + 402 : [ ( 'windowId', Byte ) ], + 403 : [ ( 'windowId', Byte ) ], + 404 : [ ( 'windowId', Byte ) ], + 477 : [ ( 'windowId', Byte ) ], + 480 : [ ( 'windowId', Byte ) ], + 490 : [ ( 'windowId', Byte ) ], + 498 : [ ( 'windowId', Byte ) ], + 573 : [ ( 'windowId', Byte ) ], + 575 : [ ( 'windowId', Byte ) ], + 578 : [ ( 'windowId', Byte ) ], + 709 : [ ( 'windowId', Byte ) ], + 734 : [ ( 'windowId', Byte ) ], + 735 : [ ( 'windowId', Byte ) ], + 736 : [ ( 'windowId', Byte ) ], + 751 : [ ( 'windowId', Byte ) ], + 755 : [ ( 'windowId', Byte ) ], + 756 : [ ( 'windowId', Byte ) ], + 757 : [ ( 'windowId', Byte ) ], + 1073741839 : [ ( 'windowId', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_collect.py b/aiocraft/mc/proto/play/clientbound/packet_collect.py new file mode 100644 index 0000000..9ecc157 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_collect.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCollect(Packet): + __slots__ = ( 'id', 'collectedEntityId', 'collectorEntityId', 'pickupItemCount' ) + + collectedEntityId : int + collectorEntityId : int + pickupItemCount : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 13, + 47 : 13, + 76 : 71, + 107 : 73, + 108 : 73, + 109 : 73, + 110 : 72, + 201 : 72, + 210 : 72, + 304 : 72, + 315 : 72, + 321 : 74, + 327 : 74, + 331 : 74, + 335 : 74, + 338 : 75, + 340 : 75, + 351 : 77, + 393 : 79, + 401 : 79, + 402 : 79, + 403 : 79, + 404 : 79, + 477 : 85, + 480 : 85, + 490 : 85, + 498 : 85, + 573 : 86, + 575 : 86, + 578 : 86, + 709 : 86, + 734 : 85, + 735 : 85, + 736 : 85, + 751 : 85, + 755 : 96, + 756 : 96, + 757 : 97, + 1073741839 : 86 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'collectedEntityId', Int ), ( 'collectorEntityId', Int ) ], + 47 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ) ], + 76 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ) ], + 107 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ) ], + 108 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ) ], + 109 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ) ], + 110 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ) ], + 201 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ) ], + 210 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ) ], + 304 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 315 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 321 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 327 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 331 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 335 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 338 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 340 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 351 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 393 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 401 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 402 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 403 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 404 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 477 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 480 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 490 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 498 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 573 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 575 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 578 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 709 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 734 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 735 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 736 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 751 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 755 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 756 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 757 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ], + 1073741839 : [ ( 'collectedEntityId', VarInt ), ( 'collectorEntityId', VarInt ), ( 'pickupItemCount', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_combat_event.py b/aiocraft/mc/proto/play/clientbound/packet_combat_event.py new file mode 100644 index 0000000..292a180 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_combat_event.py @@ -0,0 +1,91 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCombatEvent(Packet): + __slots__ = ( 'id', 'event', 'duration', 'playerId', 'message', 'entityId' ) + + event : int + duration : bytes + playerId : bytes + message : bytes + entityId : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 66, + 76 : 44, + 107 : 44, + 108 : 44, + 109 : 44, + 110 : 44, + 201 : 44, + 210 : 44, + 304 : 44, + 315 : 44, + 321 : 45, + 327 : 45, + 331 : 45, + 335 : 44, + 338 : 45, + 340 : 45, + 351 : 46, + 393 : 47, + 401 : 47, + 402 : 47, + 403 : 47, + 404 : 47, + 477 : 50, + 480 : 50, + 490 : 50, + 498 : 50, + 573 : 51, + 575 : 51, + 578 : 51, + 709 : 51, + 734 : 50, + 735 : 50, + 736 : 50, + 751 : 49, + 1073741839 : 50 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 76 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 107 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 108 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 109 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 110 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 201 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 210 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 304 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 315 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 321 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 327 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 331 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 335 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 338 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 340 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 351 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 393 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 401 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 402 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 403 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 404 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 477 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 480 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 490 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 498 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 573 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 575 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 578 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 709 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 734 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 735 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 736 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 751 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ], + 1073741839 : [ ( 'event', VarInt ), ( 'duration', SwitchType('event', { 1 : VarInt }, None, ) ), ( 'playerId', SwitchType('event', { 2 : VarInt }, None, ) ), ( 'entityId', SwitchType('event', { 1 : Int, 2 : Int }, None, ) ), ( 'message', SwitchType('event', { 2 : String }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_craft_progress_bar.py b/aiocraft/mc/proto/play/clientbound/packet_craft_progress_bar.py new file mode 100644 index 0000000..52d067c --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_craft_progress_bar.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCraftProgressBar(Packet): + __slots__ = ( 'id', 'property', 'value', 'windowId' ) + + property : int + value : int + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 49, + 47 : 49, + 76 : 21, + 107 : 21, + 108 : 21, + 109 : 21, + 110 : 21, + 201 : 21, + 210 : 21, + 304 : 21, + 315 : 21, + 321 : 22, + 327 : 22, + 331 : 22, + 335 : 21, + 338 : 21, + 340 : 21, + 351 : 22, + 393 : 22, + 401 : 22, + 402 : 22, + 403 : 22, + 404 : 22, + 477 : 21, + 480 : 21, + 490 : 21, + 498 : 21, + 573 : 22, + 575 : 22, + 578 : 22, + 709 : 22, + 734 : 21, + 735 : 21, + 736 : 21, + 751 : 20, + 755 : 21, + 756 : 21, + 757 : 21, + 1073741839 : 21 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 47 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 76 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 107 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 108 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 109 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 110 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 201 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 210 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 304 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 315 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 321 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 327 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 331 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 335 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 338 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 340 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 351 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 393 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 401 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 402 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 403 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 404 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 477 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 480 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 490 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 498 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 573 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 575 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 578 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 709 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 734 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 735 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 736 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 751 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 755 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 756 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 757 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'property', Short ), ( 'value', Short ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_craft_recipe_response.py b/aiocraft/mc/proto/play/clientbound/packet_craft_recipe_response.py new file mode 100644 index 0000000..f890370 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_craft_recipe_response.py @@ -0,0 +1,66 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCraftRecipeResponse(Packet): + __slots__ = ( 'id', 'recipe', 'windowId' ) + + recipe : Union[str,int] + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 338 : 43, + 340 : 43, + 351 : 44, + 393 : 45, + 401 : 45, + 402 : 45, + 403 : 45, + 404 : 45, + 477 : 48, + 480 : 48, + 490 : 48, + 498 : 48, + 573 : 49, + 575 : 49, + 578 : 49, + 709 : 49, + 734 : 48, + 735 : 48, + 736 : 48, + 751 : 47, + 755 : 49, + 756 : 49, + 757 : 49, + 1073741839 : 48 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 338 : [ ( 'windowId', Byte ), ( 'recipe', VarInt ) ], + 340 : [ ( 'windowId', Byte ), ( 'recipe', VarInt ) ], + 351 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 393 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 401 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 402 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 403 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 404 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 477 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 480 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 490 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 498 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 573 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 575 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 578 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 709 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 734 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 735 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 736 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 751 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 755 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 756 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 757 : [ ( 'windowId', Byte ), ( 'recipe', String ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'recipe', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_custom_payload.py b/aiocraft/mc/proto/play/clientbound/packet_custom_payload.py new file mode 100644 index 0000000..db12458 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_custom_payload.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCustomPayload(Packet): + __slots__ = ( 'id', 'data', 'channel' ) + + data : bytes + channel : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 63, + 47 : 63, + 76 : 24, + 107 : 24, + 108 : 24, + 109 : 24, + 110 : 24, + 201 : 24, + 210 : 24, + 304 : 24, + 315 : 24, + 321 : 25, + 327 : 25, + 331 : 25, + 335 : 24, + 338 : 24, + 340 : 24, + 351 : 25, + 393 : 25, + 401 : 25, + 402 : 25, + 403 : 25, + 404 : 25, + 477 : 24, + 480 : 24, + 490 : 24, + 498 : 24, + 573 : 25, + 575 : 25, + 578 : 25, + 709 : 25, + 734 : 24, + 735 : 24, + 736 : 24, + 751 : 23, + 755 : 24, + 756 : 24, + 757 : 24, + 1073741839 : 24 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'channel', String ), ( 'data', ByteArray ) ], + 47 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 76 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 107 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 108 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 109 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 110 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 201 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 210 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 304 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 315 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 321 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 327 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 331 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 335 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 338 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 340 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 351 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 393 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 401 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 402 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 403 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 404 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 477 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 480 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 490 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 498 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 573 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 575 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 578 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 709 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 734 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 735 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 736 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 751 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 755 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 756 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 757 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 1073741839 : [ ( 'channel', String ), ( 'data', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_death_combat_event.py b/aiocraft/mc/proto/play/clientbound/packet_death_combat_event.py new file mode 100644 index 0000000..11c8594 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_death_combat_event.py @@ -0,0 +1,25 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketDeathCombatEvent(Packet): + __slots__ = ( 'id', 'message', 'entityId', 'playerId' ) + + message : str + entityId : int + playerId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 53, + 756 : 53, + 757 : 53 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'playerId', VarInt ), ( 'entityId', Int ), ( 'message', String ) ], + 756 : [ ( 'playerId', VarInt ), ( 'entityId', Int ), ( 'message', String ) ], + 757 : [ ( 'playerId', VarInt ), ( 'entityId', Int ), ( 'message', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_declare_commands.py b/aiocraft/mc/proto/play/clientbound/packet_declare_commands.py new file mode 100644 index 0000000..7e888cc --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_declare_commands.py @@ -0,0 +1,62 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketDeclareCommands(Packet): + __slots__ = ( 'id', 'nodes', 'rootIndex' ) + + nodes : list + rootIndex : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 351 : 17, + 393 : 17, + 401 : 17, + 402 : 17, + 403 : 17, + 404 : 17, + 477 : 17, + 480 : 17, + 490 : 17, + 498 : 17, + 573 : 18, + 575 : 18, + 578 : 18, + 709 : 18, + 734 : 17, + 735 : 17, + 736 : 17, + 751 : 16, + 755 : 18, + 756 : 18, + 757 : 18, + 1073741839 : 17 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 351 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 393 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 401 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 402 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 403 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 404 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 477 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 480 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 490 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 498 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 573 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 575 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 578 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 709 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 734 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 735 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 736 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 751 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 755 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 756 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 757 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ], + 1073741839 : [ ( 'nodes', ArrayType(StructType(( 'flags', Int ), ( 'children', ArrayType(VarInt, VarInt, ) ), ( 'redirectNode', SwitchType('has_redirect_node', { 1 : VarInt }, None, ) ), ( 'extraNodeData', SwitchType('command_node_type', { 0 : Void, 1 : String, 2 : StructType(( 'name', String ), ( 'parser', String ), ( 'properties', SwitchType('parser', { 'brigadier:double' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Double }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Double }, None, ) ), ), 'brigadier:float' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Float }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Float }, None, ) ), ), 'brigadier:integer' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Int }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Int }, None, ) ), ), 'brigadier:long' : StructType(( 'flags', Int ), ( 'min', SwitchType('min_present', { 1 : Long }, None, ) ), ( 'max', SwitchType('max_present', { 1 : Long }, None, ) ), ), 'brigadier:string' : VarInt, 'minecraft:entity' : Byte, 'minecraft:range' : Boolean, 'minecraft:score_holder' : Byte }, None, ) ), ( 'suggests', SwitchType('has_custom_suggestions', { 1 : String }, None, ) ), ) }, None, ) ), ), VarInt, ) ), ( 'rootIndex', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_declare_recipes.py b/aiocraft/mc/proto/play/clientbound/packet_declare_recipes.py new file mode 100644 index 0000000..284b349 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_declare_recipes.py @@ -0,0 +1,61 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketDeclareRecipes(Packet): + __slots__ = ( 'id', 'recipes' ) + + recipes : list + + _state : int = 3 + + _ids : Dict[int, int] = { + 351 : 82, + 393 : 84, + 401 : 84, + 402 : 84, + 403 : 84, + 404 : 84, + 477 : 90, + 480 : 90, + 490 : 90, + 498 : 90, + 573 : 91, + 575 : 91, + 578 : 91, + 709 : 91, + 734 : 90, + 735 : 90, + 736 : 90, + 751 : 90, + 755 : 101, + 756 : 101, + 757 : 102, + 1073741839 : 91 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 351 : [ ( 'recipes', ArrayType(StructType(( 'recipeId', String ), ( 'type', String ), ( 'data', SwitchType('type', { 'crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(ArrayType(Slot, VarInt, ), 'height', ), 'width', ) ), ( 'result', Slot ), ), 'crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(ArrayType(Slot, VarInt, ), VarInt, ) ), ( 'result', Slot ), ), 'crafting_special_armordye' : Void, 'crafting_special_banneraddpattern' : Void, 'crafting_special_bannerduplicate' : Void, 'crafting_special_bookcloning' : Void, 'crafting_special_firework_rocket' : Void, 'crafting_special_firework_star' : Void, 'crafting_special_firework_star_fade' : Void, 'crafting_special_mapcloning' : Void, 'crafting_special_mapextending' : Void, 'crafting_special_repairitem' : Void, 'crafting_special_shielddecoration' : Void, 'crafting_special_shulkerboxcoloring' : Void, 'crafting_special_tippedarrow' : Void }, None, ) ), ), VarInt, ) ) ], + 393 : [ ( 'recipes', ArrayType(StructType(( 'recipeId', String ), ( 'type', String ), ( 'data', SwitchType('type', { 'crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'crafting_special_armordye' : Void, 'crafting_special_banneraddpattern' : Void, 'crafting_special_bannerduplicate' : Void, 'crafting_special_bookcloning' : Void, 'crafting_special_firework_rocket' : Void, 'crafting_special_firework_star' : Void, 'crafting_special_firework_star_fade' : Void, 'crafting_special_mapcloning' : Void, 'crafting_special_mapextending' : Void, 'crafting_special_repairitem' : Void, 'crafting_special_shielddecoration' : Void, 'crafting_special_shulkerboxcoloring' : Void, 'crafting_special_tippedarrow' : Void, 'smelting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ( 'experience', Float ), ( 'cookTime', VarInt ), ) }, None, ) ), ), VarInt, ) ) ], + 401 : [ ( 'recipes', ArrayType(StructType(( 'recipeId', String ), ( 'type', String ), ( 'data', SwitchType('type', { 'crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'crafting_special_armordye' : Void, 'crafting_special_banneraddpattern' : Void, 'crafting_special_bannerduplicate' : Void, 'crafting_special_bookcloning' : Void, 'crafting_special_firework_rocket' : Void, 'crafting_special_firework_star' : Void, 'crafting_special_firework_star_fade' : Void, 'crafting_special_mapcloning' : Void, 'crafting_special_mapextending' : Void, 'crafting_special_repairitem' : Void, 'crafting_special_shielddecoration' : Void, 'crafting_special_shulkerboxcoloring' : Void, 'crafting_special_tippedarrow' : Void, 'smelting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ( 'experience', Float ), ( 'cookTime', VarInt ), ) }, None, ) ), ), VarInt, ) ) ], + 402 : [ ( 'recipes', ArrayType(StructType(( 'recipeId', String ), ( 'type', String ), ( 'data', SwitchType('type', { 'crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'crafting_special_armordye' : Void, 'crafting_special_banneraddpattern' : Void, 'crafting_special_bannerduplicate' : Void, 'crafting_special_bookcloning' : Void, 'crafting_special_firework_rocket' : Void, 'crafting_special_firework_star' : Void, 'crafting_special_firework_star_fade' : Void, 'crafting_special_mapcloning' : Void, 'crafting_special_mapextending' : Void, 'crafting_special_repairitem' : Void, 'crafting_special_shielddecoration' : Void, 'crafting_special_shulkerboxcoloring' : Void, 'crafting_special_tippedarrow' : Void, 'smelting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ( 'experience', Float ), ( 'cookTime', VarInt ), ) }, None, ) ), ), VarInt, ) ) ], + 403 : [ ( 'recipes', ArrayType(StructType(( 'recipeId', String ), ( 'type', String ), ( 'data', SwitchType('type', { 'crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'crafting_special_armordye' : Void, 'crafting_special_banneraddpattern' : Void, 'crafting_special_bannerduplicate' : Void, 'crafting_special_bookcloning' : Void, 'crafting_special_firework_rocket' : Void, 'crafting_special_firework_star' : Void, 'crafting_special_firework_star_fade' : Void, 'crafting_special_mapcloning' : Void, 'crafting_special_mapextending' : Void, 'crafting_special_repairitem' : Void, 'crafting_special_shielddecoration' : Void, 'crafting_special_shulkerboxcoloring' : Void, 'crafting_special_tippedarrow' : Void, 'smelting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ( 'experience', Float ), ( 'cookTime', VarInt ), ) }, None, ) ), ), VarInt, ) ) ], + 404 : [ ( 'recipes', ArrayType(StructType(( 'recipeId', String ), ( 'type', String ), ( 'data', SwitchType('type', { 'crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'crafting_special_armordye' : Void, 'crafting_special_banneraddpattern' : Void, 'crafting_special_bannerduplicate' : Void, 'crafting_special_bookcloning' : Void, 'crafting_special_firework_rocket' : Void, 'crafting_special_firework_star' : Void, 'crafting_special_firework_star_fade' : Void, 'crafting_special_mapcloning' : Void, 'crafting_special_mapextending' : Void, 'crafting_special_repairitem' : Void, 'crafting_special_shielddecoration' : Void, 'crafting_special_shulkerboxcoloring' : Void, 'crafting_special_tippedarrow' : Void, 'smelting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ( 'experience', Float ), ( 'cookTime', VarInt ), ) }, None, ) ), ), VarInt, ) ) ], + 477 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 480 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 490 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 498 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 573 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 575 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 578 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 709 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 734 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smithing' : StructType(( 'base', TrailingData ), ( 'addition', TrailingData ), ( 'result', Slot ), ), 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 735 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smithing' : StructType(( 'base', TrailingData ), ( 'addition', TrailingData ), ( 'result', Slot ), ), 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 736 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smithing' : StructType(( 'base', TrailingData ), ( 'addition', TrailingData ), ( 'result', Slot ), ), 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 751 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'width', ), 'height', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smithing' : StructType(( 'base', TrailingData ), ( 'addition', TrailingData ), ( 'result', Slot ), ), 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 755 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smithing' : StructType(( 'base', TrailingData ), ( 'addition', TrailingData ), ( 'result', Slot ), ), 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 756 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smithing' : StructType(( 'base', TrailingData ), ( 'addition', TrailingData ), ( 'result', Slot ), ), 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 757 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smithing' : StructType(( 'base', TrailingData ), ( 'addition', TrailingData ), ( 'result', Slot ), ), 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ], + 1073741839 : [ ( 'recipes', ArrayType(StructType(( 'type', String ), ( 'recipeId', String ), ( 'data', SwitchType('type', { 'minecraft:blasting' : TrailingData, 'minecraft:campfire_cooking' : TrailingData, 'minecraft:crafting_shaped' : StructType(( 'width', VarInt ), ( 'height', VarInt ), ( 'group', String ), ( 'ingredients', ArrayType(ArrayType(TrailingData, 'height', ), 'width', ) ), ( 'result', Slot ), ), 'minecraft:crafting_shapeless' : StructType(( 'group', String ), ( 'ingredients', ArrayType(TrailingData, VarInt, ) ), ( 'result', Slot ), ), 'minecraft:crafting_special_armordye' : Void, 'minecraft:crafting_special_banneraddpattern' : Void, 'minecraft:crafting_special_bannerduplicate' : Void, 'minecraft:crafting_special_bookcloning' : Void, 'minecraft:crafting_special_firework_rocket' : Void, 'minecraft:crafting_special_firework_star' : Void, 'minecraft:crafting_special_firework_star_fade' : Void, 'minecraft:crafting_special_mapcloning' : Void, 'minecraft:crafting_special_mapextending' : Void, 'minecraft:crafting_special_repairitem' : Void, 'minecraft:crafting_special_shielddecoration' : Void, 'minecraft:crafting_special_shulkerboxcoloring' : Void, 'minecraft:crafting_special_suspiciousstew' : Void, 'minecraft:crafting_special_tippedarrow' : Void, 'minecraft:smelting' : TrailingData, 'minecraft:smithing' : StructType(( 'base', TrailingData ), ( 'addition', TrailingData ), ( 'result', Slot ), ), 'minecraft:smoking' : TrailingData, 'minecraft:stonecutting' : StructType(( 'group', String ), ( 'ingredient', TrailingData ), ( 'result', Slot ), ) }, None, ) ), ), VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_destroy_entity.py b/aiocraft/mc/proto/play/clientbound/packet_destroy_entity.py new file mode 100644 index 0000000..c15977b --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_destroy_entity.py @@ -0,0 +1,19 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketDestroyEntity(Packet): + __slots__ = ( 'id', 'entityId' ) + + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 58 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'entityId', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_difficulty.py b/aiocraft/mc/proto/play/clientbound/packet_difficulty.py new file mode 100644 index 0000000..8801ace --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_difficulty.py @@ -0,0 +1,94 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketDifficulty(Packet): + __slots__ = ( 'id', 'difficultyLocked', 'difficulty' ) + + difficultyLocked : bool + difficulty : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 65, + 76 : 13, + 107 : 13, + 108 : 13, + 109 : 13, + 110 : 13, + 201 : 13, + 210 : 13, + 304 : 13, + 315 : 13, + 321 : 14, + 327 : 14, + 331 : 14, + 335 : 13, + 338 : 13, + 340 : 13, + 351 : 13, + 393 : 13, + 401 : 13, + 402 : 13, + 403 : 13, + 404 : 13, + 477 : 13, + 480 : 13, + 490 : 13, + 498 : 13, + 573 : 14, + 575 : 14, + 578 : 14, + 709 : 14, + 734 : 13, + 735 : 13, + 736 : 13, + 751 : 13, + 755 : 14, + 756 : 14, + 757 : 14, + 1073741839 : 14 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'difficulty', Byte ) ], + 76 : [ ( 'difficulty', Byte ) ], + 107 : [ ( 'difficulty', Byte ) ], + 108 : [ ( 'difficulty', Byte ) ], + 109 : [ ( 'difficulty', Byte ) ], + 110 : [ ( 'difficulty', Byte ) ], + 201 : [ ( 'difficulty', Byte ) ], + 210 : [ ( 'difficulty', Byte ) ], + 304 : [ ( 'difficulty', Byte ) ], + 315 : [ ( 'difficulty', Byte ) ], + 321 : [ ( 'difficulty', Byte ) ], + 327 : [ ( 'difficulty', Byte ) ], + 331 : [ ( 'difficulty', Byte ) ], + 335 : [ ( 'difficulty', Byte ) ], + 338 : [ ( 'difficulty', Byte ) ], + 340 : [ ( 'difficulty', Byte ) ], + 351 : [ ( 'difficulty', Byte ) ], + 393 : [ ( 'difficulty', Byte ) ], + 401 : [ ( 'difficulty', Byte ) ], + 402 : [ ( 'difficulty', Byte ) ], + 403 : [ ( 'difficulty', Byte ) ], + 404 : [ ( 'difficulty', Byte ) ], + 477 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 480 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 490 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 498 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 573 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 575 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 578 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 709 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 734 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 735 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 736 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 751 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 755 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 756 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 757 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ], + 1073741839 : [ ( 'difficulty', Byte ), ( 'difficultyLocked', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_end_combat_event.py b/aiocraft/mc/proto/play/clientbound/packet_end_combat_event.py new file mode 100644 index 0000000..d4ab810 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_end_combat_event.py @@ -0,0 +1,24 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEndCombatEvent(Packet): + __slots__ = ( 'id', 'duration', 'entityId' ) + + duration : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 51, + 756 : 51, + 757 : 51 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'duration', VarInt ), ( 'entityId', Int ) ], + 756 : [ ( 'duration', VarInt ), ( 'entityId', Int ) ], + 757 : [ ( 'duration', VarInt ), ( 'entityId', Int ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_enter_combat_event.py b/aiocraft/mc/proto/play/clientbound/packet_enter_combat_event.py new file mode 100644 index 0000000..26e435b --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_enter_combat_event.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEnterCombatEvent(Packet): + __slots__ = ( 'id' ) + + + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 52, + 756 : 52, + 757 : 52 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ], + 756 : [ ], + 757 : [ ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity.py b/aiocraft/mc/proto/play/clientbound/packet_entity.py new file mode 100644 index 0000000..2b38446 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity.py @@ -0,0 +1,89 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntity(Packet): + __slots__ = ( 'id', 'entityId' ) + + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 20, + 47 : 20, + 76 : 41, + 107 : 40, + 108 : 40, + 109 : 40, + 110 : 40, + 201 : 40, + 210 : 40, + 304 : 40, + 315 : 40, + 321 : 41, + 327 : 41, + 331 : 41, + 335 : 37, + 338 : 37, + 340 : 37, + 351 : 38, + 393 : 39, + 401 : 39, + 402 : 39, + 403 : 39, + 404 : 39, + 477 : 43, + 480 : 43, + 490 : 43, + 498 : 43, + 573 : 44, + 575 : 44, + 578 : 44, + 709 : 44, + 734 : 43, + 735 : 43, + 736 : 43, + 751 : 42, + 1073741839 : 43 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ) ], + 47 : [ ( 'entityId', VarInt ) ], + 76 : [ ( 'entityId', VarInt ) ], + 107 : [ ( 'entityId', VarInt ) ], + 108 : [ ( 'entityId', VarInt ) ], + 109 : [ ( 'entityId', VarInt ) ], + 110 : [ ( 'entityId', VarInt ) ], + 201 : [ ( 'entityId', VarInt ) ], + 210 : [ ( 'entityId', VarInt ) ], + 304 : [ ( 'entityId', VarInt ) ], + 315 : [ ( 'entityId', VarInt ) ], + 321 : [ ( 'entityId', VarInt ) ], + 327 : [ ( 'entityId', VarInt ) ], + 331 : [ ( 'entityId', VarInt ) ], + 335 : [ ( 'entityId', VarInt ) ], + 338 : [ ( 'entityId', VarInt ) ], + 340 : [ ( 'entityId', VarInt ) ], + 351 : [ ( 'entityId', VarInt ) ], + 393 : [ ( 'entityId', VarInt ) ], + 401 : [ ( 'entityId', VarInt ) ], + 402 : [ ( 'entityId', VarInt ) ], + 403 : [ ( 'entityId', VarInt ) ], + 404 : [ ( 'entityId', VarInt ) ], + 477 : [ ( 'entityId', VarInt ) ], + 480 : [ ( 'entityId', VarInt ) ], + 490 : [ ( 'entityId', VarInt ) ], + 498 : [ ( 'entityId', VarInt ) ], + 573 : [ ( 'entityId', VarInt ) ], + 575 : [ ( 'entityId', VarInt ) ], + 578 : [ ( 'entityId', VarInt ) ], + 709 : [ ( 'entityId', VarInt ) ], + 734 : [ ( 'entityId', VarInt ) ], + 735 : [ ( 'entityId', VarInt ) ], + 736 : [ ( 'entityId', VarInt ) ], + 751 : [ ( 'entityId', VarInt ) ], + 1073741839 : [ ( 'entityId', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_destroy.py b/aiocraft/mc/proto/play/clientbound/packet_entity_destroy.py new file mode 100644 index 0000000..f3ccf6f --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_destroy.py @@ -0,0 +1,93 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityDestroy(Packet): + __slots__ = ( 'id', 'entityIds' ) + + entityIds : list + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 19, + 47 : 19, + 76 : 48, + 107 : 48, + 108 : 48, + 109 : 48, + 110 : 48, + 201 : 48, + 210 : 48, + 304 : 48, + 315 : 48, + 321 : 50, + 327 : 50, + 331 : 50, + 335 : 49, + 338 : 50, + 340 : 50, + 351 : 51, + 393 : 53, + 401 : 53, + 402 : 53, + 403 : 53, + 404 : 53, + 477 : 55, + 480 : 55, + 490 : 55, + 498 : 55, + 573 : 56, + 575 : 56, + 578 : 56, + 709 : 56, + 734 : 55, + 735 : 55, + 736 : 55, + 751 : 54, + 756 : 58, + 757 : 58, + 1073741839 : 55 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityIds', ArrayType(Int, Byte, ) ) ], + 47 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 76 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 107 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 108 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 109 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 110 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 201 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 210 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 304 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 315 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 321 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 327 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 331 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 335 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 338 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 340 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 351 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 393 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 401 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 402 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 403 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 404 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 477 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 480 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 490 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 498 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 573 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 575 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 578 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 709 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 734 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 735 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 736 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 751 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 756 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 757 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ], + 1073741839 : [ ( 'entityIds', ArrayType(VarInt, VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_effect.py b/aiocraft/mc/proto/play/clientbound/packet_entity_effect.py new file mode 100644 index 0000000..a702b1d --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_effect.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityEffect(Packet): + __slots__ = ( 'id', 'effectId', 'duration', 'amplifier', 'hideParticles', 'entityId' ) + + effectId : int + duration : int + amplifier : int + hideParticles : Union[int,bool] + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 29, + 47 : 29, + 76 : 74, + 107 : 76, + 108 : 76, + 109 : 76, + 110 : 75, + 201 : 75, + 210 : 75, + 304 : 75, + 315 : 75, + 321 : 77, + 327 : 77, + 331 : 77, + 335 : 78, + 338 : 79, + 340 : 79, + 351 : 81, + 393 : 83, + 401 : 83, + 402 : 83, + 403 : 83, + 404 : 83, + 477 : 89, + 480 : 89, + 490 : 89, + 498 : 89, + 573 : 90, + 575 : 90, + 578 : 90, + 709 : 90, + 734 : 89, + 735 : 89, + 736 : 89, + 751 : 89, + 755 : 100, + 756 : 100, + 757 : 101, + 1073741839 : 90 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', Short ) ], + 47 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Boolean ) ], + 76 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Boolean ) ], + 107 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 108 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 109 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 110 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 201 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 210 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 304 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 315 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 321 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 327 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 331 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 335 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 338 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 340 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 351 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 393 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 401 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 402 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 403 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 404 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 477 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 480 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 490 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 498 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 573 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 575 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 578 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 709 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 734 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 735 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 736 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 751 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 755 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 756 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 757 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ), ( 'amplifier', Byte ), ( 'duration', VarInt ), ( 'hideParticles', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_equipment.py b/aiocraft/mc/proto/play/clientbound/packet_entity_equipment.py new file mode 100644 index 0000000..3fa497f --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_equipment.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityEquipment(Packet): + __slots__ = ( 'id', 'item', 'slot', 'entityId', 'equipments' ) + + item : dict + slot : int + entityId : int + equipments : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 4, + 47 : 4, + 76 : 60, + 107 : 60, + 108 : 60, + 109 : 60, + 110 : 60, + 201 : 60, + 210 : 60, + 304 : 60, + 315 : 60, + 321 : 62, + 327 : 62, + 331 : 62, + 335 : 62, + 338 : 63, + 340 : 63, + 351 : 64, + 393 : 66, + 401 : 66, + 402 : 66, + 403 : 66, + 404 : 66, + 477 : 70, + 480 : 70, + 490 : 70, + 498 : 70, + 573 : 71, + 575 : 71, + 578 : 71, + 709 : 72, + 734 : 71, + 735 : 71, + 736 : 71, + 751 : 71, + 755 : 80, + 756 : 80, + 757 : 80, + 1073741839 : 72 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'slot', Short ), ( 'item', Slot ) ], + 47 : [ ( 'entityId', VarInt ), ( 'slot', Short ), ( 'item', Slot ) ], + 76 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 107 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 108 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 109 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 110 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 201 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 210 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 304 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 315 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 321 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 327 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 331 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 335 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 338 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 340 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 351 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 393 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 401 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 402 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 403 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 404 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 477 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 480 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 490 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 498 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 573 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 575 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 578 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 709 : [ ( 'entityId', VarInt ), ( 'slot', VarInt ), ( 'item', Slot ) ], + 734 : [ ( 'entityId', VarInt ), ( 'equipments', TrailingData ) ], + 735 : [ ( 'entityId', VarInt ), ( 'equipments', TrailingData ) ], + 736 : [ ( 'entityId', VarInt ), ( 'equipments', TrailingData ) ], + 751 : [ ( 'entityId', VarInt ), ( 'equipments', TrailingData ) ], + 755 : [ ( 'entityId', VarInt ), ( 'equipments', TrailingData ) ], + 756 : [ ( 'entityId', VarInt ), ( 'equipments', TrailingData ) ], + 757 : [ ( 'entityId', VarInt ), ( 'equipments', TrailingData ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'equipments', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_head_rotation.py b/aiocraft/mc/proto/play/clientbound/packet_entity_head_rotation.py new file mode 100644 index 0000000..dd1fe75 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_head_rotation.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityHeadRotation(Packet): + __slots__ = ( 'id', 'headYaw', 'entityId' ) + + headYaw : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 25, + 47 : 25, + 76 : 52, + 107 : 52, + 108 : 52, + 109 : 52, + 110 : 52, + 201 : 52, + 210 : 52, + 304 : 52, + 315 : 52, + 321 : 54, + 327 : 54, + 331 : 54, + 335 : 53, + 338 : 54, + 340 : 54, + 351 : 55, + 393 : 57, + 401 : 57, + 402 : 57, + 403 : 57, + 404 : 57, + 477 : 59, + 480 : 59, + 490 : 59, + 498 : 59, + 573 : 60, + 575 : 60, + 578 : 60, + 709 : 60, + 734 : 59, + 735 : 59, + 736 : 59, + 751 : 58, + 755 : 62, + 756 : 62, + 757 : 62, + 1073741839 : 59 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'headYaw', Byte ) ], + 47 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 76 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 107 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 108 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 109 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 110 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 201 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 210 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 304 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 315 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 321 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 327 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 331 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 335 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 338 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 340 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 351 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 393 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 401 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 402 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 403 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 404 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 477 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 480 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 490 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 498 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 573 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 575 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 578 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 709 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 734 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 735 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 736 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 751 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 755 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 756 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 757 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'headYaw', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_look.py b/aiocraft/mc/proto/play/clientbound/packet_entity_look.py new file mode 100644 index 0000000..52200d8 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_look.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityLook(Packet): + __slots__ = ( 'id', 'yaw', 'pitch', 'onGround', 'entityId' ) + + yaw : int + pitch : int + onGround : bool + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 22, + 47 : 22, + 76 : 40, + 107 : 39, + 108 : 39, + 109 : 39, + 110 : 39, + 201 : 39, + 210 : 39, + 304 : 39, + 315 : 39, + 321 : 40, + 327 : 40, + 331 : 40, + 335 : 40, + 338 : 40, + 340 : 40, + 351 : 41, + 393 : 42, + 401 : 42, + 402 : 42, + 403 : 42, + 404 : 42, + 477 : 42, + 480 : 42, + 490 : 42, + 498 : 42, + 573 : 43, + 575 : 43, + 578 : 43, + 709 : 43, + 734 : 42, + 735 : 42, + 736 : 42, + 751 : 41, + 755 : 43, + 756 : 43, + 757 : 43, + 1073741839 : 42 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 47 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 76 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 107 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 108 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 109 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 110 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 201 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 210 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 304 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 315 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 321 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 327 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 331 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 335 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 338 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 340 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 351 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 393 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 401 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 402 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 403 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 404 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 477 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 480 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 490 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 498 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 573 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 575 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 578 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 709 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 734 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 735 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 736 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 751 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 755 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 756 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 757 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_metadata.py b/aiocraft/mc/proto/play/clientbound/packet_entity_metadata.py new file mode 100644 index 0000000..3a46268 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_metadata.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityMetadata(Packet): + __slots__ = ( 'id', 'metadata', 'entityId' ) + + metadata : bytes + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 28, + 47 : 28, + 76 : 57, + 107 : 57, + 108 : 57, + 109 : 57, + 110 : 57, + 201 : 57, + 210 : 57, + 304 : 57, + 315 : 57, + 321 : 59, + 327 : 59, + 331 : 59, + 335 : 59, + 338 : 60, + 340 : 60, + 351 : 61, + 393 : 63, + 401 : 63, + 402 : 63, + 403 : 63, + 404 : 63, + 477 : 67, + 480 : 67, + 490 : 67, + 498 : 67, + 573 : 68, + 575 : 68, + 578 : 68, + 709 : 69, + 734 : 68, + 735 : 68, + 736 : 68, + 751 : 68, + 755 : 77, + 756 : 77, + 757 : 77, + 1073741839 : 69 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'metadata', EntityMetadata ) ], + 47 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 76 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 107 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 108 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 109 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 110 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 201 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 210 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 304 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 315 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 321 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 327 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 331 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 335 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 338 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 340 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 351 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 393 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 401 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 402 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 403 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 404 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 477 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 480 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 490 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 498 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 573 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 575 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 578 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 709 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 734 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 735 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 736 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 751 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 755 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 756 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 757 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'metadata', EntityMetadata ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_move_look.py b/aiocraft/mc/proto/play/clientbound/packet_entity_move_look.py new file mode 100644 index 0000000..35a37c0 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_move_look.py @@ -0,0 +1,101 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityMoveLook(Packet): + __slots__ = ( 'id', 'dY', 'dX', 'onGround', 'dZ', 'yaw', 'entityId', 'pitch' ) + + dY : int + dX : int + onGround : bool + dZ : int + yaw : int + entityId : int + pitch : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 23, + 47 : 23, + 76 : 39, + 107 : 38, + 108 : 38, + 109 : 38, + 110 : 38, + 201 : 38, + 210 : 38, + 304 : 38, + 315 : 38, + 321 : 39, + 327 : 39, + 331 : 39, + 335 : 39, + 338 : 39, + 340 : 39, + 351 : 40, + 393 : 41, + 401 : 41, + 402 : 41, + 403 : 41, + 404 : 41, + 477 : 41, + 480 : 41, + 490 : 41, + 498 : 41, + 573 : 42, + 575 : 42, + 578 : 42, + 709 : 42, + 734 : 41, + 735 : 41, + 736 : 41, + 751 : 40, + 755 : 42, + 756 : 42, + 757 : 42, + 1073741839 : 41 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'dX', Byte ), ( 'dY', Byte ), ( 'dZ', Byte ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 47 : [ ( 'entityId', VarInt ), ( 'dX', Byte ), ( 'dY', Byte ), ( 'dZ', Byte ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 76 : [ ( 'entityId', VarInt ), ( 'dX', Byte ), ( 'dY', Byte ), ( 'dZ', Byte ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 107 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 108 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 109 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 110 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 201 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 210 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 304 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 315 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 321 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 327 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 331 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 335 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 338 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 340 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 351 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 393 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 401 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 402 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 403 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 404 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 477 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 480 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 490 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 498 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 573 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 575 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 578 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 709 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 734 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 735 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 736 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 751 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 755 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 756 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 757 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_sound_effect.py b/aiocraft/mc/proto/play/clientbound/packet_entity_sound_effect.py new file mode 100644 index 0000000..d1ed2a5 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_sound_effect.py @@ -0,0 +1,53 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntitySoundEffect(Packet): + __slots__ = ( 'id', 'volume', 'entityId', 'soundId', 'pitch', 'soundCategory' ) + + volume : float + entityId : int + soundId : int + pitch : float + soundCategory : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 80, + 480 : 80, + 490 : 80, + 498 : 80, + 573 : 81, + 575 : 81, + 578 : 81, + 709 : 81, + 734 : 80, + 735 : 80, + 736 : 80, + 751 : 80, + 755 : 91, + 756 : 91, + 757 : 92, + 1073741839 : 81 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 480 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 490 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 498 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 573 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 575 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 578 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 709 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 734 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 735 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 736 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 751 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 755 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 756 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 757 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ], + 1073741839 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'entityId', VarInt ), ( 'volume', Float ), ( 'pitch', Float ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_status.py b/aiocraft/mc/proto/play/clientbound/packet_entity_status.py new file mode 100644 index 0000000..ea5fe54 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_status.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityStatus(Packet): + __slots__ = ( 'id', 'entityStatus', 'entityId' ) + + entityStatus : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 26, + 47 : 26, + 76 : 26, + 107 : 27, + 108 : 27, + 109 : 27, + 110 : 27, + 201 : 27, + 210 : 27, + 304 : 27, + 315 : 27, + 321 : 28, + 327 : 28, + 331 : 28, + 335 : 27, + 338 : 27, + 340 : 27, + 351 : 28, + 393 : 28, + 401 : 28, + 402 : 28, + 403 : 28, + 404 : 28, + 477 : 27, + 480 : 27, + 490 : 27, + 498 : 27, + 573 : 28, + 575 : 28, + 578 : 28, + 709 : 28, + 734 : 27, + 735 : 27, + 736 : 27, + 751 : 26, + 755 : 27, + 756 : 27, + 757 : 27, + 1073741839 : 27 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 47 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 76 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 107 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 108 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 109 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 110 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 201 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 210 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 304 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 315 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 321 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 327 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 331 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 335 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 338 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 340 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 351 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 393 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 401 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 402 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 403 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 404 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 477 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 480 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 490 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 498 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 573 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 575 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 578 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 709 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 734 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 735 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 736 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 751 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 755 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 756 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 757 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ], + 1073741839 : [ ( 'entityId', Int ), ( 'entityStatus', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_teleport.py b/aiocraft/mc/proto/play/clientbound/packet_entity_teleport.py new file mode 100644 index 0000000..0fdf113 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_teleport.py @@ -0,0 +1,101 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityTeleport(Packet): + __slots__ = ( 'id', 'onGround', 'x', 'yaw', 'entityId', 'y', 'z', 'pitch' ) + + onGround : bool + x : Union[float,int] + yaw : int + entityId : int + y : Union[float,int] + z : Union[float,int] + pitch : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 24, + 47 : 24, + 76 : 72, + 107 : 74, + 108 : 74, + 109 : 74, + 110 : 73, + 201 : 73, + 210 : 73, + 304 : 73, + 315 : 73, + 321 : 75, + 327 : 75, + 331 : 75, + 335 : 75, + 338 : 76, + 340 : 76, + 351 : 78, + 393 : 80, + 401 : 80, + 402 : 80, + 403 : 80, + 404 : 80, + 477 : 86, + 480 : 86, + 490 : 86, + 498 : 86, + 573 : 87, + 575 : 87, + 578 : 87, + 709 : 87, + 734 : 86, + 735 : 86, + 736 : 86, + 751 : 86, + 755 : 97, + 756 : 97, + 757 : 98, + 1073741839 : 87 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 47 : [ ( 'entityId', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 76 : [ ( 'entityId', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 107 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 108 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 109 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 110 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 201 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 210 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 304 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 315 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 321 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 327 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 331 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 335 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 338 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 340 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 351 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 393 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 401 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 402 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 403 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 404 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 477 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 480 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 490 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 498 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 573 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 575 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 578 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 709 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 734 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 735 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 736 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 751 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 755 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 756 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 757 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'onGround', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_update_attributes.py b/aiocraft/mc/proto/play/clientbound/packet_entity_update_attributes.py new file mode 100644 index 0000000..9ee9c7a --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_update_attributes.py @@ -0,0 +1,90 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityUpdateAttributes(Packet): + __slots__ = ( 'id', 'properties', 'entityId' ) + + properties : list + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 107 : 75, + 108 : 75, + 109 : 75, + 110 : 74, + 201 : 74, + 210 : 74, + 304 : 74, + 315 : 74, + 321 : 76, + 327 : 76, + 331 : 76, + 335 : 77, + 338 : 78, + 340 : 78, + 351 : 80, + 393 : 82, + 401 : 82, + 402 : 82, + 403 : 82, + 404 : 82, + 477 : 88, + 480 : 88, + 490 : 88, + 498 : 88, + 573 : 89, + 575 : 89, + 578 : 89, + 709 : 89, + 734 : 88, + 735 : 88, + 736 : 88, + 751 : 88, + 755 : 99, + 756 : 99, + 757 : 100, + 1073741839 : 89 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 107 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 108 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 109 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 110 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 201 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 210 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 304 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 315 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 321 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 327 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 331 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 335 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 338 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 340 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 351 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 393 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 401 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 402 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 403 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 404 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 477 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 480 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 490 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 498 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 573 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 575 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 578 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 709 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 734 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 735 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 736 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 751 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 755 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), VarInt, ) ) ], + 756 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), VarInt, ) ) ], + 757 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), VarInt, ) ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'uuid', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_entity_velocity.py b/aiocraft/mc/proto/play/clientbound/packet_entity_velocity.py new file mode 100644 index 0000000..85abc0d --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_entity_velocity.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityVelocity(Packet): + __slots__ = ( 'id', 'velocityX', 'velocityZ', 'velocityY', 'entityId' ) + + velocityX : int + velocityZ : int + velocityY : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 18, + 47 : 18, + 76 : 59, + 107 : 59, + 108 : 59, + 109 : 59, + 110 : 59, + 201 : 59, + 210 : 59, + 304 : 59, + 315 : 59, + 321 : 61, + 327 : 61, + 331 : 61, + 335 : 61, + 338 : 62, + 340 : 62, + 351 : 63, + 393 : 65, + 401 : 65, + 402 : 65, + 403 : 65, + 404 : 65, + 477 : 69, + 480 : 69, + 490 : 69, + 498 : 69, + 573 : 70, + 575 : 70, + 578 : 70, + 709 : 71, + 734 : 70, + 735 : 70, + 736 : 70, + 751 : 70, + 755 : 79, + 756 : 79, + 757 : 79, + 1073741839 : 71 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 47 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 76 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 107 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 108 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 109 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 110 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 201 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 210 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 304 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 315 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 321 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 327 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 331 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 335 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 338 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 340 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 351 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 393 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 401 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 402 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 403 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 404 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 477 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 480 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 490 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 498 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 573 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 575 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 578 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 709 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 734 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 735 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 736 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 751 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 755 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 756 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 757 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_experience.py b/aiocraft/mc/proto/play/clientbound/packet_experience.py new file mode 100644 index 0000000..652838b --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_experience.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketExperience(Packet): + __slots__ = ( 'id', 'level', 'experienceBar', 'totalExperience' ) + + level : int + experienceBar : float + totalExperience : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 31, + 47 : 31, + 76 : 61, + 107 : 61, + 108 : 61, + 109 : 61, + 110 : 61, + 201 : 61, + 210 : 61, + 304 : 61, + 315 : 61, + 321 : 63, + 327 : 63, + 331 : 63, + 335 : 63, + 338 : 64, + 340 : 64, + 351 : 65, + 393 : 67, + 401 : 67, + 402 : 67, + 403 : 67, + 404 : 67, + 477 : 71, + 480 : 71, + 490 : 71, + 498 : 71, + 573 : 72, + 575 : 72, + 578 : 72, + 709 : 73, + 734 : 72, + 735 : 72, + 736 : 72, + 751 : 72, + 755 : 81, + 756 : 81, + 757 : 81, + 1073741839 : 73 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'experienceBar', Float ), ( 'level', Short ), ( 'totalExperience', Short ) ], + 47 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 76 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 107 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 108 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 109 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 110 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 201 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 210 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 304 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 315 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 321 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 327 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 331 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 335 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 338 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 340 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 351 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 393 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 401 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 402 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 403 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 404 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 477 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 480 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 490 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 498 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 573 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 575 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 578 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 709 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 734 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 735 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 736 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 751 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 755 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 756 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 757 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ], + 1073741839 : [ ( 'experienceBar', Float ), ( 'level', VarInt ), ( 'totalExperience', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_explosion.py b/aiocraft/mc/proto/play/clientbound/packet_explosion.py new file mode 100644 index 0000000..e6eca33 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_explosion.py @@ -0,0 +1,102 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketExplosion(Packet): + __slots__ = ( 'id', 'playerMotionZ', 'playerMotionY', 'radius', 'playerMotionX', 'x', 'y', 'z', 'affectedBlockOffsets' ) + + playerMotionZ : float + playerMotionY : float + radius : float + playerMotionX : float + x : float + y : float + z : float + affectedBlockOffsets : list + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 39, + 47 : 39, + 76 : 27, + 107 : 28, + 108 : 28, + 109 : 28, + 110 : 28, + 201 : 28, + 210 : 28, + 304 : 28, + 315 : 28, + 321 : 29, + 327 : 29, + 331 : 29, + 335 : 28, + 338 : 28, + 340 : 28, + 351 : 29, + 393 : 30, + 401 : 30, + 402 : 30, + 403 : 30, + 404 : 30, + 477 : 28, + 480 : 28, + 490 : 28, + 498 : 28, + 573 : 29, + 575 : 29, + 578 : 29, + 709 : 29, + 734 : 28, + 735 : 28, + 736 : 28, + 751 : 27, + 755 : 28, + 756 : 28, + 757 : 28, + 1073741839 : 28 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 47 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 76 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 107 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 108 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 109 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 110 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 201 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 210 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 304 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 315 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 321 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 327 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 331 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 335 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 338 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 340 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 351 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 393 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 401 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 402 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 403 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 404 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 477 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 480 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 490 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 498 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 573 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 575 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 578 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 709 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 734 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 735 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 736 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 751 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 755 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 756 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 757 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ], + 1073741839 : [ ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'radius', Float ), ( 'affectedBlockOffsets', ArrayType(StructType(( 'x', Byte ), ( 'y', Byte ), ( 'z', Byte ), ), Int, ) ), ( 'playerMotionX', Float ), ( 'playerMotionY', Float ), ( 'playerMotionZ', Float ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_face_player.py b/aiocraft/mc/proto/play/clientbound/packet_face_player.py new file mode 100644 index 0000000..9ba11c6 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_face_player.py @@ -0,0 +1,65 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketFacePlayer(Packet): + __slots__ = ( 'id', 'feet_eyes', 'x', 'entityId', 'y', 'z', 'isEntity', 'entity_feet_eyes' ) + + feet_eyes : int + x : float + entityId : bytes + y : float + z : float + isEntity : bool + entity_feet_eyes : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 49, + 401 : 49, + 402 : 49, + 403 : 49, + 404 : 49, + 477 : 52, + 480 : 52, + 490 : 52, + 498 : 52, + 573 : 53, + 575 : 53, + 578 : 53, + 709 : 53, + 734 : 52, + 735 : 52, + 736 : 52, + 751 : 51, + 755 : 55, + 756 : 55, + 757 : 55, + 1073741839 : 52 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 401 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 402 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 403 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 404 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 477 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 480 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 490 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 498 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 573 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 575 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 578 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 709 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 734 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 735 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 736 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 751 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 755 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 756 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 757 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ], + 1073741839 : [ ( 'feet_eyes', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'isEntity', Boolean ), ( 'entityId', SwitchType('isEntity', { 'true' : VarInt }, None, ) ), ( 'entity_feet_eyes', SwitchType('isEntity', { 'true' : String }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_game_state_change.py b/aiocraft/mc/proto/play/clientbound/packet_game_state_change.py new file mode 100644 index 0000000..b742b7f --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_game_state_change.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketGameStateChange(Packet): + __slots__ = ( 'id', 'reason', 'gameMode' ) + + reason : int + gameMode : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 43, + 47 : 43, + 76 : 30, + 107 : 30, + 108 : 30, + 109 : 30, + 110 : 30, + 201 : 30, + 210 : 30, + 304 : 30, + 315 : 30, + 321 : 31, + 327 : 31, + 331 : 31, + 335 : 30, + 338 : 30, + 340 : 30, + 351 : 31, + 393 : 32, + 401 : 32, + 402 : 32, + 403 : 32, + 404 : 32, + 477 : 30, + 480 : 30, + 490 : 30, + 498 : 30, + 573 : 31, + 575 : 31, + 578 : 31, + 709 : 31, + 734 : 30, + 735 : 30, + 736 : 30, + 751 : 29, + 755 : 30, + 756 : 30, + 757 : 30, + 1073741839 : 30 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 47 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 76 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 107 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 108 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 109 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 110 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 201 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 210 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 304 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 315 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 321 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 327 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 331 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 335 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 338 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 340 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 351 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 393 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 401 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 402 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 403 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 404 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 477 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 480 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 490 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 498 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 573 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 575 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 578 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 709 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 734 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 735 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 736 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 751 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 755 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 756 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 757 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ], + 1073741839 : [ ( 'reason', Byte ), ( 'gameMode', Float ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_held_item_slot.py b/aiocraft/mc/proto/play/clientbound/packet_held_item_slot.py new file mode 100644 index 0000000..db1a42f --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_held_item_slot.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketHeldItemSlot(Packet): + __slots__ = ( 'id', 'slot' ) + + slot : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 9, + 47 : 9, + 76 : 55, + 107 : 55, + 108 : 55, + 109 : 55, + 110 : 55, + 201 : 55, + 210 : 55, + 304 : 55, + 315 : 55, + 321 : 57, + 327 : 57, + 331 : 57, + 335 : 57, + 338 : 58, + 340 : 58, + 351 : 59, + 393 : 61, + 401 : 61, + 402 : 61, + 403 : 61, + 404 : 61, + 477 : 63, + 480 : 63, + 490 : 63, + 498 : 63, + 573 : 64, + 575 : 64, + 578 : 64, + 709 : 64, + 734 : 63, + 735 : 63, + 736 : 63, + 751 : 63, + 755 : 72, + 756 : 72, + 757 : 72, + 1073741839 : 64 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'slot', Byte ) ], + 47 : [ ( 'slot', Byte ) ], + 76 : [ ( 'slot', Byte ) ], + 107 : [ ( 'slot', Byte ) ], + 108 : [ ( 'slot', Byte ) ], + 109 : [ ( 'slot', Byte ) ], + 110 : [ ( 'slot', Byte ) ], + 201 : [ ( 'slot', Byte ) ], + 210 : [ ( 'slot', Byte ) ], + 304 : [ ( 'slot', Byte ) ], + 315 : [ ( 'slot', Byte ) ], + 321 : [ ( 'slot', Byte ) ], + 327 : [ ( 'slot', Byte ) ], + 331 : [ ( 'slot', Byte ) ], + 335 : [ ( 'slot', Byte ) ], + 338 : [ ( 'slot', Byte ) ], + 340 : [ ( 'slot', Byte ) ], + 351 : [ ( 'slot', Byte ) ], + 393 : [ ( 'slot', Byte ) ], + 401 : [ ( 'slot', Byte ) ], + 402 : [ ( 'slot', Byte ) ], + 403 : [ ( 'slot', Byte ) ], + 404 : [ ( 'slot', Byte ) ], + 477 : [ ( 'slot', Byte ) ], + 480 : [ ( 'slot', Byte ) ], + 490 : [ ( 'slot', Byte ) ], + 498 : [ ( 'slot', Byte ) ], + 573 : [ ( 'slot', Byte ) ], + 575 : [ ( 'slot', Byte ) ], + 578 : [ ( 'slot', Byte ) ], + 709 : [ ( 'slot', Byte ) ], + 734 : [ ( 'slot', Byte ) ], + 735 : [ ( 'slot', Byte ) ], + 736 : [ ( 'slot', Byte ) ], + 751 : [ ( 'slot', Byte ) ], + 755 : [ ( 'slot', Byte ) ], + 756 : [ ( 'slot', Byte ) ], + 757 : [ ( 'slot', Byte ) ], + 1073741839 : [ ( 'slot', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_initialize_world_border.py b/aiocraft/mc/proto/play/clientbound/packet_initialize_world_border.py new file mode 100644 index 0000000..2afb5d3 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_initialize_world_border.py @@ -0,0 +1,30 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketInitializeWorldBorder(Packet): + __slots__ = ( 'id', 'newDiameter', 'speed', 'x', 'portalTeleportBoundary', 'warningBlocks', 'warningTime', 'oldDiameter', 'z' ) + + newDiameter : float + speed : int + x : float + portalTeleportBoundary : int + warningBlocks : int + warningTime : int + oldDiameter : float + z : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 32, + 756 : 32, + 757 : 32 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'x', Double ), ( 'z', Double ), ( 'oldDiameter', Double ), ( 'newDiameter', Double ), ( 'speed', VarInt ), ( 'portalTeleportBoundary', VarInt ), ( 'warningBlocks', VarInt ), ( 'warningTime', VarInt ) ], + 756 : [ ( 'x', Double ), ( 'z', Double ), ( 'oldDiameter', Double ), ( 'newDiameter', Double ), ( 'speed', VarInt ), ( 'portalTeleportBoundary', VarInt ), ( 'warningBlocks', VarInt ), ( 'warningTime', VarInt ) ], + 757 : [ ( 'x', Double ), ( 'z', Double ), ( 'oldDiameter', Double ), ( 'newDiameter', Double ), ( 'speed', VarInt ), ( 'portalTeleportBoundary', VarInt ), ( 'warningBlocks', VarInt ), ( 'warningTime', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_keep_alive.py b/aiocraft/mc/proto/play/clientbound/packet_keep_alive.py new file mode 100644 index 0000000..e0ddc70 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_keep_alive.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketKeepAlive(Packet): + __slots__ = ( 'id', 'keepAliveId' ) + + keepAliveId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 0, + 47 : 0, + 76 : 31, + 107 : 31, + 108 : 31, + 109 : 31, + 110 : 31, + 201 : 31, + 210 : 31, + 304 : 31, + 315 : 31, + 321 : 32, + 327 : 32, + 331 : 32, + 335 : 31, + 338 : 31, + 340 : 31, + 351 : 32, + 393 : 33, + 401 : 33, + 402 : 33, + 403 : 33, + 404 : 33, + 477 : 32, + 480 : 32, + 490 : 32, + 498 : 32, + 573 : 33, + 575 : 33, + 578 : 33, + 709 : 33, + 734 : 32, + 735 : 32, + 736 : 32, + 751 : 31, + 755 : 33, + 756 : 33, + 757 : 33, + 1073741839 : 32 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'keepAliveId', Int ) ], + 47 : [ ( 'keepAliveId', VarInt ) ], + 76 : [ ( 'keepAliveId', VarInt ) ], + 107 : [ ( 'keepAliveId', VarInt ) ], + 108 : [ ( 'keepAliveId', VarInt ) ], + 109 : [ ( 'keepAliveId', VarInt ) ], + 110 : [ ( 'keepAliveId', VarInt ) ], + 201 : [ ( 'keepAliveId', VarInt ) ], + 210 : [ ( 'keepAliveId', VarInt ) ], + 304 : [ ( 'keepAliveId', VarInt ) ], + 315 : [ ( 'keepAliveId', VarInt ) ], + 321 : [ ( 'keepAliveId', VarInt ) ], + 327 : [ ( 'keepAliveId', VarInt ) ], + 331 : [ ( 'keepAliveId', VarInt ) ], + 335 : [ ( 'keepAliveId', VarInt ) ], + 338 : [ ( 'keepAliveId', VarInt ) ], + 340 : [ ( 'keepAliveId', Long ) ], + 351 : [ ( 'keepAliveId', Long ) ], + 393 : [ ( 'keepAliveId', Long ) ], + 401 : [ ( 'keepAliveId', Long ) ], + 402 : [ ( 'keepAliveId', Long ) ], + 403 : [ ( 'keepAliveId', Long ) ], + 404 : [ ( 'keepAliveId', Long ) ], + 477 : [ ( 'keepAliveId', Long ) ], + 480 : [ ( 'keepAliveId', Long ) ], + 490 : [ ( 'keepAliveId', Long ) ], + 498 : [ ( 'keepAliveId', Long ) ], + 573 : [ ( 'keepAliveId', Long ) ], + 575 : [ ( 'keepAliveId', Long ) ], + 578 : [ ( 'keepAliveId', Long ) ], + 709 : [ ( 'keepAliveId', Long ) ], + 734 : [ ( 'keepAliveId', Long ) ], + 735 : [ ( 'keepAliveId', Long ) ], + 736 : [ ( 'keepAliveId', Long ) ], + 751 : [ ( 'keepAliveId', Long ) ], + 755 : [ ( 'keepAliveId', Long ) ], + 756 : [ ( 'keepAliveId', Long ) ], + 757 : [ ( 'keepAliveId', Long ) ], + 1073741839 : [ ( 'keepAliveId', Long ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_kick_disconnect.py b/aiocraft/mc/proto/play/clientbound/packet_kick_disconnect.py new file mode 100644 index 0000000..8a25bd0 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_kick_disconnect.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketKickDisconnect(Packet): + __slots__ = ( 'id', 'reason' ) + + reason : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 64, + 47 : 64, + 76 : 25, + 107 : 26, + 108 : 26, + 109 : 26, + 110 : 26, + 201 : 26, + 210 : 26, + 304 : 26, + 315 : 26, + 321 : 27, + 327 : 27, + 331 : 27, + 335 : 26, + 338 : 26, + 340 : 26, + 351 : 27, + 393 : 27, + 401 : 27, + 402 : 27, + 403 : 27, + 404 : 27, + 477 : 26, + 480 : 26, + 490 : 26, + 498 : 26, + 573 : 27, + 575 : 27, + 578 : 27, + 709 : 27, + 734 : 26, + 735 : 26, + 736 : 26, + 751 : 25, + 755 : 26, + 756 : 26, + 757 : 26, + 1073741839 : 26 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'reason', String ) ], + 47 : [ ( 'reason', String ) ], + 76 : [ ( 'reason', String ) ], + 107 : [ ( 'reason', String ) ], + 108 : [ ( 'reason', String ) ], + 109 : [ ( 'reason', String ) ], + 110 : [ ( 'reason', String ) ], + 201 : [ ( 'reason', String ) ], + 210 : [ ( 'reason', String ) ], + 304 : [ ( 'reason', String ) ], + 315 : [ ( 'reason', String ) ], + 321 : [ ( 'reason', String ) ], + 327 : [ ( 'reason', String ) ], + 331 : [ ( 'reason', String ) ], + 335 : [ ( 'reason', String ) ], + 338 : [ ( 'reason', String ) ], + 340 : [ ( 'reason', String ) ], + 351 : [ ( 'reason', String ) ], + 393 : [ ( 'reason', String ) ], + 401 : [ ( 'reason', String ) ], + 402 : [ ( 'reason', String ) ], + 403 : [ ( 'reason', String ) ], + 404 : [ ( 'reason', String ) ], + 477 : [ ( 'reason', String ) ], + 480 : [ ( 'reason', String ) ], + 490 : [ ( 'reason', String ) ], + 498 : [ ( 'reason', String ) ], + 573 : [ ( 'reason', String ) ], + 575 : [ ( 'reason', String ) ], + 578 : [ ( 'reason', String ) ], + 709 : [ ( 'reason', String ) ], + 734 : [ ( 'reason', String ) ], + 735 : [ ( 'reason', String ) ], + 736 : [ ( 'reason', String ) ], + 751 : [ ( 'reason', String ) ], + 755 : [ ( 'reason', String ) ], + 756 : [ ( 'reason', String ) ], + 757 : [ ( 'reason', String ) ], + 1073741839 : [ ( 'reason', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_login.py b/aiocraft/mc/proto/play/clientbound/packet_login.py new file mode 100644 index 0000000..fee364d --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_login.py @@ -0,0 +1,112 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketLogin(Packet): + __slots__ = ( 'id', 'maxPlayers', 'viewDistance', 'previousGameMode', 'reducedDebugInfo', 'simulationDistance', 'worldName', 'hashedSeed', 'gameMode', 'isDebug', 'isHardcore', 'dimension', 'enableRespawnScreen', 'entityId', 'levelType', 'dimensionCodec', 'isFlat', 'worldNames', 'difficulty' ) + + maxPlayers : int + viewDistance : int + previousGameMode : int + reducedDebugInfo : bool + simulationDistance : int + worldName : str + hashedSeed : int + gameMode : int + isDebug : bool + isHardcore : bool + dimension : Union[bytes,str,int] + enableRespawnScreen : bool + entityId : int + levelType : str + dimensionCodec : bytes + isFlat : bool + worldNames : list + difficulty : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 1, + 47 : 1, + 76 : 36, + 107 : 35, + 108 : 35, + 109 : 35, + 110 : 35, + 201 : 35, + 210 : 35, + 304 : 35, + 315 : 35, + 321 : 36, + 327 : 36, + 331 : 36, + 335 : 35, + 338 : 35, + 340 : 35, + 351 : 36, + 393 : 37, + 401 : 37, + 402 : 37, + 403 : 37, + 404 : 37, + 477 : 37, + 480 : 37, + 490 : 37, + 498 : 37, + 573 : 38, + 575 : 38, + 578 : 38, + 709 : 38, + 734 : 37, + 735 : 37, + 736 : 37, + 751 : 36, + 755 : 38, + 756 : 38, + 757 : 38, + 1073741839 : 37 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Byte ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ) ], + 47 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Byte ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 76 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Byte ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 107 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Byte ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 108 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 109 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 110 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 201 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 210 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 304 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 315 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 321 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 327 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 331 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 335 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 338 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 340 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 351 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 393 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 401 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 402 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 403 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 404 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'reducedDebugInfo', Boolean ) ], + 477 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ) ], + 480 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ) ], + 490 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ) ], + 498 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ) ], + 573 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'hashedSeed', Long ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ) ], + 575 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'hashedSeed', Long ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ) ], + 578 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'hashedSeed', Long ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ) ], + 709 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'dimension', Int ), ( 'hashedSeed', Long ), ( 'maxPlayers', Byte ), ( 'levelType', String ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ) ], + 734 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'previousGameMode', Byte ), ( 'worldNames', ArrayType(String, VarInt, ) ), ( 'dimensionCodec', NBTTag ), ( 'dimension', String ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'maxPlayers', Byte ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ) ], + 735 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'previousGameMode', Byte ), ( 'worldNames', ArrayType(String, VarInt, ) ), ( 'dimensionCodec', NBTTag ), ( 'dimension', String ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'maxPlayers', Byte ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ) ], + 736 : [ ( 'entityId', Int ), ( 'gameMode', Byte ), ( 'previousGameMode', Byte ), ( 'worldNames', ArrayType(String, VarInt, ) ), ( 'dimensionCodec', NBTTag ), ( 'dimension', String ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'maxPlayers', Byte ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ) ], + 751 : [ ( 'entityId', Int ), ( 'isHardcore', Boolean ), ( 'gameMode', Byte ), ( 'previousGameMode', Byte ), ( 'worldNames', ArrayType(String, VarInt, ) ), ( 'dimensionCodec', NBTTag ), ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'maxPlayers', VarInt ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ) ], + 755 : [ ( 'entityId', Int ), ( 'isHardcore', Boolean ), ( 'gameMode', Byte ), ( 'previousGameMode', Byte ), ( 'worldNames', ArrayType(String, VarInt, ) ), ( 'dimensionCodec', NBTTag ), ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'maxPlayers', VarInt ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ) ], + 756 : [ ( 'entityId', Int ), ( 'isHardcore', Boolean ), ( 'gameMode', Byte ), ( 'previousGameMode', Byte ), ( 'worldNames', ArrayType(String, VarInt, ) ), ( 'dimensionCodec', NBTTag ), ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'maxPlayers', VarInt ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ) ], + 757 : [ ( 'entityId', Int ), ( 'isHardcore', Boolean ), ( 'gameMode', Byte ), ( 'previousGameMode', Byte ), ( 'worldNames', ArrayType(String, VarInt, ) ), ( 'dimensionCodec', NBTTag ), ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'maxPlayers', VarInt ), ( 'viewDistance', VarInt ), ( 'simulationDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ) ], + 1073741839 : [ ( 'entityId', Int ), ( 'isHardcore', Boolean ), ( 'gameMode', Byte ), ( 'previousGameMode', Byte ), ( 'worldNames', ArrayType(String, VarInt, ) ), ( 'dimensionCodec', NBTTag ), ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'maxPlayers', VarInt ), ( 'viewDistance', VarInt ), ( 'reducedDebugInfo', Boolean ), ( 'enableRespawnScreen', Boolean ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_map.py b/aiocraft/mc/proto/play/clientbound/packet_map.py new file mode 100644 index 0000000..6544e2b --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_map.py @@ -0,0 +1,104 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketMap(Packet): + __slots__ = ( 'id', 'itemDamage', 'locked', 'scale', 'data', 'icons', 'x', 'trackingPosition', 'rows', 'y', 'columns' ) + + itemDamage : int + locked : bool + scale : int + data : bytes + icons : Union[tuple,list] + x : bytes + trackingPosition : bool + rows : bytes + y : bytes + columns : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 52, + 47 : 52, + 76 : 37, + 107 : 36, + 108 : 36, + 109 : 36, + 110 : 36, + 201 : 36, + 210 : 36, + 304 : 36, + 315 : 36, + 321 : 37, + 327 : 37, + 331 : 37, + 335 : 36, + 338 : 36, + 340 : 36, + 351 : 37, + 393 : 38, + 401 : 38, + 402 : 38, + 403 : 38, + 404 : 38, + 477 : 38, + 480 : 38, + 490 : 38, + 498 : 38, + 573 : 39, + 575 : 39, + 578 : 39, + 709 : 39, + 734 : 38, + 735 : 38, + 736 : 38, + 751 : 37, + 755 : 39, + 756 : 39, + 757 : 39, + 1073741839 : 38 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'itemDamage', VarInt ), ( 'data', ByteArray ) ], + 47 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 76 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 107 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 108 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 109 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 110 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 201 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 210 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 304 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 315 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 321 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 327 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 331 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 335 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 338 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 340 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 351 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'directionAndType', Byte ), ( 'x', Byte ), ( 'z', Byte ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 393 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 401 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 402 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 403 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 404 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 477 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 480 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 490 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 498 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 573 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 575 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 578 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 709 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 734 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 735 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 736 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 751 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 755 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'locked', Boolean ), ( 'icons', OptionalType(ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ), ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 756 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'locked', Boolean ), ( 'icons', OptionalType(ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ), ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 757 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'locked', Boolean ), ( 'icons', OptionalType(ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ), ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ], + 1073741839 : [ ( 'itemDamage', VarInt ), ( 'scale', Byte ), ( 'trackingPosition', Boolean ), ( 'locked', Boolean ), ( 'icons', ArrayType(StructType(( 'type', VarInt ), ( 'x', Byte ), ( 'z', Byte ), ( 'direction', Byte ), ( 'displayName', OptionalType(String, ) ), ), VarInt, ) ), ( 'columns', Byte ), ( 'rows', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'x', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'y', SwitchType('columns', { 0 : Void }, Byte, ) ), ( 'data', SwitchType('columns', { 0 : Void }, ByteArray, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_map_chunk.py b/aiocraft/mc/proto/play/clientbound/packet_map_chunk.py new file mode 100644 index 0000000..7367344 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_map_chunk.py @@ -0,0 +1,113 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketMapChunk(Packet): + __slots__ = ( 'id', 'blockLight', 'skyLight', 'compressedChunkData', 'emptySkyLightMask', 'biomes', 'primaryBitMask', 'x', 'ignoreOldData', 'groundUp', 'trustEdges', 'z', 'heightmaps', 'blockLightMask', 'chunkData', 'addBitMap', 'emptyBlockLightMask', 'blockEntities', 'skyLightMask', 'bitMap' ) + + blockLight : list + skyLight : list + compressedChunkData : bytes + emptySkyLightMask : list + biomes : Union[bytes,list] + primaryBitMask : list + x : int + ignoreOldData : bool + groundUp : bool + trustEdges : bool + z : int + heightmaps : bytes + blockLightMask : list + chunkData : bytes + addBitMap : int + emptyBlockLightMask : list + blockEntities : list + skyLightMask : list + bitMap : Union[int,list] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 33, + 47 : 33, + 76 : 32, + 107 : 32, + 108 : 32, + 109 : 32, + 110 : 32, + 201 : 32, + 210 : 32, + 304 : 32, + 315 : 32, + 321 : 33, + 327 : 33, + 331 : 33, + 335 : 32, + 338 : 32, + 340 : 32, + 351 : 33, + 393 : 34, + 401 : 34, + 402 : 34, + 403 : 34, + 404 : 34, + 477 : 33, + 480 : 33, + 490 : 33, + 498 : 33, + 573 : 34, + 575 : 34, + 578 : 34, + 709 : 34, + 734 : 33, + 735 : 33, + 736 : 33, + 751 : 32, + 755 : 34, + 756 : 34, + 757 : 34, + 1073741839 : 33 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', UnsignedShort ), ( 'addBitMap', UnsignedShort ), ( 'compressedChunkData', ByteArray ) ], + 47 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', UnsignedShort ), ( 'chunkData', ByteArray ) ], + 76 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ) ], + 107 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ) ], + 108 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ) ], + 109 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ) ], + 110 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 201 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 210 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 304 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 315 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 321 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 327 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 331 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 335 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 338 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 340 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 351 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 393 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 401 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 402 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 403 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 404 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 477 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 480 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 490 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 498 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 573 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'biomes', SwitchType('groundUp', { 'false' : Void, 'true' : ArrayType(Int, 1024, ) }, None, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 575 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'biomes', SwitchType('groundUp', { 'false' : Void, 'true' : ArrayType(Int, 1024, ) }, None, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 578 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'biomes', SwitchType('groundUp', { 'false' : Void, 'true' : ArrayType(Int, 1024, ) }, None, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 709 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'biomes', SwitchType('groundUp', { 'false' : Void, 'true' : ArrayType(Int, 1024, ) }, None, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 734 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'ignoreOldData', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'biomes', SwitchType('groundUp', { 'false' : Void, 'true' : ArrayType(Int, 1024, ) }, None, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 735 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'ignoreOldData', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'biomes', SwitchType('groundUp', { 'false' : Void, 'true' : ArrayType(Int, 1024, ) }, None, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 736 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'ignoreOldData', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'biomes', SwitchType('groundUp', { 'false' : Void, 'true' : ArrayType(Int, 1024, ) }, None, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 751 : [ ( 'x', Int ), ( 'z', Int ), ( 'groundUp', Boolean ), ( 'bitMap', VarInt ), ( 'heightmaps', NBTTag ), ( 'biomes', SwitchType('groundUp', { 'false' : Void, 'true' : ArrayType(VarInt, VarInt, ) }, None, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 755 : [ ( 'x', Int ), ( 'z', Int ), ( 'bitMap', ArrayType(Long, VarInt, ) ), ( 'heightmaps', NBTTag ), ( 'biomes', ArrayType(VarInt, VarInt, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 756 : [ ( 'x', Int ), ( 'z', Int ), ( 'bitMap', ArrayType(Long, VarInt, ) ), ( 'heightmaps', NBTTag ), ( 'biomes', ArrayType(VarInt, VarInt, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ], + 757 : [ ( 'x', Int ), ( 'z', Int ), ( 'heightmaps', NBTTag ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(TrailingData, VarInt, ) ), ( 'trustEdges', Boolean ), ( 'skyLightMask', ArrayType(Long, VarInt, ) ), ( 'blockLightMask', ArrayType(Long, VarInt, ) ), ( 'emptySkyLightMask', ArrayType(Long, VarInt, ) ), ( 'emptyBlockLightMask', ArrayType(Long, VarInt, ) ), ( 'skyLight', ArrayType(ArrayType(Byte, VarInt, ), VarInt, ) ), ( 'blockLight', ArrayType(ArrayType(Byte, VarInt, ), VarInt, ) ) ], + 1073741839 : [ ( 'x', Int ), ( 'z', Int ), ( 'primaryBitMask', ArrayType(Long, VarInt, ) ), ( 'heightmaps', NBTTag ), ( 'biomes', ArrayType(VarInt, VarInt, ) ), ( 'chunkData', ByteArray ), ( 'blockEntities', ArrayType(NBTTag, VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_map_chunk_bulk.py b/aiocraft/mc/proto/play/clientbound/packet_map_chunk_bulk.py new file mode 100644 index 0000000..8de72bb --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_map_chunk_bulk.py @@ -0,0 +1,26 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketMapChunkBulk(Packet): + __slots__ = ( 'id', 'chunkColumnCount', 'data', 'meta', 'compressedChunkData', 'skyLightSent', 'dataLength' ) + + chunkColumnCount : bytes + data : bytes + meta : list + compressedChunkData : bytes + skyLightSent : bool + dataLength : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 38, + 47 : 38 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'chunkColumnCount', TrailingData ), ( 'dataLength', TrailingData ), ( 'skyLightSent', Boolean ), ( 'compressedChunkData', ByteArray ), ( 'meta', ArrayType(StructType(( 'x', Int ), ( 'z', Int ), ( 'bitMap', UnsignedShort ), ( 'addBitMap', UnsignedShort ), ), 'chunkColumnCount', ) ) ], + 47 : [ ( 'skyLightSent', Boolean ), ( 'meta', ArrayType(StructType(( 'x', Int ), ( 'z', Int ), ( 'bitMap', UnsignedShort ), ), VarInt, ) ), ( 'data', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_multi_block_change.py b/aiocraft/mc/proto/play/clientbound/packet_multi_block_change.py new file mode 100644 index 0000000..ccf01a9 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_multi_block_change.py @@ -0,0 +1,101 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketMultiBlockChange(Packet): + __slots__ = ( 'id', 'chunkX', 'notTrustEdges', 'recordCount', 'chunkCoordinates', 'chunkZ', 'dataLength', 'records' ) + + chunkX : int + notTrustEdges : bool + recordCount : bytes + chunkCoordinates : bytes + chunkZ : int + dataLength : int + records : list + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 34, + 47 : 34, + 76 : 16, + 107 : 16, + 108 : 16, + 109 : 16, + 110 : 16, + 201 : 16, + 210 : 16, + 304 : 16, + 315 : 16, + 321 : 17, + 327 : 17, + 331 : 17, + 335 : 16, + 338 : 16, + 340 : 16, + 351 : 15, + 393 : 15, + 401 : 15, + 402 : 15, + 403 : 15, + 404 : 15, + 477 : 15, + 480 : 15, + 490 : 15, + 498 : 15, + 573 : 16, + 575 : 16, + 578 : 16, + 709 : 16, + 734 : 15, + 735 : 15, + 736 : 15, + 751 : 59, + 755 : 63, + 756 : 63, + 757 : 63, + 1073741839 : 60 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'recordCount', TrailingData ), ( 'dataLength', Int ), ( 'records', ArrayType(StructType(( 'y', Byte ), ), 'recordCount', ) ) ], + 47 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 76 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 107 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 108 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 109 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 110 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 201 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 210 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 304 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 315 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 321 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 327 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 331 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 335 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 338 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 340 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 351 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 393 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 401 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 402 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 403 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 404 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 477 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 480 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 490 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 498 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 573 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 575 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 578 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 709 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 734 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 735 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 736 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ), ( 'records', ArrayType(StructType(( 'horizontalPos', Byte ), ( 'y', Byte ), ( 'blockId', VarInt ), ), VarInt, ) ) ], + 751 : [ ( 'chunkCoordinates', Int ), ( 'notTrustEdges', Boolean ), ( 'records', ArrayType(VarInt, VarInt, ) ) ], + 755 : [ ( 'chunkCoordinates', Int ), ( 'notTrustEdges', Boolean ), ( 'records', ArrayType(VarInt, VarInt, ) ) ], + 756 : [ ( 'chunkCoordinates', Int ), ( 'notTrustEdges', Boolean ), ( 'records', ArrayType(VarInt, VarInt, ) ) ], + 757 : [ ( 'chunkCoordinates', Int ), ( 'notTrustEdges', Boolean ), ( 'records', ArrayType(VarInt, VarInt, ) ) ], + 1073741839 : [ ( 'chunkCoordinates', Int ), ( 'notTrustEdges', Boolean ), ( 'records', ArrayType(VarInt, VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_named_entity_spawn.py b/aiocraft/mc/proto/play/clientbound/packet_named_entity_spawn.py new file mode 100644 index 0000000..4a8f6c5 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_named_entity_spawn.py @@ -0,0 +1,105 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketNamedEntitySpawn(Packet): + __slots__ = ( 'id', 'metadata', 'currentItem', 'playerUUID', 'data', 'x', 'yaw', 'entityId', 'y', 'z', 'playerName', 'pitch' ) + + metadata : bytes + currentItem : int + playerUUID : str + data : list + x : Union[float,int] + yaw : int + entityId : int + y : Union[float,int] + z : Union[float,int] + playerName : str + pitch : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 12, + 47 : 12, + 76 : 5, + 107 : 5, + 108 : 5, + 109 : 5, + 110 : 5, + 201 : 5, + 210 : 5, + 304 : 5, + 315 : 5, + 321 : 5, + 327 : 5, + 331 : 5, + 335 : 5, + 338 : 5, + 340 : 5, + 351 : 5, + 393 : 5, + 401 : 5, + 402 : 5, + 403 : 5, + 404 : 5, + 477 : 5, + 480 : 5, + 490 : 5, + 498 : 5, + 573 : 5, + 575 : 5, + 578 : 5, + 709 : 5, + 734 : 4, + 735 : 4, + 736 : 4, + 751 : 4, + 755 : 4, + 756 : 4, + 757 : 4, + 1073741839 : 4 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', VarInt ), ( 'playerUUID', String ), ( 'playerName', String ), ( 'data', ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', String ), ), VarInt, ) ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'currentItem', Short ), ( 'metadata', EntityMetadata ) ], + 47 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'currentItem', Short ), ( 'metadata', EntityMetadata ) ], + 76 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 107 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 108 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 109 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 110 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 201 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 210 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 304 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 315 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 321 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 327 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 331 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 335 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 338 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 340 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 351 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 393 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 401 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 402 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 403 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 404 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 477 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 480 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 490 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 498 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'metadata', EntityMetadata ) ], + 573 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 575 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 578 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 709 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 734 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 735 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 736 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 751 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 755 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 756 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 757 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'playerUUID', UUID ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_named_sound_effect.py b/aiocraft/mc/proto/play/clientbound/packet_named_sound_effect.py new file mode 100644 index 0000000..2e7afab --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_named_sound_effect.py @@ -0,0 +1,101 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketNamedSoundEffect(Packet): + __slots__ = ( 'id', 'soundName', 'x', 'volume', 'y', 'z', 'pitch', 'soundCategory' ) + + soundName : str + x : int + volume : float + y : int + z : int + pitch : Union[float,int] + soundCategory : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 41, + 47 : 41, + 76 : 35, + 107 : 25, + 108 : 25, + 109 : 25, + 110 : 25, + 201 : 25, + 210 : 25, + 304 : 25, + 315 : 25, + 321 : 26, + 327 : 26, + 331 : 26, + 335 : 25, + 338 : 25, + 340 : 25, + 351 : 26, + 393 : 26, + 401 : 26, + 402 : 26, + 403 : 26, + 404 : 26, + 477 : 25, + 480 : 25, + 490 : 25, + 498 : 25, + 573 : 26, + 575 : 26, + 578 : 26, + 709 : 26, + 734 : 25, + 735 : 25, + 736 : 25, + 751 : 24, + 755 : 25, + 756 : 25, + 757 : 25, + 1073741839 : 25 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'soundName', String ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 47 : [ ( 'soundName', String ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 76 : [ ( 'soundName', String ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 107 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 108 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 109 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 110 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 201 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 210 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 304 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 315 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 321 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 327 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 331 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 335 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 338 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 340 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 351 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 393 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 401 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 402 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 403 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 404 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 477 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 480 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 490 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 498 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 573 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 575 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 578 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 709 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 734 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 735 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 736 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 751 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 755 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 756 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 757 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 1073741839 : [ ( 'soundName', String ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_nbt_query_response.py b/aiocraft/mc/proto/play/clientbound/packet_nbt_query_response.py new file mode 100644 index 0000000..9a374ea --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_nbt_query_response.py @@ -0,0 +1,60 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketNbtQueryResponse(Packet): + __slots__ = ( 'id', 'transactionId', 'nbt' ) + + transactionId : int + nbt : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 29, + 401 : 29, + 402 : 29, + 403 : 29, + 404 : 29, + 477 : 84, + 480 : 84, + 490 : 84, + 498 : 84, + 573 : 85, + 575 : 85, + 578 : 85, + 709 : 85, + 734 : 84, + 735 : 84, + 736 : 84, + 751 : 84, + 755 : 95, + 756 : 95, + 757 : 96, + 1073741839 : 85 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 401 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 402 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 403 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 404 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 477 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 480 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 490 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 498 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 573 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 575 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 578 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 709 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 734 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 735 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 736 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 751 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 755 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 756 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 757 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ], + 1073741839 : [ ( 'transactionId', VarInt ), ( 'nbt', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_open_book.py b/aiocraft/mc/proto/play/clientbound/packet_open_book.py new file mode 100644 index 0000000..8144fa3 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_open_book.py @@ -0,0 +1,49 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketOpenBook(Packet): + __slots__ = ( 'id', 'hand' ) + + hand : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 45, + 480 : 45, + 490 : 45, + 498 : 45, + 573 : 46, + 575 : 46, + 578 : 46, + 709 : 46, + 734 : 45, + 735 : 45, + 736 : 45, + 751 : 44, + 755 : 45, + 756 : 45, + 757 : 45, + 1073741839 : 45 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'hand', VarInt ) ], + 480 : [ ( 'hand', VarInt ) ], + 490 : [ ( 'hand', VarInt ) ], + 498 : [ ( 'hand', VarInt ) ], + 573 : [ ( 'hand', VarInt ) ], + 575 : [ ( 'hand', VarInt ) ], + 578 : [ ( 'hand', VarInt ) ], + 709 : [ ( 'hand', VarInt ) ], + 734 : [ ( 'hand', VarInt ) ], + 735 : [ ( 'hand', VarInt ) ], + 736 : [ ( 'hand', VarInt ) ], + 751 : [ ( 'hand', VarInt ) ], + 755 : [ ( 'hand', VarInt ) ], + 756 : [ ( 'hand', VarInt ) ], + 757 : [ ( 'hand', VarInt ) ], + 1073741839 : [ ( 'hand', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_open_horse_window.py b/aiocraft/mc/proto/play/clientbound/packet_open_horse_window.py new file mode 100644 index 0000000..f28ebb9 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_open_horse_window.py @@ -0,0 +1,51 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketOpenHorseWindow(Packet): + __slots__ = ( 'id', 'entityId', 'windowId', 'nbSlots' ) + + entityId : int + windowId : int + nbSlots : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 31, + 480 : 31, + 490 : 31, + 498 : 31, + 573 : 32, + 575 : 32, + 578 : 32, + 709 : 32, + 734 : 31, + 735 : 31, + 736 : 31, + 751 : 30, + 755 : 31, + 756 : 31, + 757 : 31, + 1073741839 : 31 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 480 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 490 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 498 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 573 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 575 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 578 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 709 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 734 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 735 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 736 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 751 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 755 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 756 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 757 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'nbSlots', VarInt ), ( 'entityId', Int ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_open_sign_entity.py b/aiocraft/mc/proto/play/clientbound/packet_open_sign_entity.py new file mode 100644 index 0000000..584cfe0 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_open_sign_entity.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketOpenSignEntity(Packet): + __slots__ = ( 'id', 'location' ) + + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 54, + 47 : 54, + 76 : 42, + 107 : 42, + 108 : 42, + 109 : 42, + 110 : 42, + 201 : 42, + 210 : 42, + 304 : 42, + 315 : 42, + 321 : 43, + 327 : 43, + 331 : 43, + 335 : 42, + 338 : 42, + 340 : 42, + 351 : 43, + 393 : 44, + 401 : 44, + 402 : 44, + 403 : 44, + 404 : 44, + 477 : 47, + 480 : 47, + 490 : 47, + 498 : 47, + 573 : 48, + 575 : 48, + 578 : 48, + 709 : 48, + 734 : 47, + 735 : 47, + 736 : 47, + 751 : 46, + 755 : 47, + 756 : 47, + 757 : 47, + 1073741839 : 47 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'location', TrailingData ) ], + 47 : [ ( 'location', Position ) ], + 76 : [ ( 'location', Position ) ], + 107 : [ ( 'location', Position ) ], + 108 : [ ( 'location', Position ) ], + 109 : [ ( 'location', Position ) ], + 110 : [ ( 'location', Position ) ], + 201 : [ ( 'location', Position ) ], + 210 : [ ( 'location', Position ) ], + 304 : [ ( 'location', Position ) ], + 315 : [ ( 'location', Position ) ], + 321 : [ ( 'location', Position ) ], + 327 : [ ( 'location', Position ) ], + 331 : [ ( 'location', Position ) ], + 335 : [ ( 'location', Position ) ], + 338 : [ ( 'location', Position ) ], + 340 : [ ( 'location', Position ) ], + 351 : [ ( 'location', Position ) ], + 393 : [ ( 'location', Position ) ], + 401 : [ ( 'location', Position ) ], + 402 : [ ( 'location', Position ) ], + 403 : [ ( 'location', Position ) ], + 404 : [ ( 'location', Position ) ], + 477 : [ ( 'location', Position ) ], + 480 : [ ( 'location', Position ) ], + 490 : [ ( 'location', Position ) ], + 498 : [ ( 'location', Position ) ], + 573 : [ ( 'location', Position ) ], + 575 : [ ( 'location', Position ) ], + 578 : [ ( 'location', Position ) ], + 709 : [ ( 'location', Position ) ], + 734 : [ ( 'location', Position ) ], + 735 : [ ( 'location', Position ) ], + 736 : [ ( 'location', Position ) ], + 751 : [ ( 'location', Position ) ], + 755 : [ ( 'location', Position ) ], + 756 : [ ( 'location', Position ) ], + 757 : [ ( 'location', Position ) ], + 1073741839 : [ ( 'location', Position ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_open_window.py b/aiocraft/mc/proto/play/clientbound/packet_open_window.py new file mode 100644 index 0000000..c48993d --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_open_window.py @@ -0,0 +1,100 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketOpenWindow(Packet): + __slots__ = ( 'id', 'inventoryType', 'windowTitle', 'windowId', 'entityId', 'useProvidedTitle', 'slotCount' ) + + inventoryType : Union[str,int] + windowTitle : str + windowId : int + entityId : bytes + useProvidedTitle : bool + slotCount : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 45, + 47 : 45, + 76 : 19, + 107 : 19, + 108 : 19, + 109 : 19, + 110 : 19, + 201 : 19, + 210 : 19, + 304 : 19, + 315 : 19, + 321 : 20, + 327 : 20, + 331 : 20, + 335 : 19, + 338 : 19, + 340 : 19, + 351 : 20, + 393 : 20, + 401 : 20, + 402 : 20, + 403 : 20, + 404 : 20, + 477 : 46, + 480 : 46, + 490 : 46, + 498 : 46, + 573 : 47, + 575 : 47, + 578 : 47, + 709 : 47, + 734 : 46, + 735 : 46, + 736 : 46, + 751 : 45, + 755 : 46, + 756 : 46, + 757 : 46, + 1073741839 : 46 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ), ( 'inventoryType', Byte ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'useProvidedTitle', Boolean ), ( 'entityId', SwitchType('inventoryType', { 11 : Int }, None, ) ) ], + 47 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 76 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 107 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 108 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 109 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 110 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 201 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 210 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 304 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 315 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 321 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 327 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 331 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 335 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 338 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 340 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 351 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 393 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 401 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 402 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 403 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 404 : [ ( 'windowId', Byte ), ( 'inventoryType', String ), ( 'windowTitle', String ), ( 'slotCount', Byte ), ( 'entityId', SwitchType('inventoryType', { 'EntityHorse' : Int }, None, ) ) ], + 477 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 480 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 490 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 498 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 573 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 575 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 578 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 709 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 734 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 735 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 736 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 751 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 755 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 756 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 757 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ], + 1073741839 : [ ( 'windowId', VarInt ), ( 'inventoryType', VarInt ), ( 'windowTitle', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_ping.py b/aiocraft/mc/proto/play/clientbound/packet_ping.py new file mode 100644 index 0000000..9519475 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_ping.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPing(Packet): + __slots__ = ( 'id', 'id' ) + + id : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 48, + 756 : 48, + 757 : 48 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'id', Int ) ], + 756 : [ ( 'id', Int ) ], + 757 : [ ( 'id', Int ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_player_info.py b/aiocraft/mc/proto/play/clientbound/packet_player_info.py new file mode 100644 index 0000000..c8835cc --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_player_info.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPlayerInfo(Packet): + __slots__ = ( 'id', 'online', 'action', 'data', 'playerName', 'ping' ) + + online : bool + action : int + data : list + playerName : str + ping : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 56, + 47 : 56, + 76 : 45, + 107 : 45, + 108 : 45, + 109 : 45, + 110 : 45, + 201 : 45, + 210 : 45, + 304 : 45, + 315 : 45, + 321 : 46, + 327 : 46, + 331 : 46, + 335 : 45, + 338 : 46, + 340 : 46, + 351 : 47, + 393 : 48, + 401 : 48, + 402 : 48, + 403 : 48, + 404 : 48, + 477 : 51, + 480 : 51, + 490 : 51, + 498 : 51, + 573 : 52, + 575 : 52, + 578 : 52, + 709 : 52, + 734 : 51, + 735 : 51, + 736 : 51, + 751 : 50, + 755 : 54, + 756 : 54, + 757 : 54, + 1073741839 : 51 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'playerName', String ), ( 'online', Boolean ), ( 'ping', Short ) ], + 47 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 76 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 107 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 108 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 109 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 110 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 201 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 210 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 304 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 315 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 321 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 327 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 331 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 335 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 338 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 340 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 351 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 393 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 401 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 402 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 403 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 404 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 477 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 480 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 490 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 498 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 573 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 575 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 578 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 709 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 734 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 735 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 736 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 751 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 755 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 756 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 757 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ], + 1073741839 : [ ( 'action', VarInt ), ( 'data', ArrayType(StructType(( 'UUID', UUID ), ( 'name', SwitchType('action', { 0 : String }, None, ) ), ( 'properties', SwitchType('action', { 0 : ArrayType(StructType(( 'name', String ), ( 'value', String ), ( 'signature', OptionalType(String, ) ), ), VarInt, ) }, None, ) ), ( 'gamemode', SwitchType('action', { 0 : VarInt, 1 : VarInt }, None, ) ), ( 'ping', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'displayName', SwitchType('action', { 0 : OptionalType(String, ), 3 : OptionalType(String, ) }, None, ) ), ), VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_playerlist_header.py b/aiocraft/mc/proto/play/clientbound/packet_playerlist_header.py new file mode 100644 index 0000000..dcf4611 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_playerlist_header.py @@ -0,0 +1,94 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPlayerlistHeader(Packet): + __slots__ = ( 'id', 'header', 'footer' ) + + header : str + footer : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 71, + 76 : 70, + 107 : 72, + 108 : 72, + 109 : 72, + 110 : 71, + 201 : 71, + 210 : 71, + 304 : 71, + 315 : 71, + 321 : 73, + 327 : 73, + 331 : 73, + 335 : 73, + 338 : 74, + 340 : 74, + 351 : 76, + 393 : 78, + 401 : 78, + 402 : 78, + 403 : 78, + 404 : 78, + 477 : 83, + 480 : 83, + 490 : 83, + 498 : 83, + 573 : 84, + 575 : 84, + 578 : 84, + 709 : 84, + 734 : 83, + 735 : 83, + 736 : 83, + 751 : 83, + 755 : 94, + 756 : 94, + 757 : 95, + 1073741839 : 84 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'header', String ), ( 'footer', String ) ], + 76 : [ ( 'header', String ), ( 'footer', String ) ], + 107 : [ ( 'header', String ), ( 'footer', String ) ], + 108 : [ ( 'header', String ), ( 'footer', String ) ], + 109 : [ ( 'header', String ), ( 'footer', String ) ], + 110 : [ ( 'header', String ), ( 'footer', String ) ], + 201 : [ ( 'header', String ), ( 'footer', String ) ], + 210 : [ ( 'header', String ), ( 'footer', String ) ], + 304 : [ ( 'header', String ), ( 'footer', String ) ], + 315 : [ ( 'header', String ), ( 'footer', String ) ], + 321 : [ ( 'header', String ), ( 'footer', String ) ], + 327 : [ ( 'header', String ), ( 'footer', String ) ], + 331 : [ ( 'header', String ), ( 'footer', String ) ], + 335 : [ ( 'header', String ), ( 'footer', String ) ], + 338 : [ ( 'header', String ), ( 'footer', String ) ], + 340 : [ ( 'header', String ), ( 'footer', String ) ], + 351 : [ ( 'header', String ), ( 'footer', String ) ], + 393 : [ ( 'header', String ), ( 'footer', String ) ], + 401 : [ ( 'header', String ), ( 'footer', String ) ], + 402 : [ ( 'header', String ), ( 'footer', String ) ], + 403 : [ ( 'header', String ), ( 'footer', String ) ], + 404 : [ ( 'header', String ), ( 'footer', String ) ], + 477 : [ ( 'header', String ), ( 'footer', String ) ], + 480 : [ ( 'header', String ), ( 'footer', String ) ], + 490 : [ ( 'header', String ), ( 'footer', String ) ], + 498 : [ ( 'header', String ), ( 'footer', String ) ], + 573 : [ ( 'header', String ), ( 'footer', String ) ], + 575 : [ ( 'header', String ), ( 'footer', String ) ], + 578 : [ ( 'header', String ), ( 'footer', String ) ], + 709 : [ ( 'header', String ), ( 'footer', String ) ], + 734 : [ ( 'header', String ), ( 'footer', String ) ], + 735 : [ ( 'header', String ), ( 'footer', String ) ], + 736 : [ ( 'header', String ), ( 'footer', String ) ], + 751 : [ ( 'header', String ), ( 'footer', String ) ], + 755 : [ ( 'header', String ), ( 'footer', String ) ], + 756 : [ ( 'header', String ), ( 'footer', String ) ], + 757 : [ ( 'header', String ), ( 'footer', String ) ], + 1073741839 : [ ( 'header', String ), ( 'footer', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_position.py b/aiocraft/mc/proto/play/clientbound/packet_position.py new file mode 100644 index 0000000..5a9b67e --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_position.py @@ -0,0 +1,103 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPosition(Packet): + __slots__ = ( 'id', 'teleportId', 'dismountVehicle', 'flags', 'onGround', 'x', 'yaw', 'y', 'z', 'pitch' ) + + teleportId : int + dismountVehicle : bool + flags : int + onGround : bool + x : float + yaw : float + y : float + z : float + pitch : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 8, + 47 : 8, + 76 : 46, + 107 : 46, + 108 : 46, + 109 : 46, + 110 : 46, + 201 : 46, + 210 : 46, + 304 : 46, + 315 : 46, + 321 : 47, + 327 : 47, + 331 : 47, + 335 : 46, + 338 : 47, + 340 : 47, + 351 : 48, + 393 : 50, + 401 : 50, + 402 : 50, + 403 : 50, + 404 : 50, + 477 : 53, + 480 : 53, + 490 : 53, + 498 : 53, + 573 : 54, + 575 : 54, + 578 : 54, + 709 : 54, + 734 : 53, + 735 : 53, + 736 : 53, + 751 : 52, + 755 : 56, + 756 : 56, + 757 : 56, + 1073741839 : 53 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 47 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ) ], + 76 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ) ], + 107 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 108 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 109 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 110 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 201 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 210 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 304 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 315 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 321 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 327 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 331 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 335 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 338 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 340 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 351 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 393 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 401 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 402 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 403 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 404 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 477 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 480 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 490 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 498 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 573 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 575 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 578 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 709 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 734 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 735 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 736 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 751 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ) ], + 755 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ), ( 'dismountVehicle', Boolean ) ], + 756 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ), ( 'dismountVehicle', Boolean ) ], + 757 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ), ( 'dismountVehicle', Boolean ) ], + 1073741839 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'flags', Byte ), ( 'teleportId', VarInt ), ( 'dismountVehicle', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_rel_entity_move.py b/aiocraft/mc/proto/play/clientbound/packet_rel_entity_move.py new file mode 100644 index 0000000..4d8ac82 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_rel_entity_move.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketRelEntityMove(Packet): + __slots__ = ( 'id', 'dY', 'dX', 'onGround', 'dZ', 'entityId' ) + + dY : int + dX : int + onGround : bool + dZ : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 21, + 47 : 21, + 76 : 38, + 107 : 37, + 108 : 37, + 109 : 37, + 110 : 37, + 201 : 37, + 210 : 37, + 304 : 37, + 315 : 37, + 321 : 38, + 327 : 38, + 331 : 38, + 335 : 38, + 338 : 38, + 340 : 38, + 351 : 39, + 393 : 40, + 401 : 40, + 402 : 40, + 403 : 40, + 404 : 40, + 477 : 40, + 480 : 40, + 490 : 40, + 498 : 40, + 573 : 41, + 575 : 41, + 578 : 41, + 709 : 41, + 734 : 40, + 735 : 40, + 736 : 40, + 751 : 39, + 755 : 41, + 756 : 41, + 757 : 41, + 1073741839 : 40 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'dX', Byte ), ( 'dY', Byte ), ( 'dZ', Byte ) ], + 47 : [ ( 'entityId', VarInt ), ( 'dX', Byte ), ( 'dY', Byte ), ( 'dZ', Byte ), ( 'onGround', Boolean ) ], + 76 : [ ( 'entityId', VarInt ), ( 'dX', Byte ), ( 'dY', Byte ), ( 'dZ', Byte ), ( 'onGround', Boolean ) ], + 107 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 108 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 109 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 110 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 201 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 210 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 304 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 315 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 321 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 327 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 331 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 335 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 338 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 340 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 351 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 393 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 401 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 402 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 403 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 404 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 477 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 480 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 490 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 498 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 573 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 575 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 578 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 709 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 734 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 735 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 736 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 751 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 755 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 756 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 757 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'dX', Short ), ( 'dY', Short ), ( 'dZ', Short ), ( 'onGround', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_remove_entity_effect.py b/aiocraft/mc/proto/play/clientbound/packet_remove_entity_effect.py new file mode 100644 index 0000000..7682110 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_remove_entity_effect.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketRemoveEntityEffect(Packet): + __slots__ = ( 'id', 'entityId', 'effectId' ) + + entityId : int + effectId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 30, + 47 : 30, + 76 : 49, + 107 : 49, + 108 : 49, + 109 : 49, + 110 : 49, + 201 : 49, + 210 : 49, + 304 : 49, + 315 : 49, + 321 : 51, + 327 : 51, + 331 : 51, + 335 : 50, + 338 : 51, + 340 : 51, + 351 : 52, + 393 : 54, + 401 : 54, + 402 : 54, + 403 : 54, + 404 : 54, + 477 : 56, + 480 : 56, + 490 : 56, + 498 : 56, + 573 : 57, + 575 : 57, + 578 : 57, + 709 : 57, + 734 : 56, + 735 : 56, + 736 : 56, + 751 : 55, + 755 : 59, + 756 : 59, + 757 : 59, + 1073741839 : 56 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'effectId', Byte ) ], + 47 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 76 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 107 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 108 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 109 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 110 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 201 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 210 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 304 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 315 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 321 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 327 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 331 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 335 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 338 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 340 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 351 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 393 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 401 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 402 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 403 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 404 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 477 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 480 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 490 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 498 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 573 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 575 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 578 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 709 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 734 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 735 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 736 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 751 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 755 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 756 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 757 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'effectId', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_resource_pack_send.py b/aiocraft/mc/proto/play/clientbound/packet_resource_pack_send.py new file mode 100644 index 0000000..e2cbb24 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_resource_pack_send.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketResourcePackSend(Packet): + __slots__ = ( 'id', 'url', 'hash', 'forced', 'promptMessage' ) + + url : str + hash : str + forced : bool + promptMessage : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 72, + 76 : 50, + 107 : 50, + 108 : 50, + 109 : 50, + 110 : 50, + 201 : 50, + 210 : 50, + 304 : 50, + 315 : 50, + 321 : 52, + 327 : 52, + 331 : 52, + 335 : 51, + 338 : 52, + 340 : 52, + 351 : 53, + 393 : 55, + 401 : 55, + 402 : 55, + 403 : 55, + 404 : 55, + 477 : 57, + 480 : 57, + 490 : 57, + 498 : 57, + 573 : 58, + 575 : 58, + 578 : 58, + 709 : 58, + 734 : 57, + 735 : 57, + 736 : 57, + 751 : 56, + 755 : 60, + 756 : 60, + 757 : 60, + 1073741839 : 57 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'url', String ), ( 'hash', String ) ], + 76 : [ ( 'url', String ), ( 'hash', String ) ], + 107 : [ ( 'url', String ), ( 'hash', String ) ], + 108 : [ ( 'url', String ), ( 'hash', String ) ], + 109 : [ ( 'url', String ), ( 'hash', String ) ], + 110 : [ ( 'url', String ), ( 'hash', String ) ], + 201 : [ ( 'url', String ), ( 'hash', String ) ], + 210 : [ ( 'url', String ), ( 'hash', String ) ], + 304 : [ ( 'url', String ), ( 'hash', String ) ], + 315 : [ ( 'url', String ), ( 'hash', String ) ], + 321 : [ ( 'url', String ), ( 'hash', String ) ], + 327 : [ ( 'url', String ), ( 'hash', String ) ], + 331 : [ ( 'url', String ), ( 'hash', String ) ], + 335 : [ ( 'url', String ), ( 'hash', String ) ], + 338 : [ ( 'url', String ), ( 'hash', String ) ], + 340 : [ ( 'url', String ), ( 'hash', String ) ], + 351 : [ ( 'url', String ), ( 'hash', String ) ], + 393 : [ ( 'url', String ), ( 'hash', String ) ], + 401 : [ ( 'url', String ), ( 'hash', String ) ], + 402 : [ ( 'url', String ), ( 'hash', String ) ], + 403 : [ ( 'url', String ), ( 'hash', String ) ], + 404 : [ ( 'url', String ), ( 'hash', String ) ], + 477 : [ ( 'url', String ), ( 'hash', String ) ], + 480 : [ ( 'url', String ), ( 'hash', String ) ], + 490 : [ ( 'url', String ), ( 'hash', String ) ], + 498 : [ ( 'url', String ), ( 'hash', String ) ], + 573 : [ ( 'url', String ), ( 'hash', String ) ], + 575 : [ ( 'url', String ), ( 'hash', String ) ], + 578 : [ ( 'url', String ), ( 'hash', String ) ], + 709 : [ ( 'url', String ), ( 'hash', String ) ], + 734 : [ ( 'url', String ), ( 'hash', String ) ], + 735 : [ ( 'url', String ), ( 'hash', String ) ], + 736 : [ ( 'url', String ), ( 'hash', String ) ], + 751 : [ ( 'url', String ), ( 'hash', String ) ], + 755 : [ ( 'url', String ), ( 'hash', String ), ( 'forced', Boolean ), ( 'promptMessage', OptionalType(String, ) ) ], + 756 : [ ( 'url', String ), ( 'hash', String ), ( 'forced', Boolean ), ( 'promptMessage', OptionalType(String, ) ) ], + 757 : [ ( 'url', String ), ( 'hash', String ), ( 'forced', Boolean ), ( 'promptMessage', OptionalType(String, ) ) ], + 1073741839 : [ ( 'url', String ), ( 'hash', String ), ( 'forced', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_respawn.py b/aiocraft/mc/proto/play/clientbound/packet_respawn.py new file mode 100644 index 0000000..d1ff10b --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_respawn.py @@ -0,0 +1,104 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketRespawn(Packet): + __slots__ = ( 'id', 'isFlat', 'hashedSeed', 'worldName', 'isDebug', 'dimension', 'levelType', 'previousGamemode', 'gamemode', 'copyMetadata', 'difficulty' ) + + isFlat : bool + hashedSeed : int + worldName : str + isDebug : bool + dimension : Union[bytes,str,int] + levelType : str + previousGamemode : int + gamemode : int + copyMetadata : bool + difficulty : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 7, + 47 : 7, + 76 : 51, + 107 : 51, + 108 : 51, + 109 : 51, + 110 : 51, + 201 : 51, + 210 : 51, + 304 : 51, + 315 : 51, + 321 : 53, + 327 : 53, + 331 : 53, + 335 : 52, + 338 : 53, + 340 : 53, + 351 : 54, + 393 : 56, + 401 : 56, + 402 : 56, + 403 : 56, + 404 : 56, + 477 : 58, + 480 : 58, + 490 : 58, + 498 : 58, + 573 : 59, + 575 : 59, + 578 : 59, + 709 : 59, + 734 : 58, + 735 : 58, + 736 : 58, + 751 : 57, + 755 : 61, + 756 : 61, + 757 : 61, + 1073741839 : 58 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 47 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 76 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 107 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 108 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 109 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 110 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 201 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 210 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 304 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 315 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 321 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 327 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 331 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 335 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 338 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 340 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 351 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 393 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 401 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 402 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 403 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 404 : [ ( 'dimension', Int ), ( 'difficulty', Byte ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 477 : [ ( 'dimension', Int ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 480 : [ ( 'dimension', Int ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 490 : [ ( 'dimension', Int ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 498 : [ ( 'dimension', Int ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 573 : [ ( 'dimension', Int ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 575 : [ ( 'dimension', Int ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 578 : [ ( 'dimension', Int ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 709 : [ ( 'dimension', Int ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'levelType', String ) ], + 734 : [ ( 'dimension', String ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'previousGamemode', Byte ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ), ( 'copyMetadata', Boolean ) ], + 735 : [ ( 'dimension', String ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'previousGamemode', Byte ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ), ( 'copyMetadata', Boolean ) ], + 736 : [ ( 'dimension', String ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'previousGamemode', Byte ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ), ( 'copyMetadata', Boolean ) ], + 751 : [ ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'previousGamemode', Byte ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ), ( 'copyMetadata', Boolean ) ], + 755 : [ ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'previousGamemode', Byte ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ), ( 'copyMetadata', Boolean ) ], + 756 : [ ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'previousGamemode', Byte ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ), ( 'copyMetadata', Boolean ) ], + 757 : [ ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'previousGamemode', Byte ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ), ( 'copyMetadata', Boolean ) ], + 1073741839 : [ ( 'dimension', NBTTag ), ( 'worldName', String ), ( 'hashedSeed', Long ), ( 'gamemode', Byte ), ( 'previousGamemode', Byte ), ( 'isDebug', Boolean ), ( 'isFlat', Boolean ), ( 'copyMetadata', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_scoreboard_display_objective.py b/aiocraft/mc/proto/play/clientbound/packet_scoreboard_display_objective.py new file mode 100644 index 0000000..a4f4511 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_scoreboard_display_objective.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketScoreboardDisplayObjective(Packet): + __slots__ = ( 'id', 'name', 'position' ) + + name : str + position : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 61, + 47 : 61, + 76 : 56, + 107 : 56, + 108 : 56, + 109 : 56, + 110 : 56, + 201 : 56, + 210 : 56, + 304 : 56, + 315 : 56, + 321 : 58, + 327 : 58, + 331 : 58, + 335 : 58, + 338 : 59, + 340 : 59, + 351 : 60, + 393 : 62, + 401 : 62, + 402 : 62, + 403 : 62, + 404 : 62, + 477 : 66, + 480 : 66, + 490 : 66, + 498 : 66, + 573 : 67, + 575 : 67, + 578 : 67, + 709 : 68, + 734 : 67, + 735 : 67, + 736 : 67, + 751 : 67, + 755 : 76, + 756 : 76, + 757 : 76, + 1073741839 : 68 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'position', Byte ), ( 'name', String ) ], + 47 : [ ( 'position', Byte ), ( 'name', String ) ], + 76 : [ ( 'position', Byte ), ( 'name', String ) ], + 107 : [ ( 'position', Byte ), ( 'name', String ) ], + 108 : [ ( 'position', Byte ), ( 'name', String ) ], + 109 : [ ( 'position', Byte ), ( 'name', String ) ], + 110 : [ ( 'position', Byte ), ( 'name', String ) ], + 201 : [ ( 'position', Byte ), ( 'name', String ) ], + 210 : [ ( 'position', Byte ), ( 'name', String ) ], + 304 : [ ( 'position', Byte ), ( 'name', String ) ], + 315 : [ ( 'position', Byte ), ( 'name', String ) ], + 321 : [ ( 'position', Byte ), ( 'name', String ) ], + 327 : [ ( 'position', Byte ), ( 'name', String ) ], + 331 : [ ( 'position', Byte ), ( 'name', String ) ], + 335 : [ ( 'position', Byte ), ( 'name', String ) ], + 338 : [ ( 'position', Byte ), ( 'name', String ) ], + 340 : [ ( 'position', Byte ), ( 'name', String ) ], + 351 : [ ( 'position', Byte ), ( 'name', String ) ], + 393 : [ ( 'position', Byte ), ( 'name', String ) ], + 401 : [ ( 'position', Byte ), ( 'name', String ) ], + 402 : [ ( 'position', Byte ), ( 'name', String ) ], + 403 : [ ( 'position', Byte ), ( 'name', String ) ], + 404 : [ ( 'position', Byte ), ( 'name', String ) ], + 477 : [ ( 'position', Byte ), ( 'name', String ) ], + 480 : [ ( 'position', Byte ), ( 'name', String ) ], + 490 : [ ( 'position', Byte ), ( 'name', String ) ], + 498 : [ ( 'position', Byte ), ( 'name', String ) ], + 573 : [ ( 'position', Byte ), ( 'name', String ) ], + 575 : [ ( 'position', Byte ), ( 'name', String ) ], + 578 : [ ( 'position', Byte ), ( 'name', String ) ], + 709 : [ ( 'position', Byte ), ( 'name', String ) ], + 734 : [ ( 'position', Byte ), ( 'name', String ) ], + 735 : [ ( 'position', Byte ), ( 'name', String ) ], + 736 : [ ( 'position', Byte ), ( 'name', String ) ], + 751 : [ ( 'position', Byte ), ( 'name', String ) ], + 755 : [ ( 'position', Byte ), ( 'name', String ) ], + 756 : [ ( 'position', Byte ), ( 'name', String ) ], + 757 : [ ( 'position', Byte ), ( 'name', String ) ], + 1073741839 : [ ( 'position', Byte ), ( 'name', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_scoreboard_objective.py b/aiocraft/mc/proto/play/clientbound/packet_scoreboard_objective.py new file mode 100644 index 0000000..fb88cfe --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_scoreboard_objective.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketScoreboardObjective(Packet): + __slots__ = ( 'id', 'name', 'type', 'displayText', 'action' ) + + name : str + type : bytes + displayText : Union[bytes,str] + action : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 59, + 47 : 59, + 76 : 63, + 107 : 63, + 108 : 63, + 109 : 63, + 110 : 63, + 201 : 63, + 210 : 63, + 304 : 63, + 315 : 63, + 321 : 65, + 327 : 65, + 331 : 65, + 335 : 65, + 338 : 66, + 340 : 66, + 351 : 67, + 393 : 69, + 401 : 69, + 402 : 69, + 403 : 69, + 404 : 69, + 477 : 73, + 480 : 73, + 490 : 73, + 498 : 73, + 573 : 74, + 575 : 74, + 578 : 74, + 709 : 75, + 734 : 74, + 735 : 74, + 736 : 74, + 751 : 74, + 755 : 83, + 756 : 83, + 757 : 83, + 1073741839 : 75 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'name', String ), ( 'displayText', String ), ( 'action', Byte ) ], + 47 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 76 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 107 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 108 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 109 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 110 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 201 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 210 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 304 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 315 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 321 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 327 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 331 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 335 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 338 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 340 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 351 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : String, 2 : String }, None, ) ) ], + 393 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 401 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 402 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 403 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 404 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 477 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 480 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 490 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 498 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 573 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 575 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 578 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 709 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 734 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 735 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 736 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 751 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 755 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 756 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 757 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 1073741839 : [ ( 'name', String ), ( 'action', Byte ), ( 'displayText', SwitchType('action', { 0 : String, 2 : String }, None, ) ), ( 'type', SwitchType('action', { 0 : VarInt, 2 : VarInt }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_scoreboard_score.py b/aiocraft/mc/proto/play/clientbound/packet_scoreboard_score.py new file mode 100644 index 0000000..7d1fa07 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_scoreboard_score.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketScoreboardScore(Packet): + __slots__ = ( 'id', 'action', 'value', 'itemName', 'scoreName' ) + + action : int + value : bytes + itemName : str + scoreName : Union[bytes,str] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 60, + 47 : 60, + 76 : 65, + 107 : 66, + 108 : 66, + 109 : 66, + 110 : 66, + 201 : 66, + 210 : 66, + 304 : 66, + 315 : 66, + 321 : 68, + 327 : 68, + 331 : 68, + 335 : 68, + 338 : 69, + 340 : 69, + 351 : 70, + 393 : 72, + 401 : 72, + 402 : 72, + 403 : 72, + 404 : 72, + 477 : 76, + 480 : 76, + 490 : 76, + 498 : 76, + 573 : 77, + 575 : 77, + 578 : 77, + 709 : 78, + 734 : 77, + 735 : 77, + 736 : 77, + 751 : 77, + 755 : 86, + 756 : 86, + 757 : 86, + 1073741839 : 78 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', SwitchType('action', { 1 : Void }, String, ) ), ( 'value', SwitchType('action', { 1 : Void }, Int, ) ) ], + 47 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 76 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 107 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 108 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 109 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 110 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 201 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 210 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 304 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 315 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 321 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 327 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 331 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 335 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 338 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 340 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 351 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 393 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 401 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 402 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 403 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 404 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 477 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 480 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 490 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 498 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 573 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 575 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 578 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 709 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 734 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 735 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 736 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 751 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 755 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 756 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 757 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ], + 1073741839 : [ ( 'itemName', String ), ( 'action', Byte ), ( 'scoreName', String ), ( 'value', SwitchType('action', { 1 : Void }, VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_scoreboard_team.py b/aiocraft/mc/proto/play/clientbound/packet_scoreboard_team.py new file mode 100644 index 0000000..3cd0e5e --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_scoreboard_team.py @@ -0,0 +1,32 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketScoreboardTeam(Packet): + __slots__ = ( 'id', 'team', 'nameTagVisibility', 'friendlyFire', 'name', 'players', 'prefix', 'mode', 'color', 'collisionRule', 'suffix' ) + + team : str + nameTagVisibility : bytes + friendlyFire : bytes + name : bytes + players : bytes + prefix : bytes + mode : int + color : bytes + collisionRule : bytes + suffix : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 62, + 47 : 62, + 76 : 64 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, Short, ), 3 : ArrayType(String, Short, ), 4 : ArrayType(String, Short, ) }, None, ) ) ], + 47 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 76 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_sculk_vibration_signal.py b/aiocraft/mc/proto/play/clientbound/packet_sculk_vibration_signal.py new file mode 100644 index 0000000..c5b10c5 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_sculk_vibration_signal.py @@ -0,0 +1,28 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSculkVibrationSignal(Packet): + __slots__ = ( 'id', 'sourcePosition', 'destination', 'arrivalTicks', 'destinationIdentifier' ) + + sourcePosition : tuple + destination : bytes + arrivalTicks : int + destinationIdentifier : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 5, + 756 : 5, + 757 : 5, + 1073741839 : 5 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'sourcePosition', Position ), ( 'destinationIdentifier', String ), ( 'destination', SwitchType('destinationIdentifier', { 'block' : Position, 'entityId' : VarInt }, None, ) ), ( 'arrivalTicks', VarInt ) ], + 756 : [ ( 'sourcePosition', Position ), ( 'destinationIdentifier', String ), ( 'destination', SwitchType('destinationIdentifier', { 'block' : Position, 'entityId' : VarInt }, None, ) ), ( 'arrivalTicks', VarInt ) ], + 757 : [ ( 'sourcePosition', Position ), ( 'destinationIdentifier', String ), ( 'destination', SwitchType('destinationIdentifier', { 'block' : Position, 'entityId' : VarInt }, None, ) ), ( 'arrivalTicks', VarInt ) ], + 1073741839 : [ ( 'sourcePosition', Position ), ( 'destinationIdentifier', String ), ( 'destination', SwitchType('destinationIdentifier', { 'block' : Position, 'entityId' : VarInt }, None, ) ), ( 'arrivalTicks', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_select_advancement_tab.py b/aiocraft/mc/proto/play/clientbound/packet_select_advancement_tab.py new file mode 100644 index 0000000..0b7f0f3 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_select_advancement_tab.py @@ -0,0 +1,67 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSelectAdvancementTab(Packet): + __slots__ = ( 'id', 'id' ) + + id : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 335 : 54, + 338 : 55, + 340 : 55, + 351 : 56, + 393 : 58, + 401 : 58, + 402 : 58, + 403 : 58, + 404 : 58, + 477 : 60, + 480 : 60, + 490 : 60, + 498 : 60, + 573 : 61, + 575 : 61, + 578 : 61, + 709 : 61, + 734 : 60, + 735 : 60, + 736 : 60, + 751 : 60, + 755 : 64, + 756 : 64, + 757 : 64, + 1073741839 : 61 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 335 : [ ( 'id', OptionalType(String, ) ) ], + 338 : [ ( 'id', OptionalType(String, ) ) ], + 340 : [ ( 'id', OptionalType(String, ) ) ], + 351 : [ ( 'id', OptionalType(String, ) ) ], + 393 : [ ( 'id', OptionalType(String, ) ) ], + 401 : [ ( 'id', OptionalType(String, ) ) ], + 402 : [ ( 'id', OptionalType(String, ) ) ], + 403 : [ ( 'id', OptionalType(String, ) ) ], + 404 : [ ( 'id', OptionalType(String, ) ) ], + 477 : [ ( 'id', OptionalType(String, ) ) ], + 480 : [ ( 'id', OptionalType(String, ) ) ], + 490 : [ ( 'id', OptionalType(String, ) ) ], + 498 : [ ( 'id', OptionalType(String, ) ) ], + 573 : [ ( 'id', OptionalType(String, ) ) ], + 575 : [ ( 'id', OptionalType(String, ) ) ], + 578 : [ ( 'id', OptionalType(String, ) ) ], + 709 : [ ( 'id', OptionalType(String, ) ) ], + 734 : [ ( 'id', OptionalType(String, ) ) ], + 735 : [ ( 'id', OptionalType(String, ) ) ], + 736 : [ ( 'id', OptionalType(String, ) ) ], + 751 : [ ( 'id', OptionalType(String, ) ) ], + 755 : [ ( 'id', OptionalType(String, ) ) ], + 756 : [ ( 'id', OptionalType(String, ) ) ], + 757 : [ ( 'id', OptionalType(String, ) ) ], + 1073741839 : [ ( 'id', OptionalType(String, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_set_compression.py b/aiocraft/mc/proto/play/clientbound/packet_set_compression.py new file mode 100644 index 0000000..a136da9 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_set_compression.py @@ -0,0 +1,21 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetCompression(Packet): + __slots__ = ( 'id', 'threshold' ) + + threshold : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 70, + 76 : 29 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'threshold', VarInt ) ], + 76 : [ ( 'threshold', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_set_cooldown.py b/aiocraft/mc/proto/play/clientbound/packet_set_cooldown.py new file mode 100644 index 0000000..50db09a --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_set_cooldown.py @@ -0,0 +1,92 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetCooldown(Packet): + __slots__ = ( 'id', 'cooldownTicks', 'itemID' ) + + cooldownTicks : int + itemID : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 76 : 23, + 107 : 23, + 108 : 23, + 109 : 23, + 110 : 23, + 201 : 23, + 210 : 23, + 304 : 23, + 315 : 23, + 321 : 24, + 327 : 24, + 331 : 24, + 335 : 23, + 338 : 23, + 340 : 23, + 351 : 24, + 393 : 24, + 401 : 24, + 402 : 24, + 403 : 24, + 404 : 24, + 477 : 23, + 480 : 23, + 490 : 23, + 498 : 23, + 573 : 24, + 575 : 24, + 578 : 24, + 709 : 24, + 734 : 23, + 735 : 23, + 736 : 23, + 751 : 22, + 755 : 23, + 756 : 23, + 757 : 23, + 1073741839 : 23 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 76 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 107 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 108 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 109 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 110 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 201 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 210 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 304 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 315 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 321 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 327 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 331 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 335 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 338 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 340 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 351 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 393 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 401 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 402 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 403 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 404 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 477 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 480 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 490 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 498 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 573 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 575 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 578 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 709 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 734 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 735 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 736 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 751 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 755 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 756 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 757 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ], + 1073741839 : [ ( 'itemID', VarInt ), ( 'cooldownTicks', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_set_passengers.py b/aiocraft/mc/proto/play/clientbound/packet_set_passengers.py new file mode 100644 index 0000000..783b7a2 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_set_passengers.py @@ -0,0 +1,90 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetPassengers(Packet): + __slots__ = ( 'id', 'passengers', 'entityId' ) + + passengers : list + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 107 : 64, + 108 : 64, + 109 : 64, + 110 : 64, + 201 : 64, + 210 : 64, + 304 : 64, + 315 : 64, + 321 : 66, + 327 : 66, + 331 : 66, + 335 : 66, + 338 : 67, + 340 : 67, + 351 : 68, + 393 : 70, + 401 : 70, + 402 : 70, + 403 : 70, + 404 : 70, + 477 : 74, + 480 : 74, + 490 : 74, + 498 : 74, + 573 : 75, + 575 : 75, + 578 : 75, + 709 : 76, + 734 : 75, + 735 : 75, + 736 : 75, + 751 : 75, + 755 : 84, + 756 : 84, + 757 : 84, + 1073741839 : 76 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 107 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 108 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 109 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 110 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 201 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 210 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 304 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 315 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 321 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 327 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 331 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 335 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 338 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 340 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 351 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 393 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 401 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 402 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 403 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 404 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 477 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 480 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 490 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 498 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 573 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 575 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 578 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 709 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 734 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 735 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 736 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 751 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 755 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 756 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 757 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'passengers', ArrayType(VarInt, VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_set_slot.py b/aiocraft/mc/proto/play/clientbound/packet_set_slot.py new file mode 100644 index 0000000..f8d6fa8 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_set_slot.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetSlot(Packet): + __slots__ = ( 'id', 'stateId', 'item', 'slot', 'windowId' ) + + stateId : int + item : dict + slot : int + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 47, + 47 : 47, + 76 : 22, + 107 : 22, + 108 : 22, + 109 : 22, + 110 : 22, + 201 : 22, + 210 : 22, + 304 : 22, + 315 : 22, + 321 : 23, + 327 : 23, + 331 : 23, + 335 : 22, + 338 : 22, + 340 : 22, + 351 : 23, + 393 : 23, + 401 : 23, + 402 : 23, + 403 : 23, + 404 : 23, + 477 : 22, + 480 : 22, + 490 : 22, + 498 : 22, + 573 : 23, + 575 : 23, + 578 : 23, + 709 : 23, + 734 : 22, + 735 : 22, + 736 : 22, + 751 : 21, + 755 : 22, + 756 : 22, + 757 : 22, + 1073741839 : 22 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 47 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 76 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 107 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 108 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 109 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 110 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 201 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 210 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 304 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 315 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 321 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 327 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 331 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 335 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 338 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 340 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 351 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 393 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 401 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 402 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 403 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 404 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 477 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 480 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 490 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 498 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 573 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 575 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 578 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 709 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 734 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 735 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 736 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 751 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 755 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ], + 756 : [ ( 'windowId', Byte ), ( 'stateId', VarInt ), ( 'slot', Short ), ( 'item', Slot ) ], + 757 : [ ( 'windowId', Byte ), ( 'stateId', VarInt ), ( 'slot', Short ), ( 'item', Slot ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'item', Slot ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_set_title_subtitle.py b/aiocraft/mc/proto/play/clientbound/packet_set_title_subtitle.py new file mode 100644 index 0000000..505462f --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_set_title_subtitle.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetTitleSubtitle(Packet): + __slots__ = ( 'id', 'text' ) + + text : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 87, + 756 : 87, + 757 : 88 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'text', String ) ], + 756 : [ ( 'text', String ) ], + 757 : [ ( 'text', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_set_title_text.py b/aiocraft/mc/proto/play/clientbound/packet_set_title_text.py new file mode 100644 index 0000000..ed0fe42 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_set_title_text.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetTitleText(Packet): + __slots__ = ( 'id', 'text' ) + + text : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 89, + 756 : 89, + 757 : 90 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'text', String ) ], + 756 : [ ( 'text', String ) ], + 757 : [ ( 'text', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_set_title_time.py b/aiocraft/mc/proto/play/clientbound/packet_set_title_time.py new file mode 100644 index 0000000..a352fb2 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_set_title_time.py @@ -0,0 +1,25 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetTitleTime(Packet): + __slots__ = ( 'id', 'fadeIn', 'fadeOut', 'stay' ) + + fadeIn : int + fadeOut : int + stay : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 90, + 756 : 90, + 757 : 91 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'fadeIn', Int ), ( 'stay', Int ), ( 'fadeOut', Int ) ], + 756 : [ ( 'fadeIn', Int ), ( 'stay', Int ), ( 'fadeOut', Int ) ], + 757 : [ ( 'fadeIn', Int ), ( 'stay', Int ), ( 'fadeOut', Int ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_simulation_distance.py b/aiocraft/mc/proto/play/clientbound/packet_simulation_distance.py new file mode 100644 index 0000000..ec6e02f --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_simulation_distance.py @@ -0,0 +1,19 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSimulationDistance(Packet): + __slots__ = ( 'id', 'distance' ) + + distance : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 757 : 87 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 757 : [ ( 'distance', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_sound_effect.py b/aiocraft/mc/proto/play/clientbound/packet_sound_effect.py new file mode 100644 index 0000000..5741eb9 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_sound_effect.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSoundEffect(Packet): + __slots__ = ( 'id', 'x', 'volume', 'y', 'z', 'soundId', 'pitch', 'parrottedEntityType', 'soundCategory' ) + + x : int + volume : float + y : int + z : int + soundId : int + pitch : Union[float,int] + parrottedEntityType : str + soundCategory : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 107 : 71, + 108 : 71, + 109 : 71, + 110 : 70, + 201 : 70, + 210 : 70, + 304 : 70, + 315 : 70, + 321 : 72, + 327 : 72, + 331 : 72, + 335 : 72, + 338 : 73, + 340 : 73, + 351 : 75, + 393 : 77, + 401 : 77, + 402 : 77, + 403 : 77, + 404 : 77, + 477 : 81, + 480 : 81, + 490 : 81, + 498 : 81, + 573 : 82, + 575 : 82, + 578 : 82, + 709 : 82, + 734 : 81, + 735 : 81, + 736 : 81, + 751 : 81, + 755 : 92, + 756 : 92, + 757 : 93, + 1073741839 : 82 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 107 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 108 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 109 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 110 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Byte ) ], + 201 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 210 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 304 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 315 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 321 : [ ( 'soundCategory', VarInt ), ( 'soundId', VarInt ), ( 'parrottedEntityType', String ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 327 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 331 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 335 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 338 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 340 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 351 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 393 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 401 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 402 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 403 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 404 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 477 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 480 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 490 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 498 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 573 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 575 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 578 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 709 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 734 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 735 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 736 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 751 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 755 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 756 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 757 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ], + 1073741839 : [ ( 'soundId', VarInt ), ( 'soundCategory', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'volume', Float ), ( 'pitch', Float ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_spawn_entity.py b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity.py new file mode 100644 index 0000000..5322f92 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity.py @@ -0,0 +1,107 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSpawnEntity(Packet): + __slots__ = ( 'id', 'objectUUID', 'objectData', 'velocityX', 'entityUUID', 'x', 'yaw', 'entityId', 'y', 'z', 'type', 'pitch', 'velocityY', 'velocityZ' ) + + objectUUID : str + objectData : Union[dict,int] + velocityX : int + entityUUID : str + x : Union[float,int] + yaw : int + entityId : int + y : Union[float,int] + z : Union[float,int] + type : int + pitch : int + velocityY : int + velocityZ : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 14, + 47 : 14, + 76 : 0, + 107 : 0, + 108 : 0, + 109 : 0, + 110 : 0, + 201 : 0, + 210 : 0, + 304 : 0, + 315 : 0, + 321 : 0, + 327 : 0, + 331 : 0, + 335 : 0, + 338 : 0, + 340 : 0, + 351 : 0, + 393 : 0, + 401 : 0, + 402 : 0, + 403 : 0, + 404 : 0, + 477 : 0, + 480 : 0, + 490 : 0, + 498 : 0, + 573 : 0, + 575 : 0, + 578 : 0, + 709 : 0, + 734 : 0, + 735 : 0, + 736 : 0, + 751 : 0, + 755 : 0, + 756 : 0, + 757 : 0, + 1073741839 : 0 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', StructType(( 'intField', Int ), ( 'velocityX', SwitchType('intField', { 0 : Void }, Short, ) ), ( 'velocityY', SwitchType('intField', { 0 : Void }, Short, ) ), ( 'velocityZ', SwitchType('intField', { 0 : Void }, Short, ) ), ) ) ], + 47 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', StructType(( 'intField', Int ), ( 'velocityX', SwitchType('intField', { 0 : Void }, Short, ) ), ( 'velocityY', SwitchType('intField', { 0 : Void }, Short, ) ), ( 'velocityZ', SwitchType('intField', { 0 : Void }, Short, ) ), ) ) ], + 76 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 107 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 108 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 109 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 110 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 201 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 210 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 304 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 315 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 321 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 327 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 331 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 335 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 338 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 340 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 351 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 393 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 401 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 402 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 403 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 404 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 477 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 480 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 490 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 498 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 573 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 575 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 578 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 709 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 734 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 735 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 736 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 751 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 755 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 756 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 757 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'objectUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'pitch', Byte ), ( 'yaw', Byte ), ( 'objectData', Int ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_experience_orb.py b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_experience_orb.py new file mode 100644 index 0000000..30a4c01 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_experience_orb.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSpawnEntityExperienceOrb(Packet): + __slots__ = ( 'id', 'count', 'x', 'entityId', 'y', 'z' ) + + count : int + x : Union[float,int] + entityId : int + y : Union[float,int] + z : Union[float,int] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 17, + 47 : 17, + 76 : 1, + 107 : 1, + 108 : 1, + 109 : 1, + 110 : 1, + 201 : 1, + 210 : 1, + 304 : 1, + 315 : 1, + 321 : 1, + 327 : 1, + 331 : 1, + 335 : 1, + 338 : 1, + 340 : 1, + 351 : 1, + 393 : 1, + 401 : 1, + 402 : 1, + 403 : 1, + 404 : 1, + 477 : 1, + 480 : 1, + 490 : 1, + 498 : 1, + 573 : 1, + 575 : 1, + 578 : 1, + 709 : 1, + 734 : 1, + 735 : 1, + 736 : 1, + 751 : 1, + 755 : 1, + 756 : 1, + 757 : 1, + 1073741839 : 1 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'count', Short ) ], + 47 : [ ( 'entityId', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'count', Short ) ], + 76 : [ ( 'entityId', VarInt ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'count', Short ) ], + 107 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 108 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 109 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 110 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 201 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 210 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 304 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 315 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 321 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 327 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 331 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 335 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 338 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 340 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 351 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 393 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 401 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 402 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 403 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 404 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 477 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 480 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 490 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 498 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 573 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 575 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 578 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 709 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 734 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 735 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 736 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 751 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 755 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 756 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 757 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'count', Short ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_living.py b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_living.py new file mode 100644 index 0000000..1ac783d --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_living.py @@ -0,0 +1,107 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSpawnEntityLiving(Packet): + __slots__ = ( 'id', 'headPitch', 'metadata', 'velocityX', 'entityUUID', 'x', 'yaw', 'entityId', 'y', 'z', 'type', 'pitch', 'velocityY', 'velocityZ' ) + + headPitch : int + metadata : bytes + velocityX : int + entityUUID : str + x : Union[float,int] + yaw : int + entityId : int + y : Union[float,int] + z : Union[float,int] + type : int + pitch : int + velocityY : int + velocityZ : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 15, + 47 : 15, + 76 : 3, + 107 : 3, + 108 : 3, + 109 : 3, + 110 : 3, + 201 : 3, + 210 : 3, + 304 : 3, + 315 : 3, + 321 : 3, + 327 : 3, + 331 : 3, + 335 : 3, + 338 : 3, + 340 : 3, + 351 : 3, + 393 : 3, + 401 : 3, + 402 : 3, + 403 : 3, + 404 : 3, + 477 : 3, + 480 : 3, + 490 : 3, + 498 : 3, + 573 : 3, + 575 : 3, + 578 : 3, + 709 : 3, + 734 : 2, + 735 : 2, + 736 : 2, + 751 : 2, + 755 : 2, + 756 : 2, + 757 : 2, + 1073741839 : 2 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 47 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 76 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 107 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 108 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 109 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 110 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 201 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 210 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 304 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 315 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 321 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 327 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 331 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 335 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 338 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 340 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 351 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 393 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 401 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 402 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 403 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 404 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 477 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 480 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 490 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 498 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ), ( 'metadata', EntityMetadata ) ], + 573 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 575 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 578 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 709 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 734 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 735 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 736 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 751 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 755 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 756 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 757 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'type', VarInt ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Byte ), ( 'pitch', Byte ), ( 'headPitch', Byte ), ( 'velocityX', Short ), ( 'velocityY', Short ), ( 'velocityZ', Short ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_painting.py b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_painting.py new file mode 100644 index 0000000..d37d9a3 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_painting.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSpawnEntityPainting(Packet): + __slots__ = ( 'id', 'title', 'entityUUID', 'direction', 'entityId', 'location' ) + + title : Union[str,int] + entityUUID : str + direction : int + entityId : int + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 16, + 47 : 16, + 76 : 4, + 107 : 4, + 108 : 4, + 109 : 4, + 110 : 4, + 201 : 4, + 210 : 4, + 304 : 4, + 315 : 4, + 321 : 4, + 327 : 4, + 331 : 4, + 335 : 4, + 338 : 4, + 340 : 4, + 351 : 4, + 393 : 4, + 401 : 4, + 402 : 4, + 403 : 4, + 404 : 4, + 477 : 4, + 480 : 4, + 490 : 4, + 498 : 4, + 573 : 4, + 575 : 4, + 578 : 4, + 709 : 4, + 734 : 3, + 735 : 3, + 736 : 3, + 751 : 3, + 755 : 3, + 756 : 3, + 757 : 3, + 1073741839 : 3 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', VarInt ), ( 'title', String ), ( 'location', TrailingData ), ( 'direction', Int ) ], + 47 : [ ( 'entityId', VarInt ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 76 : [ ( 'entityId', VarInt ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 107 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 108 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 109 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 110 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 201 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 210 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 304 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 315 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 321 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 327 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 331 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 335 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 338 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 340 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 351 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', String ), ( 'location', Position ), ( 'direction', Byte ) ], + 393 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 401 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 402 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 403 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 404 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 477 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 480 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 490 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 498 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 573 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 575 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 578 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 709 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 734 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 735 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 736 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 751 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 755 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 756 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 757 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'entityUUID', UUID ), ( 'title', VarInt ), ( 'location', Position ), ( 'direction', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_weather.py b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_weather.py new file mode 100644 index 0000000..78d2025 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_spawn_entity_weather.py @@ -0,0 +1,83 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSpawnEntityWeather(Packet): + __slots__ = ( 'id', 'x', 'entityId', 'y', 'z', 'type' ) + + x : Union[float,int] + entityId : int + y : Union[float,int] + z : Union[float,int] + type : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 44, + 47 : 44, + 76 : 2, + 107 : 2, + 108 : 2, + 109 : 2, + 110 : 2, + 201 : 2, + 210 : 2, + 304 : 2, + 315 : 2, + 321 : 2, + 327 : 2, + 331 : 2, + 335 : 2, + 338 : 2, + 340 : 2, + 351 : 2, + 393 : 2, + 401 : 2, + 402 : 2, + 403 : 2, + 404 : 2, + 477 : 2, + 480 : 2, + 490 : 2, + 498 : 2, + 573 : 2, + 575 : 2, + 578 : 2, + 709 : 2 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ) ], + 47 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ) ], + 76 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Int ), ( 'y', Int ), ( 'z', Int ) ], + 107 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 108 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 109 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 110 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 201 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 210 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 304 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 315 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 321 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 327 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 331 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 335 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 338 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 340 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 351 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 393 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 401 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 402 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 403 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 404 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 477 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 480 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 490 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 498 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 573 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 575 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 578 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ], + 709 : [ ( 'entityId', VarInt ), ( 'type', Byte ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_spawn_position.py b/aiocraft/mc/proto/play/clientbound/packet_spawn_position.py new file mode 100644 index 0000000..32cd198 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_spawn_position.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSpawnPosition(Packet): + __slots__ = ( 'id', 'angle', 'location' ) + + angle : float + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 5, + 47 : 5, + 76 : 66, + 107 : 67, + 108 : 67, + 109 : 67, + 110 : 67, + 201 : 67, + 210 : 67, + 304 : 67, + 315 : 67, + 321 : 69, + 327 : 69, + 331 : 69, + 335 : 69, + 338 : 70, + 340 : 70, + 351 : 71, + 393 : 73, + 401 : 73, + 402 : 73, + 403 : 73, + 404 : 73, + 477 : 77, + 480 : 77, + 490 : 77, + 498 : 77, + 573 : 78, + 575 : 78, + 578 : 78, + 709 : 67, + 734 : 66, + 735 : 66, + 736 : 66, + 751 : 66, + 755 : 75, + 756 : 75, + 757 : 75, + 1073741839 : 67 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'location', TrailingData ) ], + 47 : [ ( 'location', Position ) ], + 76 : [ ( 'location', Position ) ], + 107 : [ ( 'location', Position ) ], + 108 : [ ( 'location', Position ) ], + 109 : [ ( 'location', Position ) ], + 110 : [ ( 'location', Position ) ], + 201 : [ ( 'location', Position ) ], + 210 : [ ( 'location', Position ) ], + 304 : [ ( 'location', Position ) ], + 315 : [ ( 'location', Position ) ], + 321 : [ ( 'location', Position ) ], + 327 : [ ( 'location', Position ) ], + 331 : [ ( 'location', Position ) ], + 335 : [ ( 'location', Position ) ], + 338 : [ ( 'location', Position ) ], + 340 : [ ( 'location', Position ) ], + 351 : [ ( 'location', Position ) ], + 393 : [ ( 'location', Position ) ], + 401 : [ ( 'location', Position ) ], + 402 : [ ( 'location', Position ) ], + 403 : [ ( 'location', Position ) ], + 404 : [ ( 'location', Position ) ], + 477 : [ ( 'location', Position ) ], + 480 : [ ( 'location', Position ) ], + 490 : [ ( 'location', Position ) ], + 498 : [ ( 'location', Position ) ], + 573 : [ ( 'location', Position ) ], + 575 : [ ( 'location', Position ) ], + 578 : [ ( 'location', Position ) ], + 709 : [ ( 'location', Position ) ], + 734 : [ ( 'location', Position ) ], + 735 : [ ( 'location', Position ) ], + 736 : [ ( 'location', Position ) ], + 751 : [ ( 'location', Position ) ], + 755 : [ ( 'location', Position ), ( 'angle', Float ) ], + 756 : [ ( 'location', Position ), ( 'angle', Float ) ], + 757 : [ ( 'location', Position ), ( 'angle', Float ) ], + 1073741839 : [ ( 'location', Position ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_statistics.py b/aiocraft/mc/proto/play/clientbound/packet_statistics.py new file mode 100644 index 0000000..e9b1141 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_statistics.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketStatistics(Packet): + __slots__ = ( 'id', 'entries' ) + + entries : list + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 55, + 47 : 55, + 76 : 7, + 107 : 7, + 108 : 7, + 109 : 7, + 110 : 7, + 201 : 7, + 210 : 7, + 304 : 7, + 315 : 7, + 321 : 7, + 327 : 7, + 331 : 7, + 335 : 7, + 338 : 7, + 340 : 7, + 351 : 7, + 393 : 7, + 401 : 7, + 402 : 7, + 403 : 7, + 404 : 7, + 477 : 7, + 480 : 7, + 490 : 7, + 498 : 7, + 573 : 7, + 575 : 7, + 578 : 7, + 709 : 7, + 734 : 6, + 735 : 6, + 736 : 6, + 751 : 6, + 755 : 7, + 756 : 7, + 757 : 7, + 1073741839 : 7 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 47 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 76 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 107 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 108 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 109 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 110 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 201 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 210 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 304 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 315 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 321 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 327 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 331 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 335 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 338 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 340 : [ ( 'entries', ArrayType(StructType(( 'name', String ), ( 'value', VarInt ), ), VarInt, ) ) ], + 351 : [ ( 'entries', ArrayType(StructType(( 'unknown1', VarInt ), ( 'unknown2', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 393 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 401 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 402 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 403 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 404 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 477 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 480 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 490 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 498 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 573 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 575 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 578 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 709 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 734 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 735 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 736 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 751 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 755 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 756 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 757 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ], + 1073741839 : [ ( 'entries', ArrayType(StructType(( 'categoryId', VarInt ), ( 'statisticId', VarInt ), ( 'value', VarInt ), ), VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_stop_sound.py b/aiocraft/mc/proto/play/clientbound/packet_stop_sound.py new file mode 100644 index 0000000..a3deb9b --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_stop_sound.py @@ -0,0 +1,63 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketStopSound(Packet): + __slots__ = ( 'id', 'sound', 'source', 'flags' ) + + sound : bytes + source : bytes + flags : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 351 : 74, + 393 : 76, + 401 : 76, + 402 : 76, + 403 : 76, + 404 : 76, + 477 : 82, + 480 : 82, + 490 : 82, + 498 : 82, + 573 : 83, + 575 : 83, + 578 : 83, + 709 : 83, + 734 : 82, + 735 : 82, + 736 : 82, + 751 : 82, + 755 : 93, + 756 : 93, + 757 : 94, + 1073741839 : 83 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 351 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 393 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 401 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 402 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 403 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 404 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 477 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 480 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 490 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 498 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 573 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 575 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 578 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 709 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 734 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 735 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 736 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 751 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 755 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 756 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 757 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ], + 1073741839 : [ ( 'flags', Byte ), ( 'source', SwitchType('flags', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'sound', SwitchType('flags', { 2 : String, 3 : String }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_tab_complete.py b/aiocraft/mc/proto/play/clientbound/packet_tab_complete.py new file mode 100644 index 0000000..539db26 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_tab_complete.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTabComplete(Packet): + __slots__ = ( 'id', 'start', 'transactionId', 'matches', 'length' ) + + start : int + transactionId : int + matches : list + length : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 58, + 47 : 58, + 76 : 14, + 107 : 14, + 108 : 14, + 109 : 14, + 110 : 14, + 201 : 14, + 210 : 14, + 304 : 14, + 315 : 14, + 321 : 15, + 327 : 15, + 331 : 15, + 335 : 14, + 338 : 14, + 340 : 14, + 351 : 16, + 393 : 16, + 401 : 16, + 402 : 16, + 403 : 16, + 404 : 16, + 477 : 16, + 480 : 16, + 490 : 16, + 498 : 16, + 573 : 17, + 575 : 17, + 578 : 17, + 709 : 17, + 734 : 16, + 735 : 16, + 736 : 16, + 751 : 15, + 755 : 17, + 756 : 17, + 757 : 17, + 1073741839 : 16 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 47 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 76 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 107 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 108 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 109 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 110 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 201 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 210 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 304 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 315 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 321 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 327 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 331 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 335 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 338 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 340 : [ ( 'matches', ArrayType(String, VarInt, ) ) ], + 351 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(String, VarInt, ) ) ], + 393 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 401 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 402 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 403 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 404 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 477 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 480 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 490 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 498 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 573 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 575 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 578 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 709 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 734 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 735 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 736 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 751 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 755 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 756 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 757 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ], + 1073741839 : [ ( 'transactionId', VarInt ), ( 'start', VarInt ), ( 'length', VarInt ), ( 'matches', ArrayType(StructType(( 'match', String ), ( 'tooltip', OptionalType(String, ) ), ), VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_tags.py b/aiocraft/mc/proto/play/clientbound/packet_tags.py new file mode 100644 index 0000000..986edf5 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_tags.py @@ -0,0 +1,65 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTags(Packet): + __slots__ = ( 'id', 'itemTags', 'tags', 'entityTags', 'blockTags', 'fluidTags' ) + + itemTags : bytes + tags : list + entityTags : bytes + blockTags : bytes + fluidTags : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 351 : 83, + 393 : 85, + 401 : 85, + 402 : 85, + 403 : 85, + 404 : 85, + 477 : 91, + 480 : 91, + 490 : 91, + 498 : 91, + 573 : 92, + 575 : 92, + 578 : 92, + 709 : 92, + 734 : 91, + 735 : 91, + 736 : 91, + 751 : 91, + 755 : 102, + 756 : 102, + 757 : 103, + 1073741839 : 92 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 351 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ) ], + 393 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ) ], + 401 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ) ], + 402 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ) ], + 403 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ) ], + 404 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ) ], + 477 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 480 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 490 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 498 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 573 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 575 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 578 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 709 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 734 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 735 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 736 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 751 : [ ( 'blockTags', TrailingData ), ( 'itemTags', TrailingData ), ( 'fluidTags', TrailingData ), ( 'entityTags', TrailingData ) ], + 755 : [ ( 'tags', ArrayType(StructType(( 'tagType', String ), ( 'tags', TrailingData ), ), VarInt, ) ) ], + 756 : [ ( 'tags', ArrayType(StructType(( 'tagType', String ), ( 'tags', TrailingData ), ), VarInt, ) ) ], + 757 : [ ( 'tags', ArrayType(StructType(( 'tagType', String ), ( 'tags', TrailingData ), ), VarInt, ) ) ], + 1073741839 : [ ( 'tags', ArrayType(StructType(( 'tagType', String ), ( 'tags', TrailingData ), ), VarInt, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_teams.py b/aiocraft/mc/proto/play/clientbound/packet_teams.py new file mode 100644 index 0000000..143a478 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_teams.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTeams(Packet): + __slots__ = ( 'id', 'team', 'nameTagVisibility', 'friendlyFire', 'name', 'formatting', 'players', 'prefix', 'mode', 'color', 'collisionRule', 'suffix' ) + + team : str + nameTagVisibility : bytes + friendlyFire : bytes + name : bytes + formatting : bytes + players : bytes + prefix : bytes + mode : int + color : bytes + collisionRule : bytes + suffix : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 107 : 65, + 108 : 65, + 109 : 65, + 110 : 65, + 201 : 65, + 210 : 65, + 304 : 65, + 315 : 65, + 321 : 67, + 327 : 67, + 331 : 67, + 335 : 67, + 338 : 68, + 340 : 68, + 351 : 69, + 393 : 71, + 401 : 71, + 402 : 71, + 403 : 71, + 404 : 71, + 477 : 75, + 480 : 75, + 490 : 75, + 498 : 75, + 573 : 76, + 575 : 76, + 578 : 76, + 709 : 77, + 734 : 76, + 735 : 76, + 736 : 76, + 751 : 76, + 755 : 85, + 756 : 85, + 757 : 85, + 1073741839 : 77 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 107 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 108 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 109 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 110 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 201 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 210 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 304 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 315 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 321 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 327 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 331 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 335 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 338 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 340 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 351 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'color', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 393 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 401 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 402 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ) ], + 403 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ) ], + 404 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 477 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 480 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 490 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 498 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 573 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 575 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 578 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 709 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 734 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 735 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 736 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 751 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 755 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 756 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 757 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ], + 1073741839 : [ ( 'team', String ), ( 'mode', Byte ), ( 'name', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'friendlyFire', SwitchType('mode', { 0 : Byte, 2 : Byte }, None, ) ), ( 'nameTagVisibility', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'collisionRule', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'formatting', SwitchType('mode', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'prefix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'suffix', SwitchType('mode', { 0 : String, 2 : String }, None, ) ), ( 'players', SwitchType('mode', { 0 : ArrayType(String, VarInt, ), 3 : ArrayType(String, VarInt, ), 4 : ArrayType(String, VarInt, ) }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_tile_entity_data.py b/aiocraft/mc/proto/play/clientbound/packet_tile_entity_data.py new file mode 100644 index 0000000..6f78d1b --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_tile_entity_data.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTileEntityData(Packet): + __slots__ = ( 'id', 'action', 'nbtData', 'location' ) + + action : int + nbtData : bytes + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 53, + 47 : 53, + 76 : 9, + 107 : 9, + 108 : 9, + 109 : 9, + 110 : 9, + 201 : 9, + 210 : 9, + 304 : 9, + 315 : 9, + 321 : 10, + 327 : 10, + 331 : 10, + 335 : 9, + 338 : 9, + 340 : 9, + 351 : 9, + 393 : 9, + 401 : 9, + 402 : 9, + 403 : 9, + 404 : 9, + 477 : 9, + 480 : 9, + 490 : 9, + 498 : 9, + 573 : 10, + 575 : 10, + 578 : 10, + 709 : 10, + 734 : 9, + 735 : 9, + 736 : 9, + 751 : 9, + 755 : 10, + 756 : 10, + 757 : 10, + 1073741839 : 10 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'location', TrailingData ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 47 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 76 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 107 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 108 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 109 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 110 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 201 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 210 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 304 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 315 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 321 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 327 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 331 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 335 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 338 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 340 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 351 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 393 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 401 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 402 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 403 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 404 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 477 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 480 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 490 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 498 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 573 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 575 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 578 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 709 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 734 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 735 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 736 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 751 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 755 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 756 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ], + 757 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'nbtData', TrailingData ) ], + 1073741839 : [ ( 'location', Position ), ( 'action', Byte ), ( 'nbtData', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_title.py b/aiocraft/mc/proto/play/clientbound/packet_title.py new file mode 100644 index 0000000..c57a058 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_title.py @@ -0,0 +1,91 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTitle(Packet): + __slots__ = ( 'id', 'fadeIn', 'action', 'text', 'stay', 'fadeOut' ) + + fadeIn : bytes + action : int + text : bytes + stay : bytes + fadeOut : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 69, + 76 : 68, + 107 : 69, + 108 : 69, + 109 : 69, + 110 : 69, + 201 : 69, + 210 : 69, + 304 : 69, + 315 : 69, + 321 : 71, + 327 : 71, + 331 : 71, + 335 : 71, + 338 : 72, + 340 : 72, + 351 : 73, + 393 : 75, + 401 : 75, + 402 : 75, + 403 : 75, + 404 : 75, + 477 : 79, + 480 : 79, + 490 : 79, + 498 : 79, + 573 : 80, + 575 : 80, + 578 : 80, + 709 : 80, + 734 : 79, + 735 : 79, + 736 : 79, + 751 : 79, + 1073741839 : 80 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 76 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 107 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 108 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 109 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 110 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 201 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 210 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 304 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 2 : Int }, None, ) ), ( 'stay', SwitchType('action', { 2 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 2 : Int }, None, ) ) ], + 315 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 321 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 327 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 331 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 335 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 338 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 340 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 351 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 393 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 401 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 402 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 403 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 404 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 477 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 480 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 490 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 498 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 573 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 575 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 578 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 709 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 734 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 735 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 736 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 751 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ], + 1073741839 : [ ( 'action', VarInt ), ( 'text', SwitchType('action', { 0 : String, 1 : String, 2 : String }, None, ) ), ( 'fadeIn', SwitchType('action', { 3 : Int }, None, ) ), ( 'stay', SwitchType('action', { 3 : Int }, None, ) ), ( 'fadeOut', SwitchType('action', { 3 : Int }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_trade_list.py b/aiocraft/mc/proto/play/clientbound/packet_trade_list.py new file mode 100644 index 0000000..3a45d32 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_trade_list.py @@ -0,0 +1,54 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTradeList(Packet): + __slots__ = ( 'id', 'experience', 'isRegularVillager', 'canRestock', 'windowId', 'trades', 'villagerLevel' ) + + experience : int + isRegularVillager : bool + canRestock : bool + windowId : int + trades : list + villagerLevel : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 39, + 480 : 39, + 490 : 39, + 498 : 39, + 573 : 40, + 575 : 40, + 578 : 40, + 709 : 40, + 734 : 39, + 735 : 39, + 736 : 39, + 751 : 38, + 755 : 40, + 756 : 40, + 757 : 40, + 1073741839 : 39 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ) ], + 480 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ) ], + 490 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 498 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 573 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 575 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 578 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 709 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 734 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 735 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 736 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 751 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 755 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 756 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 757 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ], + 1073741839 : [ ( 'windowId', VarInt ), ( 'trades', ArrayType(StructType(( 'inputItem1', Slot ), ( 'outputItem', Slot ), ( 'inputItem2', OptionalType(Slot, ) ), ( 'tradeDisabled', Boolean ), ( 'nbTradeUses', Int ), ( 'maximumNbTradeUses', Int ), ( 'xp', Int ), ( 'specialPrice', Int ), ( 'priceMultiplier', Float ), ( 'demand', Int ), ), Byte, ) ), ( 'villagerLevel', VarInt ), ( 'experience', VarInt ), ( 'isRegularVillager', Boolean ), ( 'canRestock', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_transaction.py b/aiocraft/mc/proto/play/clientbound/packet_transaction.py new file mode 100644 index 0000000..e0511ef --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_transaction.py @@ -0,0 +1,91 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTransaction(Packet): + __slots__ = ( 'id', 'action', 'accepted', 'windowId' ) + + action : int + accepted : bool + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 50, + 47 : 50, + 76 : 17, + 107 : 17, + 108 : 17, + 109 : 17, + 110 : 17, + 201 : 17, + 210 : 17, + 304 : 17, + 315 : 17, + 321 : 18, + 327 : 18, + 331 : 18, + 335 : 17, + 338 : 17, + 340 : 17, + 351 : 18, + 393 : 18, + 401 : 18, + 402 : 18, + 403 : 18, + 404 : 18, + 477 : 18, + 480 : 18, + 490 : 18, + 498 : 18, + 573 : 19, + 575 : 19, + 578 : 19, + 709 : 19, + 734 : 18, + 735 : 18, + 736 : 18, + 751 : 17, + 1073741839 : 18 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 47 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 76 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 107 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 108 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 109 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 110 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 201 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 210 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 304 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 315 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 321 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 327 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 331 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 335 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 338 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 340 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 351 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 393 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 401 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 402 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 403 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 404 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 477 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 480 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 490 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 498 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 573 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 575 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 578 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 709 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 734 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 735 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 736 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 751 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_unload_chunk.py b/aiocraft/mc/proto/play/clientbound/packet_unload_chunk.py new file mode 100644 index 0000000..94e00e9 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_unload_chunk.py @@ -0,0 +1,92 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUnloadChunk(Packet): + __slots__ = ( 'id', 'chunkX', 'chunkZ' ) + + chunkX : int + chunkZ : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 76 : 28, + 107 : 29, + 108 : 29, + 109 : 29, + 110 : 29, + 201 : 29, + 210 : 29, + 304 : 29, + 315 : 29, + 321 : 30, + 327 : 30, + 331 : 30, + 335 : 29, + 338 : 29, + 340 : 29, + 351 : 30, + 393 : 31, + 401 : 31, + 402 : 31, + 403 : 31, + 404 : 31, + 477 : 29, + 480 : 29, + 490 : 29, + 498 : 29, + 573 : 30, + 575 : 30, + 578 : 30, + 709 : 30, + 734 : 29, + 735 : 29, + 736 : 29, + 751 : 28, + 755 : 29, + 756 : 29, + 757 : 29, + 1073741839 : 29 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 76 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 107 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 108 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 109 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 110 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 201 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 210 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 304 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 315 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 321 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 327 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 331 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 335 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 338 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 340 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 351 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 393 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 401 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 402 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 403 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 404 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 477 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 480 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 490 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 498 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 573 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 575 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 578 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 709 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 734 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 735 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 736 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 751 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 755 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 756 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 757 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ], + 1073741839 : [ ( 'chunkX', Int ), ( 'chunkZ', Int ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_unlock_recipes.py b/aiocraft/mc/proto/play/clientbound/packet_unlock_recipes.py new file mode 100644 index 0000000..b31ca82 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_unlock_recipes.py @@ -0,0 +1,85 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUnlockRecipes(Packet): + __slots__ = ( 'id', 'filteringCraftable', 'action', 'filteringSmeltable', 'smeltingBookOpen', 'smokerBookOpen', 'notification', 'blastFurnaceOpen', 'recipes1', 'recipes2', 'filteringBlastFurnace', 'craftingBookOpen', 'recipes', 'filteringSmoker' ) + + filteringCraftable : bool + action : int + filteringSmeltable : bool + smeltingBookOpen : bool + smokerBookOpen : bool + notification : bool + blastFurnaceOpen : bool + recipes1 : list + recipes2 : Union[bytes,list] + filteringBlastFurnace : bool + craftingBookOpen : bool + recipes : list + filteringSmoker : bool + + _state : int = 3 + + _ids : Dict[int, int] = { + 321 : 49, + 327 : 49, + 331 : 49, + 335 : 48, + 338 : 49, + 340 : 49, + 351 : 50, + 393 : 52, + 401 : 52, + 402 : 52, + 403 : 52, + 404 : 52, + 477 : 54, + 480 : 54, + 490 : 54, + 498 : 54, + 573 : 55, + 575 : 55, + 578 : 55, + 709 : 55, + 734 : 54, + 735 : 54, + 736 : 54, + 751 : 53, + 755 : 57, + 756 : 57, + 757 : 57, + 1073741839 : 54 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 321 : [ ( 'notification', Boolean ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'recipes', ArrayType(StructType(( 'identifier', String ), ( 'isUnlocked', Boolean ), ( 'hasBeenDisplayed', Boolean ), ), VarInt, ) ) ], + 327 : [ ( 'action', Short ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'recipes1', ArrayType(Int, VarInt, ) ), ( 'recipes2', ArrayType(Int, VarInt, ) ) ], + 331 : [ ( 'action', Short ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'recipes1', ArrayType(Int, VarInt, ) ), ( 'recipes2', ArrayType(Int, VarInt, ) ) ], + 335 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'recipes1', ArrayType(VarInt, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(VarInt, VarInt, ) }, None, ) ) ], + 338 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'recipes1', ArrayType(VarInt, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(VarInt, VarInt, ) }, None, ) ) ], + 340 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'recipes1', ArrayType(VarInt, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(VarInt, VarInt, ) }, None, ) ) ], + 351 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 393 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 401 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 402 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 403 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 404 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 477 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 480 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 490 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 498 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 573 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 575 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 578 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 709 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 734 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 735 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 736 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 751 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'blastFurnaceOpen', Boolean ), ( 'filteringBlastFurnace', Boolean ), ( 'smokerBookOpen', Boolean ), ( 'filteringSmoker', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 755 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'blastFurnaceOpen', Boolean ), ( 'filteringBlastFurnace', Boolean ), ( 'smokerBookOpen', Boolean ), ( 'filteringSmoker', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 756 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'blastFurnaceOpen', Boolean ), ( 'filteringBlastFurnace', Boolean ), ( 'smokerBookOpen', Boolean ), ( 'filteringSmoker', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 757 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'blastFurnaceOpen', Boolean ), ( 'filteringBlastFurnace', Boolean ), ( 'smokerBookOpen', Boolean ), ( 'filteringSmoker', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ], + 1073741839 : [ ( 'action', VarInt ), ( 'craftingBookOpen', Boolean ), ( 'filteringCraftable', Boolean ), ( 'smeltingBookOpen', Boolean ), ( 'filteringSmeltable', Boolean ), ( 'blastFurnaceOpen', Boolean ), ( 'filteringBlastFurnace', Boolean ), ( 'smokerBookOpen', Boolean ), ( 'filteringSmoker', Boolean ), ( 'recipes1', ArrayType(String, VarInt, ) ), ( 'recipes2', SwitchType('action', { 0 : ArrayType(String, VarInt, ) }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_update_attributes.py b/aiocraft/mc/proto/play/clientbound/packet_update_attributes.py new file mode 100644 index 0000000..2726c7c --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_update_attributes.py @@ -0,0 +1,24 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateAttributes(Packet): + __slots__ = ( 'id', 'properties', 'entityId' ) + + properties : list + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 32, + 47 : 32, + 76 : 73 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'UUID', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), Short, ) ), ), Int, ) ) ], + 47 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'UUID', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ], + 76 : [ ( 'entityId', VarInt ), ( 'properties', ArrayType(StructType(( 'key', String ), ( 'value', Double ), ( 'modifiers', ArrayType(StructType(( 'UUID', UUID ), ( 'amount', Double ), ( 'operation', Byte ), ), VarInt, ) ), ), Int, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_update_entity_nbt.py b/aiocraft/mc/proto/play/clientbound/packet_update_entity_nbt.py new file mode 100644 index 0000000..995cf00 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_update_entity_nbt.py @@ -0,0 +1,20 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateEntityNbt(Packet): + __slots__ = ( 'id', 'tag', 'entityId' ) + + tag : bytes + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 73 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'entityId', VarInt ), ( 'tag', NBTTag ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_update_health.py b/aiocraft/mc/proto/play/clientbound/packet_update_health.py new file mode 100644 index 0000000..b7ba453 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_update_health.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateHealth(Packet): + __slots__ = ( 'id', 'health', 'foodSaturation', 'food' ) + + health : float + foodSaturation : float + food : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 6, + 47 : 6, + 76 : 62, + 107 : 62, + 108 : 62, + 109 : 62, + 110 : 62, + 201 : 62, + 210 : 62, + 304 : 62, + 315 : 62, + 321 : 64, + 327 : 64, + 331 : 64, + 335 : 64, + 338 : 65, + 340 : 65, + 351 : 66, + 393 : 68, + 401 : 68, + 402 : 68, + 403 : 68, + 404 : 68, + 477 : 72, + 480 : 72, + 490 : 72, + 498 : 72, + 573 : 73, + 575 : 73, + 578 : 73, + 709 : 74, + 734 : 73, + 735 : 73, + 736 : 73, + 751 : 73, + 755 : 82, + 756 : 82, + 757 : 82, + 1073741839 : 74 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'health', Float ), ( 'food', Short ), ( 'foodSaturation', Float ) ], + 47 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 76 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 107 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 108 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 109 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 110 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 201 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 210 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 304 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 315 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 321 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 327 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 331 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 335 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 338 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 340 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 351 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 393 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 401 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 402 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 403 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 404 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 477 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 480 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 490 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 498 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 573 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 575 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 578 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 709 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 734 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 735 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 736 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 751 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 755 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 756 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 757 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ], + 1073741839 : [ ( 'health', Float ), ( 'food', VarInt ), ( 'foodSaturation', Float ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_update_light.py b/aiocraft/mc/proto/play/clientbound/packet_update_light.py new file mode 100644 index 0000000..aa45dc1 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_update_light.py @@ -0,0 +1,58 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateLight(Packet): + __slots__ = ( 'id', 'chunkX', 'blockLight', 'skyLight', 'data', 'emptyBlockLightMask', 'emptySkyLightMask', 'trustEdges', 'blockLightMask', 'chunkZ', 'skyLightMask' ) + + chunkX : int + blockLight : list + skyLight : list + data : bytes + emptyBlockLightMask : Union[int,list] + emptySkyLightMask : Union[int,list] + trustEdges : bool + blockLightMask : Union[int,list] + chunkZ : int + skyLightMask : Union[int,list] + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 36, + 480 : 36, + 490 : 36, + 498 : 36, + 573 : 37, + 575 : 37, + 578 : 37, + 709 : 37, + 734 : 36, + 735 : 36, + 736 : 36, + 751 : 35, + 755 : 37, + 756 : 37, + 757 : 37, + 1073741839 : 36 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 480 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 490 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 498 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 573 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 575 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 578 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 709 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 734 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'trustEdges', Boolean ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 735 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'trustEdges', Boolean ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 736 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'trustEdges', Boolean ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 751 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'trustEdges', Boolean ), ( 'skyLightMask', VarInt ), ( 'blockLightMask', VarInt ), ( 'emptySkyLightMask', VarInt ), ( 'emptyBlockLightMask', VarInt ), ( 'data', TrailingData ) ], + 755 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'trustEdges', Boolean ), ( 'skyLightMask', ArrayType(Long, VarInt, ) ), ( 'blockLightMask', ArrayType(Long, VarInt, ) ), ( 'emptySkyLightMask', ArrayType(Long, VarInt, ) ), ( 'emptyBlockLightMask', ArrayType(Long, VarInt, ) ), ( 'skyLight', ArrayType(ArrayType(Byte, VarInt, ), VarInt, ) ), ( 'blockLight', ArrayType(ArrayType(Byte, VarInt, ), VarInt, ) ) ], + 756 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'trustEdges', Boolean ), ( 'skyLightMask', ArrayType(Long, VarInt, ) ), ( 'blockLightMask', ArrayType(Long, VarInt, ) ), ( 'emptySkyLightMask', ArrayType(Long, VarInt, ) ), ( 'emptyBlockLightMask', ArrayType(Long, VarInt, ) ), ( 'skyLight', ArrayType(ArrayType(Byte, VarInt, ), VarInt, ) ), ( 'blockLight', ArrayType(ArrayType(Byte, VarInt, ), VarInt, ) ) ], + 757 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'trustEdges', Boolean ), ( 'skyLightMask', ArrayType(Long, VarInt, ) ), ( 'blockLightMask', ArrayType(Long, VarInt, ) ), ( 'emptySkyLightMask', ArrayType(Long, VarInt, ) ), ( 'emptyBlockLightMask', ArrayType(Long, VarInt, ) ), ( 'skyLight', ArrayType(ArrayType(Byte, VarInt, ), VarInt, ) ), ( 'blockLight', ArrayType(ArrayType(Byte, VarInt, ), VarInt, ) ) ], + 1073741839 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ), ( 'trustEdges', Boolean ), ( 'skyLightMask', ArrayType(Long, VarInt, ) ), ( 'blockLightMask', ArrayType(Long, VarInt, ) ), ( 'emptySkyLightMask', ArrayType(Long, VarInt, ) ), ( 'emptyBlockLightMask', ArrayType(Long, VarInt, ) ), ( 'data', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_update_sign.py b/aiocraft/mc/proto/play/clientbound/packet_update_sign.py new file mode 100644 index 0000000..107a561 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_update_sign.py @@ -0,0 +1,33 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateSign(Packet): + __slots__ = ( 'id', 'text2', 'text1', 'text3', 'text4', 'location' ) + + text2 : str + text1 : str + text3 : str + text4 : str + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 51, + 47 : 51, + 76 : 69, + 107 : 70, + 108 : 70, + 109 : 70 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'location', TrailingData ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 47 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 76 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 107 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 108 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 109 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_update_time.py b/aiocraft/mc/proto/play/clientbound/packet_update_time.py new file mode 100644 index 0000000..1be2dbc --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_update_time.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateTime(Packet): + __slots__ = ( 'id', 'age', 'time' ) + + age : int + time : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 3, + 47 : 3, + 76 : 67, + 107 : 68, + 108 : 68, + 109 : 68, + 110 : 68, + 201 : 68, + 210 : 68, + 304 : 68, + 315 : 68, + 321 : 70, + 327 : 70, + 331 : 70, + 335 : 70, + 338 : 71, + 340 : 71, + 351 : 72, + 393 : 74, + 401 : 74, + 402 : 74, + 403 : 74, + 404 : 74, + 477 : 78, + 480 : 78, + 490 : 78, + 498 : 78, + 573 : 79, + 575 : 79, + 578 : 79, + 709 : 79, + 734 : 78, + 735 : 78, + 736 : 78, + 751 : 78, + 755 : 88, + 756 : 88, + 757 : 89, + 1073741839 : 79 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'age', Long ), ( 'time', Long ) ], + 47 : [ ( 'age', Long ), ( 'time', Long ) ], + 76 : [ ( 'age', Long ), ( 'time', Long ) ], + 107 : [ ( 'age', Long ), ( 'time', Long ) ], + 108 : [ ( 'age', Long ), ( 'time', Long ) ], + 109 : [ ( 'age', Long ), ( 'time', Long ) ], + 110 : [ ( 'age', Long ), ( 'time', Long ) ], + 201 : [ ( 'age', Long ), ( 'time', Long ) ], + 210 : [ ( 'age', Long ), ( 'time', Long ) ], + 304 : [ ( 'age', Long ), ( 'time', Long ) ], + 315 : [ ( 'age', Long ), ( 'time', Long ) ], + 321 : [ ( 'age', Long ), ( 'time', Long ) ], + 327 : [ ( 'age', Long ), ( 'time', Long ) ], + 331 : [ ( 'age', Long ), ( 'time', Long ) ], + 335 : [ ( 'age', Long ), ( 'time', Long ) ], + 338 : [ ( 'age', Long ), ( 'time', Long ) ], + 340 : [ ( 'age', Long ), ( 'time', Long ) ], + 351 : [ ( 'age', Long ), ( 'time', Long ) ], + 393 : [ ( 'age', Long ), ( 'time', Long ) ], + 401 : [ ( 'age', Long ), ( 'time', Long ) ], + 402 : [ ( 'age', Long ), ( 'time', Long ) ], + 403 : [ ( 'age', Long ), ( 'time', Long ) ], + 404 : [ ( 'age', Long ), ( 'time', Long ) ], + 477 : [ ( 'age', Long ), ( 'time', Long ) ], + 480 : [ ( 'age', Long ), ( 'time', Long ) ], + 490 : [ ( 'age', Long ), ( 'time', Long ) ], + 498 : [ ( 'age', Long ), ( 'time', Long ) ], + 573 : [ ( 'age', Long ), ( 'time', Long ) ], + 575 : [ ( 'age', Long ), ( 'time', Long ) ], + 578 : [ ( 'age', Long ), ( 'time', Long ) ], + 709 : [ ( 'age', Long ), ( 'time', Long ) ], + 734 : [ ( 'age', Long ), ( 'time', Long ) ], + 735 : [ ( 'age', Long ), ( 'time', Long ) ], + 736 : [ ( 'age', Long ), ( 'time', Long ) ], + 751 : [ ( 'age', Long ), ( 'time', Long ) ], + 755 : [ ( 'age', Long ), ( 'time', Long ) ], + 756 : [ ( 'age', Long ), ( 'time', Long ) ], + 757 : [ ( 'age', Long ), ( 'time', Long ) ], + 1073741839 : [ ( 'age', Long ), ( 'time', Long ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_update_view_distance.py b/aiocraft/mc/proto/play/clientbound/packet_update_view_distance.py new file mode 100644 index 0000000..3bad110 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_update_view_distance.py @@ -0,0 +1,49 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateViewDistance(Packet): + __slots__ = ( 'id', 'viewDistance' ) + + viewDistance : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 65, + 480 : 65, + 490 : 65, + 498 : 65, + 573 : 66, + 575 : 66, + 578 : 66, + 709 : 66, + 734 : 65, + 735 : 65, + 736 : 65, + 751 : 65, + 755 : 74, + 756 : 74, + 757 : 74, + 1073741839 : 66 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'viewDistance', VarInt ) ], + 480 : [ ( 'viewDistance', VarInt ) ], + 490 : [ ( 'viewDistance', VarInt ) ], + 498 : [ ( 'viewDistance', VarInt ) ], + 573 : [ ( 'viewDistance', VarInt ) ], + 575 : [ ( 'viewDistance', VarInt ) ], + 578 : [ ( 'viewDistance', VarInt ) ], + 709 : [ ( 'viewDistance', VarInt ) ], + 734 : [ ( 'viewDistance', VarInt ) ], + 735 : [ ( 'viewDistance', VarInt ) ], + 736 : [ ( 'viewDistance', VarInt ) ], + 751 : [ ( 'viewDistance', VarInt ) ], + 755 : [ ( 'viewDistance', VarInt ) ], + 756 : [ ( 'viewDistance', VarInt ) ], + 757 : [ ( 'viewDistance', VarInt ) ], + 1073741839 : [ ( 'viewDistance', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_update_view_position.py b/aiocraft/mc/proto/play/clientbound/packet_update_view_position.py new file mode 100644 index 0000000..019ef06 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_update_view_position.py @@ -0,0 +1,50 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateViewPosition(Packet): + __slots__ = ( 'id', 'chunkX', 'chunkZ' ) + + chunkX : int + chunkZ : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 64, + 480 : 64, + 490 : 64, + 498 : 64, + 573 : 65, + 575 : 65, + 578 : 65, + 709 : 65, + 734 : 64, + 735 : 64, + 736 : 64, + 751 : 64, + 755 : 73, + 756 : 73, + 757 : 73, + 1073741839 : 65 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 480 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 490 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 498 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 573 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 575 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 578 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 709 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 734 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 735 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 736 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 751 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 755 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 756 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 757 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ], + 1073741839 : [ ( 'chunkX', VarInt ), ( 'chunkZ', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_vehicle_move.py b/aiocraft/mc/proto/play/clientbound/packet_vehicle_move.py new file mode 100644 index 0000000..8b791fd --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_vehicle_move.py @@ -0,0 +1,93 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketVehicleMove(Packet): + __slots__ = ( 'id', 'x', 'yaw', 'y', 'z', 'pitch' ) + + x : float + yaw : float + y : float + z : float + pitch : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 107 : 41, + 108 : 41, + 109 : 41, + 110 : 41, + 201 : 41, + 210 : 41, + 304 : 41, + 315 : 41, + 321 : 42, + 327 : 42, + 331 : 42, + 335 : 41, + 338 : 41, + 340 : 41, + 351 : 42, + 393 : 43, + 401 : 43, + 402 : 43, + 403 : 43, + 404 : 43, + 477 : 44, + 480 : 44, + 490 : 44, + 498 : 44, + 573 : 45, + 575 : 45, + 578 : 45, + 709 : 45, + 734 : 44, + 735 : 44, + 736 : 44, + 751 : 43, + 755 : 44, + 756 : 44, + 757 : 44, + 1073741839 : 44 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 107 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 108 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 109 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 110 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 201 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 210 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 304 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 315 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 321 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 327 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 331 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 335 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 338 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 340 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 351 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 393 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 401 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 402 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 403 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 404 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 477 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 480 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 490 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 498 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 573 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 575 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 578 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 709 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 734 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 735 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 736 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 751 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 755 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 756 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 757 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 1073741839 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_window_items.py b/aiocraft/mc/proto/play/clientbound/packet_window_items.py new file mode 100644 index 0000000..c6b9b88 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_window_items.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWindowItems(Packet): + __slots__ = ( 'id', 'items', 'carriedItem', 'stateId', 'windowId' ) + + items : list + carriedItem : dict + stateId : int + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 48, + 47 : 48, + 76 : 20, + 107 : 20, + 108 : 20, + 109 : 20, + 110 : 20, + 201 : 20, + 210 : 20, + 304 : 20, + 315 : 20, + 321 : 21, + 327 : 21, + 331 : 21, + 335 : 20, + 338 : 20, + 340 : 20, + 351 : 21, + 393 : 21, + 401 : 21, + 402 : 21, + 403 : 21, + 404 : 21, + 477 : 20, + 480 : 20, + 490 : 20, + 498 : 20, + 573 : 21, + 575 : 21, + 578 : 21, + 709 : 21, + 734 : 20, + 735 : 20, + 736 : 20, + 751 : 19, + 755 : 20, + 756 : 20, + 757 : 20, + 1073741839 : 20 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 47 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 76 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 107 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 108 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 109 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 110 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 201 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 210 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 304 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 315 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 321 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 327 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 331 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 335 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 338 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 340 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 351 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 393 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 401 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 402 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 403 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 404 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 477 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 480 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 490 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 498 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 573 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 575 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 578 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 709 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 734 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 735 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 736 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 751 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 755 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ], + 756 : [ ( 'windowId', Byte ), ( 'stateId', VarInt ), ( 'items', ArrayType(Slot, VarInt, ) ), ( 'carriedItem', Slot ) ], + 757 : [ ( 'windowId', Byte ), ( 'stateId', VarInt ), ( 'items', ArrayType(Slot, VarInt, ) ), ( 'carriedItem', Slot ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'items', ArrayType(Slot, Short, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_world_border.py b/aiocraft/mc/proto/play/clientbound/packet_world_border.py new file mode 100644 index 0000000..ce1ff05 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_world_border.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWorldBorder(Packet): + __slots__ = ( 'id', 'old_radius', 'new_radius', 'radius', 'portalBoundary', 'action', 'x', 'speed', 'warning_time', 'z', 'warning_blocks' ) + + old_radius : bytes + new_radius : bytes + radius : bytes + portalBoundary : bytes + action : int + x : bytes + speed : bytes + warning_time : bytes + z : bytes + warning_blocks : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 68, + 76 : 53, + 107 : 53, + 108 : 53, + 109 : 53, + 110 : 53, + 201 : 53, + 210 : 53, + 304 : 53, + 315 : 53, + 321 : 55, + 327 : 55, + 331 : 55, + 335 : 55, + 338 : 56, + 340 : 56, + 351 : 57, + 393 : 59, + 401 : 59, + 402 : 59, + 403 : 59, + 404 : 59, + 477 : 61, + 480 : 61, + 490 : 61, + 498 : 61, + 573 : 62, + 575 : 62, + 578 : 62, + 709 : 62, + 734 : 61, + 735 : 61, + 736 : 61, + 751 : 61, + 1073741839 : 62 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 76 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 107 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 108 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 109 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 110 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 201 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 210 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 304 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 315 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 321 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 327 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 331 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 335 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 338 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 340 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 351 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 393 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 401 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 402 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 403 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 404 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 477 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 480 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 490 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 498 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 573 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 575 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 578 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 709 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 734 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 735 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 736 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 751 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ], + 1073741839 : [ ( 'action', VarInt ), ( 'radius', SwitchType('action', { 0 : Double }, None, ) ), ( 'x', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'z', SwitchType('action', { 2 : Double, 3 : Double }, None, ) ), ( 'old_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'new_radius', SwitchType('action', { 1 : Double, 3 : Double }, None, ) ), ( 'speed', SwitchType('action', { 1 : VarInt, 3 : VarInt }, None, ) ), ( 'portalBoundary', SwitchType('action', { 3 : VarInt }, None, ) ), ( 'warning_time', SwitchType('action', { 3 : VarInt, 4 : VarInt }, None, ) ), ( 'warning_blocks', SwitchType('action', { 3 : VarInt, 5 : VarInt }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_world_border_center.py b/aiocraft/mc/proto/play/clientbound/packet_world_border_center.py new file mode 100644 index 0000000..0bdb9b6 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_world_border_center.py @@ -0,0 +1,24 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWorldBorderCenter(Packet): + __slots__ = ( 'id', 'z', 'x' ) + + z : float + x : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 66, + 756 : 66, + 757 : 66 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'x', Double ), ( 'z', Double ) ], + 756 : [ ( 'x', Double ), ( 'z', Double ) ], + 757 : [ ( 'x', Double ), ( 'z', Double ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_world_border_lerp_size.py b/aiocraft/mc/proto/play/clientbound/packet_world_border_lerp_size.py new file mode 100644 index 0000000..86b4d93 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_world_border_lerp_size.py @@ -0,0 +1,25 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWorldBorderLerpSize(Packet): + __slots__ = ( 'id', 'newDiameter', 'speed', 'oldDiameter' ) + + newDiameter : float + speed : int + oldDiameter : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 67, + 756 : 67, + 757 : 67 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'oldDiameter', Double ), ( 'newDiameter', Double ), ( 'speed', VarInt ) ], + 756 : [ ( 'oldDiameter', Double ), ( 'newDiameter', Double ), ( 'speed', VarInt ) ], + 757 : [ ( 'oldDiameter', Double ), ( 'newDiameter', Double ), ( 'speed', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_world_border_size.py b/aiocraft/mc/proto/play/clientbound/packet_world_border_size.py new file mode 100644 index 0000000..9cd2a91 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_world_border_size.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWorldBorderSize(Packet): + __slots__ = ( 'id', 'diameter' ) + + diameter : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 68, + 756 : 68, + 757 : 68 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'diameter', Double ) ], + 756 : [ ( 'diameter', Double ) ], + 757 : [ ( 'diameter', Double ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_world_border_warning_delay.py b/aiocraft/mc/proto/play/clientbound/packet_world_border_warning_delay.py new file mode 100644 index 0000000..46388d7 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_world_border_warning_delay.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWorldBorderWarningDelay(Packet): + __slots__ = ( 'id', 'warningTime' ) + + warningTime : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 69, + 756 : 69, + 757 : 69 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'warningTime', VarInt ) ], + 756 : [ ( 'warningTime', VarInt ) ], + 757 : [ ( 'warningTime', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_world_border_warning_reach.py b/aiocraft/mc/proto/play/clientbound/packet_world_border_warning_reach.py new file mode 100644 index 0000000..29ab831 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_world_border_warning_reach.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWorldBorderWarningReach(Packet): + __slots__ = ( 'id', 'warningBlocks' ) + + warningBlocks : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 70, + 756 : 70, + 757 : 70 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'warningBlocks', VarInt ) ], + 756 : [ ( 'warningBlocks', VarInt ) ], + 757 : [ ( 'warningBlocks', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_world_event.py b/aiocraft/mc/proto/play/clientbound/packet_world_event.py new file mode 100644 index 0000000..a070540 --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_world_event.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWorldEvent(Packet): + __slots__ = ( 'id', 'location', 'is_global', 'data', 'effectId' ) + + location : Union[tuple,bytes] + is_global : bool + data : int + effectId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 40, + 47 : 40, + 76 : 33, + 107 : 33, + 108 : 33, + 109 : 33, + 110 : 33, + 201 : 33, + 210 : 33, + 304 : 33, + 315 : 33, + 321 : 34, + 327 : 34, + 331 : 34, + 335 : 33, + 338 : 33, + 340 : 33, + 351 : 34, + 393 : 35, + 401 : 35, + 402 : 35, + 403 : 35, + 404 : 35, + 477 : 34, + 480 : 34, + 490 : 34, + 498 : 34, + 573 : 35, + 575 : 35, + 578 : 35, + 709 : 35, + 734 : 34, + 735 : 34, + 736 : 34, + 751 : 33, + 755 : 35, + 756 : 35, + 757 : 35, + 1073741839 : 34 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'effectId', Int ), ( 'location', TrailingData ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 47 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 76 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 107 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 108 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 109 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 110 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 201 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 210 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 304 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 315 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 321 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 327 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 331 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 335 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 338 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 340 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 351 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 393 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 401 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 402 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 403 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 404 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 477 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 480 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 490 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 498 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 573 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 575 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 578 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 709 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 734 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 735 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 736 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 751 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 755 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 756 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 757 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ], + 1073741839 : [ ( 'effectId', Int ), ( 'location', Position ), ( 'data', Int ), ( 'is_global', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/clientbound/packet_world_particles.py b/aiocraft/mc/proto/play/clientbound/packet_world_particles.py new file mode 100644 index 0000000..1e4df6c --- /dev/null +++ b/aiocraft/mc/proto/play/clientbound/packet_world_particles.py @@ -0,0 +1,106 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWorldParticles(Packet): + __slots__ = ( 'id', 'particles', 'longDistance', 'data', 'particleName', 'x', 'offsetX', 'offsetZ', 'offsetY', 'particleData', 'y', 'z', 'particleId' ) + + particles : int + longDistance : bool + data : bytes + particleName : str + x : float + offsetX : float + offsetZ : float + offsetY : float + particleData : float + y : float + z : float + particleId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 42, + 47 : 42, + 76 : 34, + 107 : 34, + 108 : 34, + 109 : 34, + 110 : 34, + 201 : 34, + 210 : 34, + 304 : 34, + 315 : 34, + 321 : 35, + 327 : 35, + 331 : 35, + 335 : 34, + 338 : 34, + 340 : 34, + 351 : 35, + 393 : 36, + 401 : 36, + 402 : 36, + 403 : 36, + 404 : 36, + 477 : 35, + 480 : 35, + 490 : 35, + 498 : 35, + 573 : 36, + 575 : 36, + 578 : 36, + 709 : 36, + 734 : 35, + 735 : 35, + 736 : 35, + 751 : 34, + 755 : 36, + 756 : 36, + 757 : 36, + 1073741839 : 35 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'particleName', String ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ) ], + 47 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 76 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 107 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 108 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 109 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 110 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 201 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 210 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 304 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 315 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 321 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 327 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 331 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 335 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 338 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 340 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : ArrayType(VarInt, 2, ), 37 : ArrayType(VarInt, 1, ), 38 : ArrayType(VarInt, 1, ) }, None, ) ) ], + 351 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', SwitchType('particleId', { 36 : Slot, 37 : VarInt, 38 : VarInt, 46 : VarInt }, None, ) ) ], + 393 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 401 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 402 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 403 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 404 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 477 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 480 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 490 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 498 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Float ), ( 'y', Float ), ( 'z', Float ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 573 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 575 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 578 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 709 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 734 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 735 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 736 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 751 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 755 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 756 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 757 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ], + 1073741839 : [ ( 'particleId', Int ), ( 'longDistance', Boolean ), ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'offsetX', Float ), ( 'offsetY', Float ), ( 'offsetZ', Float ), ( 'particleData', Float ), ( 'particles', Int ), ( 'data', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/__init__.py b/aiocraft/mc/proto/play/serverbound/__init__.py new file mode 100644 index 0000000..9a8e90c --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/__init__.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from .packet_teleport_confirm import PacketTeleportConfirm +from .packet_query_block_nbt import PacketQueryBlockNbt +from .packet_set_difficulty import PacketSetDifficulty +from .packet_edit_book import PacketEditBook +from .packet_query_entity_nbt import PacketQueryEntityNbt +from .packet_pick_item import PacketPickItem +from .packet_name_item import PacketNameItem +from .packet_select_trade import PacketSelectTrade +from .packet_set_beacon_effect import PacketSetBeaconEffect +from .packet_update_command_block import PacketUpdateCommandBlock +from .packet_update_command_block_minecart import PacketUpdateCommandBlockMinecart +from .packet_update_structure_block import PacketUpdateStructureBlock +from .packet_tab_complete import PacketTabComplete +from .packet_chat import PacketChat +from .packet_client_command import PacketClientCommand +from .packet_settings import PacketSettings +from .packet_transaction import PacketTransaction +from .packet_enchant_item import PacketEnchantItem +from .packet_window_click import PacketWindowClick +from .packet_close_window import PacketCloseWindow +from .packet_custom_payload import PacketCustomPayload +from .packet_use_entity import PacketUseEntity +from .packet_generate_structure import PacketGenerateStructure +from .packet_keep_alive import PacketKeepAlive +from .packet_lock_difficulty import PacketLockDifficulty +from .packet_position import PacketPosition +from .packet_position_look import PacketPositionLook +from .packet_look import PacketLook +from .packet_flying import PacketFlying +from .packet_vehicle_move import PacketVehicleMove +from .packet_steer_boat import PacketSteerBoat +from .packet_craft_recipe_request import PacketCraftRecipeRequest +from .packet_abilities import PacketAbilities +from .packet_block_dig import PacketBlockDig +from .packet_entity_action import PacketEntityAction +from .packet_steer_vehicle import PacketSteerVehicle +from .packet_displayed_recipe import PacketDisplayedRecipe +from .packet_recipe_book import PacketRecipeBook +from .packet_resource_pack_receive import PacketResourcePackReceive +from .packet_held_item_slot import PacketHeldItemSlot +from .packet_set_creative_slot import PacketSetCreativeSlot +from .packet_update_jigsaw_block import PacketUpdateJigsawBlock +from .packet_update_sign import PacketUpdateSign +from .packet_arm_animation import PacketArmAnimation +from .packet_spectate import PacketSpectate +from .packet_block_place import PacketBlockPlace +from .packet_use_item import PacketUseItem +from .packet_advancement_tab import PacketAdvancementTab +from .packet_crafting_book_data import PacketCraftingBookData +from .packet_prepare_crafting_grid import PacketPrepareCraftingGrid +from .packet_pong import PacketPong + +REGISTRY = { + 1073741839 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 24:PacketPickItem, 32:PacketNameItem, 35:PacketSelectTrade, 36:PacketSetBeaconEffect, 38:PacketUpdateCommandBlock, 39:PacketUpdateCommandBlockMinecart, 42:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketGenerateStructure, 16:PacketKeepAlive, 17:PacketLockDifficulty, 18:PacketPosition, 19:PacketPositionLook, 20:PacketLook, 21:PacketFlying, 22:PacketVehicleMove, 23:PacketSteerBoat, 25:PacketCraftRecipeRequest, 26:PacketAbilities, 27:PacketBlockDig, 28:PacketEntityAction, 29:PacketSteerVehicle, 30:PacketDisplayedRecipe, 31:PacketRecipeBook, 33:PacketResourcePackReceive, 37:PacketHeldItemSlot, 40:PacketSetCreativeSlot, 41:PacketUpdateJigsawBlock, 43:PacketUpdateSign, 44:PacketArmAnimation, 45:PacketSpectate, 46:PacketBlockPlace, 47:PacketUseItem, 34:PacketAdvancementTab }, + 709 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 23:PacketPickItem, 30:PacketNameItem, 33:PacketSelectTrade, 34:PacketSetBeaconEffect, 36:PacketUpdateCommandBlock, 37:PacketUpdateCommandBlockMinecart, 40:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketResourcePackReceive, 35:PacketHeldItemSlot, 38:PacketSetCreativeSlot, 39:PacketUpdateJigsawBlock, 41:PacketUpdateSign, 42:PacketArmAnimation, 43:PacketSpectate, 44:PacketBlockPlace, 45:PacketUseItem, 32:PacketAdvancementTab, 29:PacketCraftingBookData }, + 351 : { 0:PacketTeleportConfirm, 4:PacketTabComplete, 1:PacketChat, 2:PacketClientCommand, 3:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 13:PacketPosition, 14:PacketPositionLook, 15:PacketLook, 12:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketCraftRecipeRequest, 19:PacketAbilities, 20:PacketBlockDig, 21:PacketEntityAction, 22:PacketSteerVehicle, 24:PacketResourcePackReceive, 26:PacketHeldItemSlot, 27:PacketSetCreativeSlot, 28:PacketUpdateSign, 29:PacketArmAnimation, 30:PacketSpectate, 31:PacketBlockPlace, 32:PacketUseItem, 25:PacketAdvancementTab, 23:PacketCraftingBookData }, + 327 : { 0:PacketTeleportConfirm, 2:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 11:PacketUseEntity, 12:PacketKeepAlive, 13:PacketPosition, 14:PacketPositionLook, 15:PacketLook, 16:PacketFlying, 17:PacketVehicleMove, 18:PacketSteerBoat, 19:PacketAbilities, 20:PacketBlockDig, 21:PacketEntityAction, 22:PacketSteerVehicle, 24:PacketResourcePackReceive, 25:PacketHeldItemSlot, 26:PacketSetCreativeSlot, 27:PacketUpdateSign, 28:PacketArmAnimation, 29:PacketSpectate, 30:PacketBlockPlace, 31:PacketUseItem, 23:PacketCraftingBookData, 1:PacketPrepareCraftingGrid }, + 321 : { 0:PacketTeleportConfirm, 2:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 11:PacketUseEntity, 12:PacketKeepAlive, 13:PacketPosition, 14:PacketPositionLook, 15:PacketLook, 16:PacketFlying, 17:PacketVehicleMove, 18:PacketSteerBoat, 19:PacketAbilities, 20:PacketBlockDig, 21:PacketEntityAction, 22:PacketSteerVehicle, 24:PacketResourcePackReceive, 25:PacketHeldItemSlot, 26:PacketSetCreativeSlot, 27:PacketUpdateSign, 28:PacketArmAnimation, 29:PacketSpectate, 30:PacketBlockPlace, 31:PacketUseItem, 23:PacketCraftingBookData, 1:PacketPrepareCraftingGrid }, + 304 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 12:PacketPosition, 13:PacketPositionLook, 14:PacketLook, 15:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketAbilities, 19:PacketBlockDig, 20:PacketEntityAction, 21:PacketSteerVehicle, 22:PacketResourcePackReceive, 23:PacketHeldItemSlot, 24:PacketSetCreativeSlot, 25:PacketUpdateSign, 26:PacketArmAnimation, 27:PacketSpectate, 28:PacketBlockPlace, 29:PacketUseItem }, + 201 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 12:PacketPosition, 13:PacketPositionLook, 14:PacketLook, 15:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketAbilities, 19:PacketBlockDig, 20:PacketEntityAction, 21:PacketSteerVehicle, 22:PacketResourcePackReceive, 23:PacketHeldItemSlot, 24:PacketSetCreativeSlot, 25:PacketUpdateSign, 26:PacketArmAnimation, 27:PacketSpectate, 28:PacketBlockPlace, 29:PacketUseItem }, + 107 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 12:PacketPosition, 13:PacketPositionLook, 14:PacketLook, 15:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketAbilities, 19:PacketBlockDig, 20:PacketEntityAction, 21:PacketSteerVehicle, 22:PacketResourcePackReceive, 23:PacketHeldItemSlot, 24:PacketSetCreativeSlot, 25:PacketUpdateSign, 26:PacketArmAnimation, 27:PacketSpectate, 28:PacketBlockPlace, 29:PacketUseItem }, + 110 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 12:PacketPosition, 13:PacketPositionLook, 14:PacketLook, 15:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketAbilities, 19:PacketBlockDig, 20:PacketEntityAction, 21:PacketSteerVehicle, 22:PacketResourcePackReceive, 23:PacketHeldItemSlot, 24:PacketSetCreativeSlot, 25:PacketUpdateSign, 26:PacketArmAnimation, 27:PacketSpectate, 28:PacketBlockPlace, 29:PacketUseItem }, + 109 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 12:PacketPosition, 13:PacketPositionLook, 14:PacketLook, 15:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketAbilities, 19:PacketBlockDig, 20:PacketEntityAction, 21:PacketSteerVehicle, 22:PacketResourcePackReceive, 23:PacketHeldItemSlot, 24:PacketSetCreativeSlot, 25:PacketUpdateSign, 26:PacketArmAnimation, 27:PacketSpectate, 28:PacketBlockPlace, 29:PacketUseItem }, + 108 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 12:PacketPosition, 13:PacketPositionLook, 14:PacketLook, 15:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketAbilities, 19:PacketBlockDig, 20:PacketEntityAction, 21:PacketSteerVehicle, 22:PacketResourcePackReceive, 23:PacketHeldItemSlot, 24:PacketSetCreativeSlot, 25:PacketUpdateSign, 26:PacketArmAnimation, 27:PacketSpectate, 28:PacketBlockPlace, 29:PacketUseItem }, + 757 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 11:PacketEditBook, 12:PacketQueryEntityNbt, 23:PacketPickItem, 32:PacketNameItem, 35:PacketSelectTrade, 36:PacketSetBeaconEffect, 38:PacketUpdateCommandBlock, 39:PacketUpdateCommandBlockMinecart, 42:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 13:PacketUseEntity, 14:PacketGenerateStructure, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketDisplayedRecipe, 30:PacketRecipeBook, 33:PacketResourcePackReceive, 37:PacketHeldItemSlot, 40:PacketSetCreativeSlot, 41:PacketUpdateJigsawBlock, 43:PacketUpdateSign, 44:PacketArmAnimation, 45:PacketSpectate, 46:PacketBlockPlace, 47:PacketUseItem, 34:PacketAdvancementTab, 29:PacketPong }, + 755 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 11:PacketEditBook, 12:PacketQueryEntityNbt, 23:PacketPickItem, 32:PacketNameItem, 35:PacketSelectTrade, 36:PacketSetBeaconEffect, 38:PacketUpdateCommandBlock, 39:PacketUpdateCommandBlockMinecart, 42:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 13:PacketUseEntity, 14:PacketGenerateStructure, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketDisplayedRecipe, 30:PacketRecipeBook, 33:PacketResourcePackReceive, 37:PacketHeldItemSlot, 40:PacketSetCreativeSlot, 41:PacketUpdateJigsawBlock, 43:PacketUpdateSign, 44:PacketArmAnimation, 45:PacketSpectate, 46:PacketBlockPlace, 47:PacketUseItem, 34:PacketAdvancementTab, 29:PacketPong }, + 756 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 11:PacketEditBook, 12:PacketQueryEntityNbt, 23:PacketPickItem, 32:PacketNameItem, 35:PacketSelectTrade, 36:PacketSetBeaconEffect, 38:PacketUpdateCommandBlock, 39:PacketUpdateCommandBlockMinecart, 42:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 13:PacketUseEntity, 14:PacketGenerateStructure, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketDisplayedRecipe, 30:PacketRecipeBook, 33:PacketResourcePackReceive, 37:PacketHeldItemSlot, 40:PacketSetCreativeSlot, 41:PacketUpdateJigsawBlock, 43:PacketUpdateSign, 44:PacketArmAnimation, 45:PacketSpectate, 46:PacketBlockPlace, 47:PacketUseItem, 34:PacketAdvancementTab, 29:PacketPong }, + 735 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 24:PacketPickItem, 31:PacketNameItem, 34:PacketSelectTrade, 35:PacketSetBeaconEffect, 37:PacketUpdateCommandBlock, 38:PacketUpdateCommandBlockMinecart, 41:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketGenerateStructure, 16:PacketKeepAlive, 17:PacketLockDifficulty, 18:PacketPosition, 19:PacketPositionLook, 20:PacketLook, 21:PacketFlying, 22:PacketVehicleMove, 23:PacketSteerBoat, 25:PacketCraftRecipeRequest, 26:PacketAbilities, 27:PacketBlockDig, 28:PacketEntityAction, 29:PacketSteerVehicle, 32:PacketResourcePackReceive, 36:PacketHeldItemSlot, 39:PacketSetCreativeSlot, 40:PacketUpdateJigsawBlock, 42:PacketUpdateSign, 43:PacketArmAnimation, 44:PacketSpectate, 45:PacketBlockPlace, 46:PacketUseItem, 33:PacketAdvancementTab, 30:PacketCraftingBookData }, + 751 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 24:PacketPickItem, 32:PacketNameItem, 35:PacketSelectTrade, 36:PacketSetBeaconEffect, 38:PacketUpdateCommandBlock, 39:PacketUpdateCommandBlockMinecart, 42:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketGenerateStructure, 16:PacketKeepAlive, 17:PacketLockDifficulty, 18:PacketPosition, 19:PacketPositionLook, 20:PacketLook, 21:PacketFlying, 22:PacketVehicleMove, 23:PacketSteerBoat, 25:PacketCraftRecipeRequest, 26:PacketAbilities, 27:PacketBlockDig, 28:PacketEntityAction, 29:PacketSteerVehicle, 31:PacketDisplayedRecipe, 30:PacketRecipeBook, 33:PacketResourcePackReceive, 37:PacketHeldItemSlot, 40:PacketSetCreativeSlot, 41:PacketUpdateJigsawBlock, 43:PacketUpdateSign, 44:PacketArmAnimation, 45:PacketSpectate, 46:PacketBlockPlace, 47:PacketUseItem, 34:PacketAdvancementTab }, + 736 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 24:PacketPickItem, 31:PacketNameItem, 34:PacketSelectTrade, 35:PacketSetBeaconEffect, 37:PacketUpdateCommandBlock, 38:PacketUpdateCommandBlockMinecart, 41:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketGenerateStructure, 16:PacketKeepAlive, 17:PacketLockDifficulty, 18:PacketPosition, 19:PacketPositionLook, 20:PacketLook, 21:PacketFlying, 22:PacketVehicleMove, 23:PacketSteerBoat, 25:PacketCraftRecipeRequest, 26:PacketAbilities, 27:PacketBlockDig, 28:PacketEntityAction, 29:PacketSteerVehicle, 32:PacketResourcePackReceive, 36:PacketHeldItemSlot, 39:PacketSetCreativeSlot, 40:PacketUpdateJigsawBlock, 42:PacketUpdateSign, 43:PacketArmAnimation, 44:PacketSpectate, 45:PacketBlockPlace, 46:PacketUseItem, 33:PacketAdvancementTab, 30:PacketCraftingBookData }, + 734 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 24:PacketPickItem, 31:PacketNameItem, 34:PacketSelectTrade, 35:PacketSetBeaconEffect, 37:PacketUpdateCommandBlock, 38:PacketUpdateCommandBlockMinecart, 41:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketGenerateStructure, 16:PacketKeepAlive, 17:PacketLockDifficulty, 18:PacketPosition, 19:PacketPositionLook, 20:PacketLook, 21:PacketFlying, 22:PacketVehicleMove, 23:PacketSteerBoat, 25:PacketCraftRecipeRequest, 26:PacketAbilities, 27:PacketBlockDig, 28:PacketEntityAction, 29:PacketSteerVehicle, 32:PacketResourcePackReceive, 36:PacketHeldItemSlot, 39:PacketSetCreativeSlot, 40:PacketUpdateJigsawBlock, 42:PacketUpdateSign, 43:PacketArmAnimation, 44:PacketSpectate, 45:PacketBlockPlace, 46:PacketUseItem, 33:PacketAdvancementTab, 30:PacketCraftingBookData }, + 573 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 23:PacketPickItem, 30:PacketNameItem, 33:PacketSelectTrade, 34:PacketSetBeaconEffect, 36:PacketUpdateCommandBlock, 37:PacketUpdateCommandBlockMinecart, 40:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketResourcePackReceive, 35:PacketHeldItemSlot, 38:PacketSetCreativeSlot, 39:PacketUpdateJigsawBlock, 41:PacketUpdateSign, 42:PacketArmAnimation, 43:PacketSpectate, 44:PacketBlockPlace, 45:PacketUseItem, 32:PacketAdvancementTab, 29:PacketCraftingBookData }, + 578 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 23:PacketPickItem, 30:PacketNameItem, 33:PacketSelectTrade, 34:PacketSetBeaconEffect, 36:PacketUpdateCommandBlock, 37:PacketUpdateCommandBlockMinecart, 40:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketResourcePackReceive, 35:PacketHeldItemSlot, 38:PacketSetCreativeSlot, 39:PacketUpdateJigsawBlock, 41:PacketUpdateSign, 42:PacketArmAnimation, 43:PacketSpectate, 44:PacketBlockPlace, 45:PacketUseItem, 32:PacketAdvancementTab, 29:PacketCraftingBookData }, + 575 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 23:PacketPickItem, 30:PacketNameItem, 33:PacketSelectTrade, 34:PacketSetBeaconEffect, 36:PacketUpdateCommandBlock, 37:PacketUpdateCommandBlockMinecart, 40:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketResourcePackReceive, 35:PacketHeldItemSlot, 38:PacketSetCreativeSlot, 39:PacketUpdateJigsawBlock, 41:PacketUpdateSign, 42:PacketArmAnimation, 43:PacketSpectate, 44:PacketBlockPlace, 45:PacketUseItem, 32:PacketAdvancementTab, 29:PacketCraftingBookData }, + 477 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 23:PacketPickItem, 30:PacketNameItem, 33:PacketSelectTrade, 34:PacketSetBeaconEffect, 36:PacketUpdateCommandBlock, 37:PacketUpdateCommandBlockMinecart, 40:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketResourcePackReceive, 35:PacketHeldItemSlot, 38:PacketSetCreativeSlot, 39:PacketUpdateJigsawBlock, 41:PacketUpdateSign, 42:PacketArmAnimation, 43:PacketSpectate, 44:PacketBlockPlace, 45:PacketUseItem, 32:PacketAdvancementTab, 29:PacketCraftingBookData }, + 498 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 23:PacketPickItem, 30:PacketNameItem, 33:PacketSelectTrade, 34:PacketSetBeaconEffect, 36:PacketUpdateCommandBlock, 37:PacketUpdateCommandBlockMinecart, 40:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketResourcePackReceive, 35:PacketHeldItemSlot, 38:PacketSetCreativeSlot, 39:PacketUpdateJigsawBlock, 41:PacketUpdateSign, 42:PacketArmAnimation, 43:PacketSpectate, 44:PacketBlockPlace, 45:PacketUseItem, 32:PacketAdvancementTab, 29:PacketCraftingBookData }, + 490 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 23:PacketPickItem, 30:PacketNameItem, 33:PacketSelectTrade, 34:PacketSetBeaconEffect, 36:PacketUpdateCommandBlock, 37:PacketUpdateCommandBlockMinecart, 40:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketResourcePackReceive, 35:PacketHeldItemSlot, 38:PacketSetCreativeSlot, 39:PacketUpdateJigsawBlock, 41:PacketUpdateSign, 42:PacketArmAnimation, 43:PacketSpectate, 44:PacketBlockPlace, 45:PacketUseItem, 32:PacketAdvancementTab, 29:PacketCraftingBookData }, + 480 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 2:PacketSetDifficulty, 12:PacketEditBook, 13:PacketQueryEntityNbt, 23:PacketPickItem, 30:PacketNameItem, 33:PacketSelectTrade, 34:PacketSetBeaconEffect, 36:PacketUpdateCommandBlock, 37:PacketUpdateCommandBlockMinecart, 40:PacketUpdateStructureBlock, 6:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 7:PacketTransaction, 8:PacketEnchantItem, 9:PacketWindowClick, 10:PacketCloseWindow, 11:PacketCustomPayload, 14:PacketUseEntity, 15:PacketKeepAlive, 16:PacketLockDifficulty, 17:PacketPosition, 18:PacketPositionLook, 19:PacketLook, 20:PacketFlying, 21:PacketVehicleMove, 22:PacketSteerBoat, 24:PacketCraftRecipeRequest, 25:PacketAbilities, 26:PacketBlockDig, 27:PacketEntityAction, 28:PacketSteerVehicle, 31:PacketResourcePackReceive, 35:PacketHeldItemSlot, 38:PacketSetCreativeSlot, 39:PacketUpdateJigsawBlock, 41:PacketUpdateSign, 42:PacketArmAnimation, 43:PacketSpectate, 44:PacketBlockPlace, 45:PacketUseItem, 32:PacketAdvancementTab, 29:PacketCraftingBookData }, + 393 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 11:PacketEditBook, 12:PacketQueryEntityNbt, 21:PacketPickItem, 28:PacketNameItem, 31:PacketSelectTrade, 32:PacketSetBeaconEffect, 34:PacketUpdateCommandBlock, 35:PacketUpdateCommandBlockMinecart, 37:PacketUpdateStructureBlock, 5:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 13:PacketUseEntity, 14:PacketKeepAlive, 16:PacketPosition, 17:PacketPositionLook, 18:PacketLook, 15:PacketFlying, 19:PacketVehicleMove, 20:PacketSteerBoat, 22:PacketCraftRecipeRequest, 23:PacketAbilities, 24:PacketBlockDig, 25:PacketEntityAction, 26:PacketSteerVehicle, 29:PacketResourcePackReceive, 33:PacketHeldItemSlot, 36:PacketSetCreativeSlot, 38:PacketUpdateSign, 39:PacketArmAnimation, 40:PacketSpectate, 41:PacketBlockPlace, 42:PacketUseItem, 30:PacketAdvancementTab, 27:PacketCraftingBookData }, + 404 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 11:PacketEditBook, 12:PacketQueryEntityNbt, 21:PacketPickItem, 28:PacketNameItem, 31:PacketSelectTrade, 32:PacketSetBeaconEffect, 34:PacketUpdateCommandBlock, 35:PacketUpdateCommandBlockMinecart, 37:PacketUpdateStructureBlock, 5:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 13:PacketUseEntity, 14:PacketKeepAlive, 16:PacketPosition, 17:PacketPositionLook, 18:PacketLook, 15:PacketFlying, 19:PacketVehicleMove, 20:PacketSteerBoat, 22:PacketCraftRecipeRequest, 23:PacketAbilities, 24:PacketBlockDig, 25:PacketEntityAction, 26:PacketSteerVehicle, 29:PacketResourcePackReceive, 33:PacketHeldItemSlot, 36:PacketSetCreativeSlot, 38:PacketUpdateSign, 39:PacketArmAnimation, 40:PacketSpectate, 41:PacketBlockPlace, 42:PacketUseItem, 30:PacketAdvancementTab, 27:PacketCraftingBookData }, + 403 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 11:PacketEditBook, 12:PacketQueryEntityNbt, 21:PacketPickItem, 28:PacketNameItem, 31:PacketSelectTrade, 32:PacketSetBeaconEffect, 34:PacketUpdateCommandBlock, 35:PacketUpdateCommandBlockMinecart, 37:PacketUpdateStructureBlock, 5:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 13:PacketUseEntity, 14:PacketKeepAlive, 16:PacketPosition, 17:PacketPositionLook, 18:PacketLook, 15:PacketFlying, 19:PacketVehicleMove, 20:PacketSteerBoat, 22:PacketCraftRecipeRequest, 23:PacketAbilities, 24:PacketBlockDig, 25:PacketEntityAction, 26:PacketSteerVehicle, 29:PacketResourcePackReceive, 33:PacketHeldItemSlot, 36:PacketSetCreativeSlot, 38:PacketUpdateSign, 39:PacketArmAnimation, 40:PacketSpectate, 41:PacketBlockPlace, 42:PacketUseItem, 30:PacketAdvancementTab, 27:PacketCraftingBookData }, + 402 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 11:PacketEditBook, 12:PacketQueryEntityNbt, 21:PacketPickItem, 28:PacketNameItem, 31:PacketSelectTrade, 32:PacketSetBeaconEffect, 34:PacketUpdateCommandBlock, 35:PacketUpdateCommandBlockMinecart, 37:PacketUpdateStructureBlock, 5:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 13:PacketUseEntity, 14:PacketKeepAlive, 16:PacketPosition, 17:PacketPositionLook, 18:PacketLook, 15:PacketFlying, 19:PacketVehicleMove, 20:PacketSteerBoat, 22:PacketCraftRecipeRequest, 23:PacketAbilities, 24:PacketBlockDig, 25:PacketEntityAction, 26:PacketSteerVehicle, 29:PacketResourcePackReceive, 33:PacketHeldItemSlot, 36:PacketSetCreativeSlot, 38:PacketUpdateSign, 39:PacketArmAnimation, 40:PacketSpectate, 41:PacketBlockPlace, 42:PacketUseItem, 30:PacketAdvancementTab, 27:PacketCraftingBookData }, + 401 : { 0:PacketTeleportConfirm, 1:PacketQueryBlockNbt, 11:PacketEditBook, 12:PacketQueryEntityNbt, 21:PacketPickItem, 28:PacketNameItem, 31:PacketSelectTrade, 32:PacketSetBeaconEffect, 34:PacketUpdateCommandBlock, 35:PacketUpdateCommandBlockMinecart, 37:PacketUpdateStructureBlock, 5:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 13:PacketUseEntity, 14:PacketKeepAlive, 16:PacketPosition, 17:PacketPositionLook, 18:PacketLook, 15:PacketFlying, 19:PacketVehicleMove, 20:PacketSteerBoat, 22:PacketCraftRecipeRequest, 23:PacketAbilities, 24:PacketBlockDig, 25:PacketEntityAction, 26:PacketSteerVehicle, 29:PacketResourcePackReceive, 33:PacketHeldItemSlot, 36:PacketSetCreativeSlot, 38:PacketUpdateSign, 39:PacketArmAnimation, 40:PacketSpectate, 41:PacketBlockPlace, 42:PacketUseItem, 30:PacketAdvancementTab, 27:PacketCraftingBookData }, + 335 : { 0:PacketTeleportConfirm, 2:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 11:PacketUseEntity, 12:PacketKeepAlive, 14:PacketPosition, 15:PacketPositionLook, 16:PacketLook, 13:PacketFlying, 17:PacketVehicleMove, 18:PacketSteerBoat, 19:PacketAbilities, 20:PacketBlockDig, 21:PacketEntityAction, 22:PacketSteerVehicle, 24:PacketResourcePackReceive, 26:PacketHeldItemSlot, 27:PacketSetCreativeSlot, 28:PacketUpdateSign, 29:PacketArmAnimation, 30:PacketSpectate, 31:PacketBlockPlace, 32:PacketUseItem, 25:PacketAdvancementTab, 23:PacketCraftingBookData, 1:PacketPrepareCraftingGrid }, + 340 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 13:PacketPosition, 14:PacketPositionLook, 15:PacketLook, 12:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketCraftRecipeRequest, 19:PacketAbilities, 20:PacketBlockDig, 21:PacketEntityAction, 22:PacketSteerVehicle, 24:PacketResourcePackReceive, 26:PacketHeldItemSlot, 27:PacketSetCreativeSlot, 28:PacketUpdateSign, 29:PacketArmAnimation, 30:PacketSpectate, 31:PacketBlockPlace, 32:PacketUseItem, 25:PacketAdvancementTab, 23:PacketCraftingBookData }, + 338 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 13:PacketPosition, 14:PacketPositionLook, 15:PacketLook, 12:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketCraftRecipeRequest, 19:PacketAbilities, 20:PacketBlockDig, 21:PacketEntityAction, 22:PacketSteerVehicle, 24:PacketResourcePackReceive, 26:PacketHeldItemSlot, 27:PacketSetCreativeSlot, 28:PacketUpdateSign, 29:PacketArmAnimation, 30:PacketSpectate, 31:PacketBlockPlace, 32:PacketUseItem, 25:PacketAdvancementTab, 23:PacketCraftingBookData }, + 331 : { 0:PacketTeleportConfirm, 2:PacketTabComplete, 3:PacketChat, 4:PacketClientCommand, 5:PacketSettings, 6:PacketTransaction, 7:PacketEnchantItem, 8:PacketWindowClick, 9:PacketCloseWindow, 10:PacketCustomPayload, 11:PacketUseEntity, 12:PacketKeepAlive, 13:PacketPosition, 14:PacketPositionLook, 15:PacketLook, 16:PacketFlying, 17:PacketVehicleMove, 18:PacketSteerBoat, 19:PacketAbilities, 20:PacketBlockDig, 21:PacketEntityAction, 22:PacketSteerVehicle, 24:PacketResourcePackReceive, 25:PacketHeldItemSlot, 26:PacketSetCreativeSlot, 27:PacketUpdateSign, 28:PacketArmAnimation, 29:PacketSpectate, 30:PacketBlockPlace, 31:PacketUseItem, 32:PacketAdvancementTab, 23:PacketCraftingBookData, 1:PacketPrepareCraftingGrid }, + 315 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 12:PacketPosition, 13:PacketPositionLook, 14:PacketLook, 15:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketAbilities, 19:PacketBlockDig, 20:PacketEntityAction, 21:PacketSteerVehicle, 22:PacketResourcePackReceive, 23:PacketHeldItemSlot, 24:PacketSetCreativeSlot, 25:PacketUpdateSign, 26:PacketArmAnimation, 27:PacketSpectate, 28:PacketBlockPlace, 29:PacketUseItem }, + 210 : { 0:PacketTeleportConfirm, 1:PacketTabComplete, 2:PacketChat, 3:PacketClientCommand, 4:PacketSettings, 5:PacketTransaction, 6:PacketEnchantItem, 7:PacketWindowClick, 8:PacketCloseWindow, 9:PacketCustomPayload, 10:PacketUseEntity, 11:PacketKeepAlive, 12:PacketPosition, 13:PacketPositionLook, 14:PacketLook, 15:PacketFlying, 16:PacketVehicleMove, 17:PacketSteerBoat, 18:PacketAbilities, 19:PacketBlockDig, 20:PacketEntityAction, 21:PacketSteerVehicle, 22:PacketResourcePackReceive, 23:PacketHeldItemSlot, 24:PacketSetCreativeSlot, 25:PacketUpdateSign, 26:PacketArmAnimation, 27:PacketSpectate, 28:PacketBlockPlace, 29:PacketUseItem }, + 76 : { 0:PacketTabComplete, 1:PacketChat, 2:PacketClientCommand, 3:PacketSettings, 4:PacketTransaction, 5:PacketEnchantItem, 6:PacketWindowClick, 7:PacketCloseWindow, 8:PacketCustomPayload, 9:PacketUseEntity, 10:PacketKeepAlive, 11:PacketPosition, 12:PacketPositionLook, 13:PacketLook, 14:PacketFlying, 15:PacketAbilities, 16:PacketBlockDig, 17:PacketEntityAction, 18:PacketSteerVehicle, 19:PacketResourcePackReceive, 20:PacketHeldItemSlot, 21:PacketSetCreativeSlot, 22:PacketUpdateSign, 23:PacketArmAnimation, 24:PacketSpectate, 25:PacketBlockPlace, 26:PacketUseItem }, + 47 : { 20:PacketTabComplete, 1:PacketChat, 22:PacketClientCommand, 21:PacketSettings, 15:PacketTransaction, 17:PacketEnchantItem, 14:PacketWindowClick, 13:PacketCloseWindow, 23:PacketCustomPayload, 2:PacketUseEntity, 0:PacketKeepAlive, 4:PacketPosition, 6:PacketPositionLook, 5:PacketLook, 3:PacketFlying, 19:PacketAbilities, 7:PacketBlockDig, 11:PacketEntityAction, 12:PacketSteerVehicle, 25:PacketResourcePackReceive, 9:PacketHeldItemSlot, 16:PacketSetCreativeSlot, 18:PacketUpdateSign, 10:PacketArmAnimation, 24:PacketSpectate, 8:PacketBlockPlace }, + 5 : { 20:PacketTabComplete, 1:PacketChat, 22:PacketClientCommand, 21:PacketSettings, 15:PacketTransaction, 17:PacketEnchantItem, 14:PacketWindowClick, 13:PacketCloseWindow, 23:PacketCustomPayload, 2:PacketUseEntity, 0:PacketKeepAlive, 4:PacketPosition, 6:PacketPositionLook, 5:PacketLook, 3:PacketFlying, 19:PacketAbilities, 7:PacketBlockDig, 11:PacketEntityAction, 12:PacketSteerVehicle, 9:PacketHeldItemSlot, 16:PacketSetCreativeSlot, 18:PacketUpdateSign, 10:PacketArmAnimation, 8:PacketBlockPlace } +} diff --git a/aiocraft/mc/proto/play/serverbound/packet_abilities.py b/aiocraft/mc/proto/play/serverbound/packet_abilities.py new file mode 100644 index 0000000..4e6cebc --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_abilities.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketAbilities(Packet): + __slots__ = ( 'id', 'walkingSpeed', 'flyingSpeed', 'flags' ) + + walkingSpeed : float + flyingSpeed : float + flags : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 19, + 47 : 19, + 76 : 15, + 107 : 18, + 108 : 18, + 109 : 18, + 110 : 18, + 201 : 18, + 210 : 18, + 304 : 18, + 315 : 18, + 321 : 19, + 327 : 19, + 331 : 19, + 335 : 19, + 338 : 19, + 340 : 19, + 351 : 19, + 393 : 23, + 401 : 23, + 402 : 23, + 403 : 23, + 404 : 23, + 477 : 25, + 480 : 25, + 490 : 25, + 498 : 25, + 573 : 25, + 575 : 25, + 578 : 25, + 709 : 25, + 734 : 26, + 735 : 26, + 736 : 26, + 751 : 26, + 755 : 25, + 756 : 25, + 757 : 25, + 1073741839 : 26 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 47 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 76 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 107 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 108 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 109 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 110 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 201 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 210 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 304 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 315 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 321 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 327 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 331 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 335 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 338 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 340 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 351 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 393 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 401 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 402 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 403 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 404 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 477 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 480 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 490 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 498 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 573 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 575 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 578 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 709 : [ ( 'flags', Byte ), ( 'flyingSpeed', Float ), ( 'walkingSpeed', Float ) ], + 734 : [ ( 'flags', Byte ) ], + 735 : [ ( 'flags', Byte ) ], + 736 : [ ( 'flags', Byte ) ], + 751 : [ ( 'flags', Byte ) ], + 755 : [ ( 'flags', Byte ) ], + 756 : [ ( 'flags', Byte ) ], + 757 : [ ( 'flags', Byte ) ], + 1073741839 : [ ( 'flags', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_advancement_tab.py b/aiocraft/mc/proto/play/serverbound/packet_advancement_tab.py new file mode 100644 index 0000000..d38f4a0 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_advancement_tab.py @@ -0,0 +1,70 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketAdvancementTab(Packet): + __slots__ = ( 'id', 'action', 'tabId' ) + + action : int + tabId : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 331 : 32, + 335 : 25, + 338 : 25, + 340 : 25, + 351 : 25, + 393 : 30, + 401 : 30, + 402 : 30, + 403 : 30, + 404 : 30, + 477 : 32, + 480 : 32, + 490 : 32, + 498 : 32, + 573 : 32, + 575 : 32, + 578 : 32, + 709 : 32, + 734 : 33, + 735 : 33, + 736 : 33, + 751 : 34, + 755 : 34, + 756 : 34, + 757 : 34, + 1073741839 : 34 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 331 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 335 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 338 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 340 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 351 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 393 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 401 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 402 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 403 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 404 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 477 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 480 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 490 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 498 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 573 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 575 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 578 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 709 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 734 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 735 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 736 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 751 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 755 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 756 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 757 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ], + 1073741839 : [ ( 'action', VarInt ), ( 'tabId', SwitchType('action', { 0 : String, 1 : Void }, None, ) ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_arm_animation.py b/aiocraft/mc/proto/play/serverbound/packet_arm_animation.py new file mode 100644 index 0000000..56a5c2e --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_arm_animation.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketArmAnimation(Packet): + __slots__ = ( 'id', 'hand', 'animation', 'entityId' ) + + hand : int + animation : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 10, + 47 : 10, + 76 : 23, + 107 : 26, + 108 : 26, + 109 : 26, + 110 : 26, + 201 : 26, + 210 : 26, + 304 : 26, + 315 : 26, + 321 : 28, + 327 : 28, + 331 : 28, + 335 : 29, + 338 : 29, + 340 : 29, + 351 : 29, + 393 : 39, + 401 : 39, + 402 : 39, + 403 : 39, + 404 : 39, + 477 : 42, + 480 : 42, + 490 : 42, + 498 : 42, + 573 : 42, + 575 : 42, + 578 : 42, + 709 : 42, + 734 : 43, + 735 : 43, + 736 : 43, + 751 : 44, + 755 : 44, + 756 : 44, + 757 : 44, + 1073741839 : 44 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'animation', Byte ) ], + 47 : [ ], + 76 : [ ( 'hand', VarInt ) ], + 107 : [ ( 'hand', VarInt ) ], + 108 : [ ( 'hand', VarInt ) ], + 109 : [ ( 'hand', VarInt ) ], + 110 : [ ( 'hand', VarInt ) ], + 201 : [ ( 'hand', VarInt ) ], + 210 : [ ( 'hand', VarInt ) ], + 304 : [ ( 'hand', VarInt ) ], + 315 : [ ( 'hand', VarInt ) ], + 321 : [ ( 'hand', VarInt ) ], + 327 : [ ( 'hand', VarInt ) ], + 331 : [ ( 'hand', VarInt ) ], + 335 : [ ( 'hand', VarInt ) ], + 338 : [ ( 'hand', VarInt ) ], + 340 : [ ( 'hand', VarInt ) ], + 351 : [ ( 'hand', VarInt ) ], + 393 : [ ( 'hand', VarInt ) ], + 401 : [ ( 'hand', VarInt ) ], + 402 : [ ( 'hand', VarInt ) ], + 403 : [ ( 'hand', VarInt ) ], + 404 : [ ( 'hand', VarInt ) ], + 477 : [ ( 'hand', VarInt ) ], + 480 : [ ( 'hand', VarInt ) ], + 490 : [ ( 'hand', VarInt ) ], + 498 : [ ( 'hand', VarInt ) ], + 573 : [ ( 'hand', VarInt ) ], + 575 : [ ( 'hand', VarInt ) ], + 578 : [ ( 'hand', VarInt ) ], + 709 : [ ( 'hand', VarInt ) ], + 734 : [ ( 'hand', VarInt ) ], + 735 : [ ( 'hand', VarInt ) ], + 736 : [ ( 'hand', VarInt ) ], + 751 : [ ( 'hand', VarInt ) ], + 755 : [ ( 'hand', VarInt ) ], + 756 : [ ( 'hand', VarInt ) ], + 757 : [ ( 'hand', VarInt ) ], + 1073741839 : [ ( 'hand', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_block_dig.py b/aiocraft/mc/proto/play/serverbound/packet_block_dig.py new file mode 100644 index 0000000..40cb0da --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_block_dig.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketBlockDig(Packet): + __slots__ = ( 'id', 'face', 'status', 'location' ) + + face : int + status : int + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 7, + 47 : 7, + 76 : 16, + 107 : 19, + 108 : 19, + 109 : 19, + 110 : 19, + 201 : 19, + 210 : 19, + 304 : 19, + 315 : 19, + 321 : 20, + 327 : 20, + 331 : 20, + 335 : 20, + 338 : 20, + 340 : 20, + 351 : 20, + 393 : 24, + 401 : 24, + 402 : 24, + 403 : 24, + 404 : 24, + 477 : 26, + 480 : 26, + 490 : 26, + 498 : 26, + 573 : 26, + 575 : 26, + 578 : 26, + 709 : 26, + 734 : 27, + 735 : 27, + 736 : 27, + 751 : 27, + 755 : 26, + 756 : 26, + 757 : 26, + 1073741839 : 27 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'status', Byte ), ( 'location', TrailingData ), ( 'face', Byte ) ], + 47 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 76 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 107 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 108 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 109 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 110 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 201 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 210 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 304 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 315 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 321 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 327 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 331 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 335 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 338 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 340 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 351 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 393 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 401 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 402 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 403 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 404 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 477 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 480 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 490 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 498 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 573 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 575 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 578 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 709 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 734 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 735 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 736 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 751 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 755 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 756 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 757 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ], + 1073741839 : [ ( 'status', Byte ), ( 'location', Position ), ( 'face', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_block_place.py b/aiocraft/mc/proto/play/serverbound/packet_block_place.py new file mode 100644 index 0000000..57a013c --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_block_place.py @@ -0,0 +1,102 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketBlockPlace(Packet): + __slots__ = ( 'id', 'insideBlock', 'direction', 'heldItem', 'cursorZ', 'hand', 'cursorX', 'cursorY', 'location' ) + + insideBlock : bool + direction : int + heldItem : dict + cursorZ : Union[float,int] + hand : int + cursorX : Union[float,int] + cursorY : Union[float,int] + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 8, + 47 : 8, + 76 : 25, + 107 : 28, + 108 : 28, + 109 : 28, + 110 : 28, + 201 : 28, + 210 : 28, + 304 : 28, + 315 : 28, + 321 : 30, + 327 : 30, + 331 : 30, + 335 : 31, + 338 : 31, + 340 : 31, + 351 : 31, + 393 : 41, + 401 : 41, + 402 : 41, + 403 : 41, + 404 : 41, + 477 : 44, + 480 : 44, + 490 : 44, + 498 : 44, + 573 : 44, + 575 : 44, + 578 : 44, + 709 : 44, + 734 : 45, + 735 : 45, + 736 : 45, + 751 : 46, + 755 : 46, + 756 : 46, + 757 : 46, + 1073741839 : 46 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'location', TrailingData ), ( 'direction', Byte ), ( 'heldItem', Slot ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 47 : [ ( 'location', Position ), ( 'direction', Byte ), ( 'heldItem', Slot ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 76 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 107 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 108 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 109 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 110 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 201 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 210 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 304 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Byte ), ( 'cursorY', Byte ), ( 'cursorZ', Byte ) ], + 315 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 321 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 327 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 331 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 335 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 338 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 340 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 351 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 393 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 401 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 402 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 403 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 404 : [ ( 'location', Position ), ( 'direction', VarInt ), ( 'hand', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ) ], + 477 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 480 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 490 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 498 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 573 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 575 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 578 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 709 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 734 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 735 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 736 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 751 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 755 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 756 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 757 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ], + 1073741839 : [ ( 'hand', VarInt ), ( 'location', Position ), ( 'direction', VarInt ), ( 'cursorX', Float ), ( 'cursorY', Float ), ( 'cursorZ', Float ), ( 'insideBlock', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_chat.py b/aiocraft/mc/proto/play/serverbound/packet_chat.py new file mode 100644 index 0000000..29b7f32 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_chat.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketChat(Packet): + __slots__ = ( 'id', 'message' ) + + message : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 1, + 47 : 1, + 76 : 1, + 107 : 2, + 108 : 2, + 109 : 2, + 110 : 2, + 201 : 2, + 210 : 2, + 304 : 2, + 315 : 2, + 321 : 3, + 327 : 3, + 331 : 3, + 335 : 3, + 338 : 2, + 340 : 2, + 351 : 1, + 393 : 2, + 401 : 2, + 402 : 2, + 403 : 2, + 404 : 2, + 477 : 3, + 480 : 3, + 490 : 3, + 498 : 3, + 573 : 3, + 575 : 3, + 578 : 3, + 709 : 3, + 734 : 3, + 735 : 3, + 736 : 3, + 751 : 3, + 755 : 3, + 756 : 3, + 757 : 3, + 1073741839 : 3 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'message', String ) ], + 47 : [ ( 'message', String ) ], + 76 : [ ( 'message', String ) ], + 107 : [ ( 'message', String ) ], + 108 : [ ( 'message', String ) ], + 109 : [ ( 'message', String ) ], + 110 : [ ( 'message', String ) ], + 201 : [ ( 'message', String ) ], + 210 : [ ( 'message', String ) ], + 304 : [ ( 'message', String ) ], + 315 : [ ( 'message', String ) ], + 321 : [ ( 'message', String ) ], + 327 : [ ( 'message', String ) ], + 331 : [ ( 'message', String ) ], + 335 : [ ( 'message', String ) ], + 338 : [ ( 'message', String ) ], + 340 : [ ( 'message', String ) ], + 351 : [ ( 'message', String ) ], + 393 : [ ( 'message', String ) ], + 401 : [ ( 'message', String ) ], + 402 : [ ( 'message', String ) ], + 403 : [ ( 'message', String ) ], + 404 : [ ( 'message', String ) ], + 477 : [ ( 'message', String ) ], + 480 : [ ( 'message', String ) ], + 490 : [ ( 'message', String ) ], + 498 : [ ( 'message', String ) ], + 573 : [ ( 'message', String ) ], + 575 : [ ( 'message', String ) ], + 578 : [ ( 'message', String ) ], + 709 : [ ( 'message', String ) ], + 734 : [ ( 'message', String ) ], + 735 : [ ( 'message', String ) ], + 736 : [ ( 'message', String ) ], + 751 : [ ( 'message', String ) ], + 755 : [ ( 'message', String ) ], + 756 : [ ( 'message', String ) ], + 757 : [ ( 'message', String ) ], + 1073741839 : [ ( 'message', String ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_client_command.py b/aiocraft/mc/proto/play/serverbound/packet_client_command.py new file mode 100644 index 0000000..e9eec93 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_client_command.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketClientCommand(Packet): + __slots__ = ( 'id', 'actionId', 'payload' ) + + actionId : int + payload : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 22, + 47 : 22, + 76 : 2, + 107 : 3, + 108 : 3, + 109 : 3, + 110 : 3, + 201 : 3, + 210 : 3, + 304 : 3, + 315 : 3, + 321 : 4, + 327 : 4, + 331 : 4, + 335 : 4, + 338 : 3, + 340 : 3, + 351 : 2, + 393 : 3, + 401 : 3, + 402 : 3, + 403 : 3, + 404 : 3, + 477 : 4, + 480 : 4, + 490 : 4, + 498 : 4, + 573 : 4, + 575 : 4, + 578 : 4, + 709 : 4, + 734 : 4, + 735 : 4, + 736 : 4, + 751 : 4, + 755 : 4, + 756 : 4, + 757 : 4, + 1073741839 : 4 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'payload', Byte ) ], + 47 : [ ( 'payload', VarInt ) ], + 76 : [ ( 'payload', VarInt ) ], + 107 : [ ( 'actionId', VarInt ) ], + 108 : [ ( 'actionId', VarInt ) ], + 109 : [ ( 'actionId', VarInt ) ], + 110 : [ ( 'actionId', VarInt ) ], + 201 : [ ( 'actionId', VarInt ) ], + 210 : [ ( 'actionId', VarInt ) ], + 304 : [ ( 'actionId', VarInt ) ], + 315 : [ ( 'actionId', VarInt ) ], + 321 : [ ( 'actionId', VarInt ) ], + 327 : [ ( 'actionId', VarInt ) ], + 331 : [ ( 'actionId', VarInt ) ], + 335 : [ ( 'actionId', VarInt ) ], + 338 : [ ( 'actionId', VarInt ) ], + 340 : [ ( 'actionId', VarInt ) ], + 351 : [ ( 'actionId', VarInt ) ], + 393 : [ ( 'actionId', VarInt ) ], + 401 : [ ( 'actionId', VarInt ) ], + 402 : [ ( 'actionId', VarInt ) ], + 403 : [ ( 'actionId', VarInt ) ], + 404 : [ ( 'actionId', VarInt ) ], + 477 : [ ( 'actionId', VarInt ) ], + 480 : [ ( 'actionId', VarInt ) ], + 490 : [ ( 'actionId', VarInt ) ], + 498 : [ ( 'actionId', VarInt ) ], + 573 : [ ( 'actionId', VarInt ) ], + 575 : [ ( 'actionId', VarInt ) ], + 578 : [ ( 'actionId', VarInt ) ], + 709 : [ ( 'actionId', VarInt ) ], + 734 : [ ( 'actionId', VarInt ) ], + 735 : [ ( 'actionId', VarInt ) ], + 736 : [ ( 'actionId', VarInt ) ], + 751 : [ ( 'actionId', VarInt ) ], + 755 : [ ( 'actionId', VarInt ) ], + 756 : [ ( 'actionId', VarInt ) ], + 757 : [ ( 'actionId', VarInt ) ], + 1073741839 : [ ( 'actionId', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_close_window.py b/aiocraft/mc/proto/play/serverbound/packet_close_window.py new file mode 100644 index 0000000..f734d6b --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_close_window.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCloseWindow(Packet): + __slots__ = ( 'id', 'windowId' ) + + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 13, + 47 : 13, + 76 : 7, + 107 : 8, + 108 : 8, + 109 : 8, + 110 : 8, + 201 : 8, + 210 : 8, + 304 : 8, + 315 : 8, + 321 : 9, + 327 : 9, + 331 : 9, + 335 : 9, + 338 : 8, + 340 : 8, + 351 : 8, + 393 : 9, + 401 : 9, + 402 : 9, + 403 : 9, + 404 : 9, + 477 : 10, + 480 : 10, + 490 : 10, + 498 : 10, + 573 : 10, + 575 : 10, + 578 : 10, + 709 : 10, + 734 : 10, + 735 : 10, + 736 : 10, + 751 : 10, + 755 : 9, + 756 : 9, + 757 : 9, + 1073741839 : 10 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ) ], + 47 : [ ( 'windowId', Byte ) ], + 76 : [ ( 'windowId', Byte ) ], + 107 : [ ( 'windowId', Byte ) ], + 108 : [ ( 'windowId', Byte ) ], + 109 : [ ( 'windowId', Byte ) ], + 110 : [ ( 'windowId', Byte ) ], + 201 : [ ( 'windowId', Byte ) ], + 210 : [ ( 'windowId', Byte ) ], + 304 : [ ( 'windowId', Byte ) ], + 315 : [ ( 'windowId', Byte ) ], + 321 : [ ( 'windowId', Byte ) ], + 327 : [ ( 'windowId', Byte ) ], + 331 : [ ( 'windowId', Byte ) ], + 335 : [ ( 'windowId', Byte ) ], + 338 : [ ( 'windowId', Byte ) ], + 340 : [ ( 'windowId', Byte ) ], + 351 : [ ( 'windowId', Byte ) ], + 393 : [ ( 'windowId', Byte ) ], + 401 : [ ( 'windowId', Byte ) ], + 402 : [ ( 'windowId', Byte ) ], + 403 : [ ( 'windowId', Byte ) ], + 404 : [ ( 'windowId', Byte ) ], + 477 : [ ( 'windowId', Byte ) ], + 480 : [ ( 'windowId', Byte ) ], + 490 : [ ( 'windowId', Byte ) ], + 498 : [ ( 'windowId', Byte ) ], + 573 : [ ( 'windowId', Byte ) ], + 575 : [ ( 'windowId', Byte ) ], + 578 : [ ( 'windowId', Byte ) ], + 709 : [ ( 'windowId', Byte ) ], + 734 : [ ( 'windowId', Byte ) ], + 735 : [ ( 'windowId', Byte ) ], + 736 : [ ( 'windowId', Byte ) ], + 751 : [ ( 'windowId', Byte ) ], + 755 : [ ( 'windowId', Byte ) ], + 756 : [ ( 'windowId', Byte ) ], + 757 : [ ( 'windowId', Byte ) ], + 1073741839 : [ ( 'windowId', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_craft_recipe_request.py b/aiocraft/mc/proto/play/serverbound/packet_craft_recipe_request.py new file mode 100644 index 0000000..3d7f0b5 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_craft_recipe_request.py @@ -0,0 +1,67 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCraftRecipeRequest(Packet): + __slots__ = ( 'id', 'recipe', 'makeAll', 'windowId' ) + + recipe : Union[str,int] + makeAll : bool + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 338 : 18, + 340 : 18, + 351 : 18, + 393 : 22, + 401 : 22, + 402 : 22, + 403 : 22, + 404 : 22, + 477 : 24, + 480 : 24, + 490 : 24, + 498 : 24, + 573 : 24, + 575 : 24, + 578 : 24, + 709 : 24, + 734 : 25, + 735 : 25, + 736 : 25, + 751 : 25, + 755 : 24, + 756 : 24, + 757 : 24, + 1073741839 : 25 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 338 : [ ( 'windowId', Byte ), ( 'recipe', VarInt ), ( 'makeAll', Boolean ) ], + 340 : [ ( 'windowId', Byte ), ( 'recipe', VarInt ), ( 'makeAll', Boolean ) ], + 351 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 393 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 401 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 402 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 403 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 404 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 477 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 480 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 490 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 498 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 573 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 575 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 578 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 709 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 734 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 735 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 736 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 751 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 755 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 756 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 757 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'recipe', String ), ( 'makeAll', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_crafting_book_data.py b/aiocraft/mc/proto/play/serverbound/packet_crafting_book_data.py new file mode 100644 index 0000000..2e1a80d --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_crafting_book_data.py @@ -0,0 +1,63 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCraftingBookData(Packet): + __slots__ = ( 'id', 'type' ) + + type : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 321 : 23, + 327 : 23, + 331 : 23, + 335 : 23, + 338 : 23, + 340 : 23, + 351 : 23, + 393 : 27, + 401 : 27, + 402 : 27, + 403 : 27, + 404 : 27, + 477 : 29, + 480 : 29, + 490 : 29, + 498 : 29, + 573 : 29, + 575 : 29, + 578 : 29, + 709 : 29, + 734 : 30, + 735 : 30, + 736 : 30 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 321 : [ ( 'type', Int ) ], + 327 : [ ( 'type', Int ) ], + 331 : [ ( 'type', Int ) ], + 335 : [ ( 'type', VarInt ) ], + 338 : [ ( 'type', VarInt ) ], + 340 : [ ( 'type', VarInt ) ], + 351 : [ ( 'type', VarInt ) ], + 393 : [ ( 'type', VarInt ) ], + 401 : [ ( 'type', VarInt ) ], + 402 : [ ( 'type', VarInt ) ], + 403 : [ ( 'type', VarInt ) ], + 404 : [ ( 'type', VarInt ) ], + 477 : [ ( 'type', VarInt ) ], + 480 : [ ( 'type', VarInt ) ], + 490 : [ ( 'type', VarInt ) ], + 498 : [ ( 'type', VarInt ) ], + 573 : [ ( 'type', VarInt ) ], + 575 : [ ( 'type', VarInt ) ], + 578 : [ ( 'type', VarInt ) ], + 709 : [ ( 'type', VarInt ) ], + 734 : [ ( 'type', VarInt ) ], + 735 : [ ( 'type', VarInt ) ], + 736 : [ ( 'type', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_custom_payload.py b/aiocraft/mc/proto/play/serverbound/packet_custom_payload.py new file mode 100644 index 0000000..19fbf82 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_custom_payload.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketCustomPayload(Packet): + __slots__ = ( 'id', 'data', 'channel' ) + + data : bytes + channel : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 23, + 47 : 23, + 76 : 8, + 107 : 9, + 108 : 9, + 109 : 9, + 110 : 9, + 201 : 9, + 210 : 9, + 304 : 9, + 315 : 9, + 321 : 10, + 327 : 10, + 331 : 10, + 335 : 10, + 338 : 9, + 340 : 9, + 351 : 9, + 393 : 10, + 401 : 10, + 402 : 10, + 403 : 10, + 404 : 10, + 477 : 11, + 480 : 11, + 490 : 11, + 498 : 11, + 573 : 11, + 575 : 11, + 578 : 11, + 709 : 11, + 734 : 11, + 735 : 11, + 736 : 11, + 751 : 11, + 755 : 10, + 756 : 10, + 757 : 10, + 1073741839 : 11 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'channel', String ), ( 'data', ByteArray ) ], + 47 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 76 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 107 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 108 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 109 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 110 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 201 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 210 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 304 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 315 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 321 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 327 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 331 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 335 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 338 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 340 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 351 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 393 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 401 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 402 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 403 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 404 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 477 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 480 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 490 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 498 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 573 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 575 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 578 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 709 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 734 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 735 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 736 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 751 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 755 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 756 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 757 : [ ( 'channel', String ), ( 'data', TrailingData ) ], + 1073741839 : [ ( 'channel', String ), ( 'data', TrailingData ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_displayed_recipe.py b/aiocraft/mc/proto/play/serverbound/packet_displayed_recipe.py new file mode 100644 index 0000000..aed877f --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_displayed_recipe.py @@ -0,0 +1,27 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketDisplayedRecipe(Packet): + __slots__ = ( 'id', 'recipeId' ) + + recipeId : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 751 : 31, + 755 : 31, + 756 : 31, + 757 : 31, + 1073741839 : 30 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 751 : [ ( 'recipeId', String ) ], + 755 : [ ( 'recipeId', String ) ], + 756 : [ ( 'recipeId', String ) ], + 757 : [ ( 'recipeId', String ) ], + 1073741839 : [ ( 'recipeId', String ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_edit_book.py b/aiocraft/mc/proto/play/serverbound/packet_edit_book.py new file mode 100644 index 0000000..b95eb26 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_edit_book.py @@ -0,0 +1,63 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEditBook(Packet): + __slots__ = ( 'id', 'title', 'signing', 'new_book', 'pages', 'hand' ) + + title : tuple + signing : bool + new_book : dict + pages : list + hand : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 11, + 401 : 11, + 402 : 11, + 403 : 11, + 404 : 11, + 477 : 12, + 480 : 12, + 490 : 12, + 498 : 12, + 573 : 12, + 575 : 12, + 578 : 12, + 709 : 12, + 734 : 12, + 735 : 12, + 736 : 12, + 751 : 12, + 755 : 11, + 756 : 11, + 757 : 11, + 1073741839 : 12 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'new_book', Slot ), ( 'signing', Boolean ) ], + 401 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 402 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 403 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 404 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 477 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 480 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 490 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 498 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 573 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 575 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 578 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 709 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 734 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 735 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 736 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 751 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 755 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ], + 756 : [ ( 'hand', VarInt ), ( 'pages', ArrayType(String, VarInt, ) ), ( 'title', OptionalType(String, ) ) ], + 757 : [ ( 'hand', VarInt ), ( 'pages', ArrayType(String, VarInt, ) ), ( 'title', OptionalType(String, ) ) ], + 1073741839 : [ ( 'new_book', Slot ), ( 'signing', Boolean ), ( 'hand', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_enchant_item.py b/aiocraft/mc/proto/play/serverbound/packet_enchant_item.py new file mode 100644 index 0000000..0478ef3 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_enchant_item.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEnchantItem(Packet): + __slots__ = ( 'id', 'windowId', 'enchantment' ) + + windowId : int + enchantment : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 17, + 47 : 17, + 76 : 5, + 107 : 6, + 108 : 6, + 109 : 6, + 110 : 6, + 201 : 6, + 210 : 6, + 304 : 6, + 315 : 6, + 321 : 7, + 327 : 7, + 331 : 7, + 335 : 7, + 338 : 6, + 340 : 6, + 351 : 6, + 393 : 7, + 401 : 7, + 402 : 7, + 403 : 7, + 404 : 7, + 477 : 8, + 480 : 8, + 490 : 8, + 498 : 8, + 573 : 8, + 575 : 8, + 578 : 8, + 709 : 8, + 734 : 8, + 735 : 8, + 736 : 8, + 751 : 8, + 755 : 7, + 756 : 7, + 757 : 7, + 1073741839 : 8 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 47 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 76 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 107 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 108 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 109 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 110 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 201 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 210 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 304 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 315 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 321 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 327 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 331 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 335 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 338 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 340 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 351 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 393 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 401 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 402 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 403 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 404 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 477 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 480 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 490 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 498 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 573 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 575 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 578 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 709 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 734 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 735 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 736 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 751 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 755 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 756 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 757 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'enchantment', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_entity_action.py b/aiocraft/mc/proto/play/serverbound/packet_entity_action.py new file mode 100644 index 0000000..d5a3df4 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_entity_action.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketEntityAction(Packet): + __slots__ = ( 'id', 'jumpBoost', 'actionId', 'entityId' ) + + jumpBoost : int + actionId : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 11, + 47 : 11, + 76 : 17, + 107 : 20, + 108 : 20, + 109 : 20, + 110 : 20, + 201 : 20, + 210 : 20, + 304 : 20, + 315 : 20, + 321 : 21, + 327 : 21, + 331 : 21, + 335 : 21, + 338 : 21, + 340 : 21, + 351 : 21, + 393 : 25, + 401 : 25, + 402 : 25, + 403 : 25, + 404 : 25, + 477 : 27, + 480 : 27, + 490 : 27, + 498 : 27, + 573 : 27, + 575 : 27, + 578 : 27, + 709 : 27, + 734 : 28, + 735 : 28, + 736 : 28, + 751 : 28, + 755 : 27, + 756 : 27, + 757 : 27, + 1073741839 : 28 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'entityId', Int ), ( 'actionId', Byte ), ( 'jumpBoost', Int ) ], + 47 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 76 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 107 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 108 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 109 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 110 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 201 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 210 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 304 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 315 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 321 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 327 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 331 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 335 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 338 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 340 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 351 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 393 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 401 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 402 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 403 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 404 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 477 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 480 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 490 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 498 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 573 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 575 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 578 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 709 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 734 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 735 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 736 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 751 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 755 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 756 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 757 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'actionId', VarInt ), ( 'jumpBoost', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_flying.py b/aiocraft/mc/proto/play/serverbound/packet_flying.py new file mode 100644 index 0000000..2ced44e --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_flying.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketFlying(Packet): + __slots__ = ( 'id', 'onGround' ) + + onGround : bool + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 3, + 47 : 3, + 76 : 14, + 107 : 15, + 108 : 15, + 109 : 15, + 110 : 15, + 201 : 15, + 210 : 15, + 304 : 15, + 315 : 15, + 321 : 16, + 327 : 16, + 331 : 16, + 335 : 13, + 338 : 12, + 340 : 12, + 351 : 12, + 393 : 15, + 401 : 15, + 402 : 15, + 403 : 15, + 404 : 15, + 477 : 20, + 480 : 20, + 490 : 20, + 498 : 20, + 573 : 20, + 575 : 20, + 578 : 20, + 709 : 20, + 734 : 21, + 735 : 21, + 736 : 21, + 751 : 21, + 755 : 20, + 756 : 20, + 757 : 20, + 1073741839 : 21 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'onGround', Boolean ) ], + 47 : [ ( 'onGround', Boolean ) ], + 76 : [ ( 'onGround', Boolean ) ], + 107 : [ ( 'onGround', Boolean ) ], + 108 : [ ( 'onGround', Boolean ) ], + 109 : [ ( 'onGround', Boolean ) ], + 110 : [ ( 'onGround', Boolean ) ], + 201 : [ ( 'onGround', Boolean ) ], + 210 : [ ( 'onGround', Boolean ) ], + 304 : [ ( 'onGround', Boolean ) ], + 315 : [ ( 'onGround', Boolean ) ], + 321 : [ ( 'onGround', Boolean ) ], + 327 : [ ( 'onGround', Boolean ) ], + 331 : [ ( 'onGround', Boolean ) ], + 335 : [ ( 'onGround', Boolean ) ], + 338 : [ ( 'onGround', Boolean ) ], + 340 : [ ( 'onGround', Boolean ) ], + 351 : [ ( 'onGround', Boolean ) ], + 393 : [ ( 'onGround', Boolean ) ], + 401 : [ ( 'onGround', Boolean ) ], + 402 : [ ( 'onGround', Boolean ) ], + 403 : [ ( 'onGround', Boolean ) ], + 404 : [ ( 'onGround', Boolean ) ], + 477 : [ ( 'onGround', Boolean ) ], + 480 : [ ( 'onGround', Boolean ) ], + 490 : [ ( 'onGround', Boolean ) ], + 498 : [ ( 'onGround', Boolean ) ], + 573 : [ ( 'onGround', Boolean ) ], + 575 : [ ( 'onGround', Boolean ) ], + 578 : [ ( 'onGround', Boolean ) ], + 709 : [ ( 'onGround', Boolean ) ], + 734 : [ ( 'onGround', Boolean ) ], + 735 : [ ( 'onGround', Boolean ) ], + 736 : [ ( 'onGround', Boolean ) ], + 751 : [ ( 'onGround', Boolean ) ], + 755 : [ ( 'onGround', Boolean ) ], + 756 : [ ( 'onGround', Boolean ) ], + 757 : [ ( 'onGround', Boolean ) ], + 1073741839 : [ ( 'onGround', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_generate_structure.py b/aiocraft/mc/proto/play/serverbound/packet_generate_structure.py new file mode 100644 index 0000000..61f2375 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_generate_structure.py @@ -0,0 +1,35 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketGenerateStructure(Packet): + __slots__ = ( 'id', 'keepJigsaws', 'levels', 'location' ) + + keepJigsaws : bool + levels : int + location : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 734 : 15, + 735 : 15, + 736 : 15, + 751 : 15, + 755 : 14, + 756 : 14, + 757 : 14, + 1073741839 : 15 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 734 : [ ( 'location', Position ), ( 'levels', VarInt ), ( 'keepJigsaws', Boolean ) ], + 735 : [ ( 'location', Position ), ( 'levels', VarInt ), ( 'keepJigsaws', Boolean ) ], + 736 : [ ( 'location', Position ), ( 'levels', VarInt ), ( 'keepJigsaws', Boolean ) ], + 751 : [ ( 'location', Position ), ( 'levels', VarInt ), ( 'keepJigsaws', Boolean ) ], + 755 : [ ( 'location', Position ), ( 'levels', VarInt ), ( 'keepJigsaws', Boolean ) ], + 756 : [ ( 'location', Position ), ( 'levels', VarInt ), ( 'keepJigsaws', Boolean ) ], + 757 : [ ( 'location', Position ), ( 'levels', VarInt ), ( 'keepJigsaws', Boolean ) ], + 1073741839 : [ ( 'location', Position ), ( 'levels', VarInt ), ( 'keepJigsaws', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_held_item_slot.py b/aiocraft/mc/proto/play/serverbound/packet_held_item_slot.py new file mode 100644 index 0000000..2b168cd --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_held_item_slot.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketHeldItemSlot(Packet): + __slots__ = ( 'id', 'slotId' ) + + slotId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 9, + 47 : 9, + 76 : 20, + 107 : 23, + 108 : 23, + 109 : 23, + 110 : 23, + 201 : 23, + 210 : 23, + 304 : 23, + 315 : 23, + 321 : 25, + 327 : 25, + 331 : 25, + 335 : 26, + 338 : 26, + 340 : 26, + 351 : 26, + 393 : 33, + 401 : 33, + 402 : 33, + 403 : 33, + 404 : 33, + 477 : 35, + 480 : 35, + 490 : 35, + 498 : 35, + 573 : 35, + 575 : 35, + 578 : 35, + 709 : 35, + 734 : 36, + 735 : 36, + 736 : 36, + 751 : 37, + 755 : 37, + 756 : 37, + 757 : 37, + 1073741839 : 37 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'slotId', Short ) ], + 47 : [ ( 'slotId', Short ) ], + 76 : [ ( 'slotId', Short ) ], + 107 : [ ( 'slotId', Short ) ], + 108 : [ ( 'slotId', Short ) ], + 109 : [ ( 'slotId', Short ) ], + 110 : [ ( 'slotId', Short ) ], + 201 : [ ( 'slotId', Short ) ], + 210 : [ ( 'slotId', Short ) ], + 304 : [ ( 'slotId', Short ) ], + 315 : [ ( 'slotId', Short ) ], + 321 : [ ( 'slotId', Short ) ], + 327 : [ ( 'slotId', Short ) ], + 331 : [ ( 'slotId', Short ) ], + 335 : [ ( 'slotId', Short ) ], + 338 : [ ( 'slotId', Short ) ], + 340 : [ ( 'slotId', Short ) ], + 351 : [ ( 'slotId', Short ) ], + 393 : [ ( 'slotId', Short ) ], + 401 : [ ( 'slotId', Short ) ], + 402 : [ ( 'slotId', Short ) ], + 403 : [ ( 'slotId', Short ) ], + 404 : [ ( 'slotId', Short ) ], + 477 : [ ( 'slotId', Short ) ], + 480 : [ ( 'slotId', Short ) ], + 490 : [ ( 'slotId', Short ) ], + 498 : [ ( 'slotId', Short ) ], + 573 : [ ( 'slotId', Short ) ], + 575 : [ ( 'slotId', Short ) ], + 578 : [ ( 'slotId', Short ) ], + 709 : [ ( 'slotId', Short ) ], + 734 : [ ( 'slotId', Short ) ], + 735 : [ ( 'slotId', Short ) ], + 736 : [ ( 'slotId', Short ) ], + 751 : [ ( 'slotId', Short ) ], + 755 : [ ( 'slotId', Short ) ], + 756 : [ ( 'slotId', Short ) ], + 757 : [ ( 'slotId', Short ) ], + 1073741839 : [ ( 'slotId', Short ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_keep_alive.py b/aiocraft/mc/proto/play/serverbound/packet_keep_alive.py new file mode 100644 index 0000000..d16a2c1 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_keep_alive.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketKeepAlive(Packet): + __slots__ = ( 'id', 'keepAliveId' ) + + keepAliveId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 0, + 47 : 0, + 76 : 10, + 107 : 11, + 108 : 11, + 109 : 11, + 110 : 11, + 201 : 11, + 210 : 11, + 304 : 11, + 315 : 11, + 321 : 12, + 327 : 12, + 331 : 12, + 335 : 12, + 338 : 11, + 340 : 11, + 351 : 11, + 393 : 14, + 401 : 14, + 402 : 14, + 403 : 14, + 404 : 14, + 477 : 15, + 480 : 15, + 490 : 15, + 498 : 15, + 573 : 15, + 575 : 15, + 578 : 15, + 709 : 15, + 734 : 16, + 735 : 16, + 736 : 16, + 751 : 16, + 755 : 15, + 756 : 15, + 757 : 15, + 1073741839 : 16 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'keepAliveId', Int ) ], + 47 : [ ( 'keepAliveId', VarInt ) ], + 76 : [ ( 'keepAliveId', VarInt ) ], + 107 : [ ( 'keepAliveId', VarInt ) ], + 108 : [ ( 'keepAliveId', VarInt ) ], + 109 : [ ( 'keepAliveId', VarInt ) ], + 110 : [ ( 'keepAliveId', VarInt ) ], + 201 : [ ( 'keepAliveId', VarInt ) ], + 210 : [ ( 'keepAliveId', VarInt ) ], + 304 : [ ( 'keepAliveId', VarInt ) ], + 315 : [ ( 'keepAliveId', VarInt ) ], + 321 : [ ( 'keepAliveId', VarInt ) ], + 327 : [ ( 'keepAliveId', VarInt ) ], + 331 : [ ( 'keepAliveId', VarInt ) ], + 335 : [ ( 'keepAliveId', VarInt ) ], + 338 : [ ( 'keepAliveId', VarInt ) ], + 340 : [ ( 'keepAliveId', Long ) ], + 351 : [ ( 'keepAliveId', Long ) ], + 393 : [ ( 'keepAliveId', Long ) ], + 401 : [ ( 'keepAliveId', Long ) ], + 402 : [ ( 'keepAliveId', Long ) ], + 403 : [ ( 'keepAliveId', Long ) ], + 404 : [ ( 'keepAliveId', Long ) ], + 477 : [ ( 'keepAliveId', Long ) ], + 480 : [ ( 'keepAliveId', Long ) ], + 490 : [ ( 'keepAliveId', Long ) ], + 498 : [ ( 'keepAliveId', Long ) ], + 573 : [ ( 'keepAliveId', Long ) ], + 575 : [ ( 'keepAliveId', Long ) ], + 578 : [ ( 'keepAliveId', Long ) ], + 709 : [ ( 'keepAliveId', Long ) ], + 734 : [ ( 'keepAliveId', Long ) ], + 735 : [ ( 'keepAliveId', Long ) ], + 736 : [ ( 'keepAliveId', Long ) ], + 751 : [ ( 'keepAliveId', Long ) ], + 755 : [ ( 'keepAliveId', Long ) ], + 756 : [ ( 'keepAliveId', Long ) ], + 757 : [ ( 'keepAliveId', Long ) ], + 1073741839 : [ ( 'keepAliveId', Long ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_lock_difficulty.py b/aiocraft/mc/proto/play/serverbound/packet_lock_difficulty.py new file mode 100644 index 0000000..d44f934 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_lock_difficulty.py @@ -0,0 +1,49 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketLockDifficulty(Packet): + __slots__ = ( 'id', 'locked' ) + + locked : bool + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 16, + 480 : 16, + 490 : 16, + 498 : 16, + 573 : 16, + 575 : 16, + 578 : 16, + 709 : 16, + 734 : 17, + 735 : 17, + 736 : 17, + 751 : 17, + 755 : 16, + 756 : 16, + 757 : 16, + 1073741839 : 17 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'locked', Boolean ) ], + 480 : [ ( 'locked', Boolean ) ], + 490 : [ ( 'locked', Boolean ) ], + 498 : [ ( 'locked', Boolean ) ], + 573 : [ ( 'locked', Boolean ) ], + 575 : [ ( 'locked', Boolean ) ], + 578 : [ ( 'locked', Boolean ) ], + 709 : [ ( 'locked', Boolean ) ], + 734 : [ ( 'locked', Boolean ) ], + 735 : [ ( 'locked', Boolean ) ], + 736 : [ ( 'locked', Boolean ) ], + 751 : [ ( 'locked', Boolean ) ], + 755 : [ ( 'locked', Boolean ) ], + 756 : [ ( 'locked', Boolean ) ], + 757 : [ ( 'locked', Boolean ) ], + 1073741839 : [ ( 'locked', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_look.py b/aiocraft/mc/proto/play/serverbound/packet_look.py new file mode 100644 index 0000000..f02fbab --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_look.py @@ -0,0 +1,97 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketLook(Packet): + __slots__ = ( 'id', 'yaw', 'pitch', 'onGround' ) + + yaw : float + pitch : float + onGround : bool + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 5, + 47 : 5, + 76 : 13, + 107 : 14, + 108 : 14, + 109 : 14, + 110 : 14, + 201 : 14, + 210 : 14, + 304 : 14, + 315 : 14, + 321 : 15, + 327 : 15, + 331 : 15, + 335 : 16, + 338 : 15, + 340 : 15, + 351 : 15, + 393 : 18, + 401 : 18, + 402 : 18, + 403 : 18, + 404 : 18, + 477 : 19, + 480 : 19, + 490 : 19, + 498 : 19, + 573 : 19, + 575 : 19, + 578 : 19, + 709 : 19, + 734 : 20, + 735 : 20, + 736 : 20, + 751 : 20, + 755 : 19, + 756 : 19, + 757 : 19, + 1073741839 : 20 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 47 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 76 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 107 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 108 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 109 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 110 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 201 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 210 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 304 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 315 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 321 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 327 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 331 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 335 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 338 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 340 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 351 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 393 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 401 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 402 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 403 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 404 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 477 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 480 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 490 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 498 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 573 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 575 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 578 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 709 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 734 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 735 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 736 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 751 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 755 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 756 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 757 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 1073741839 : [ ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_name_item.py b/aiocraft/mc/proto/play/serverbound/packet_name_item.py new file mode 100644 index 0000000..dc52489 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_name_item.py @@ -0,0 +1,59 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketNameItem(Packet): + __slots__ = ( 'id', 'name' ) + + name : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 28, + 401 : 28, + 402 : 28, + 403 : 28, + 404 : 28, + 477 : 30, + 480 : 30, + 490 : 30, + 498 : 30, + 573 : 30, + 575 : 30, + 578 : 30, + 709 : 30, + 734 : 31, + 735 : 31, + 736 : 31, + 751 : 32, + 755 : 32, + 756 : 32, + 757 : 32, + 1073741839 : 32 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'name', String ) ], + 401 : [ ( 'name', String ) ], + 402 : [ ( 'name', String ) ], + 403 : [ ( 'name', String ) ], + 404 : [ ( 'name', String ) ], + 477 : [ ( 'name', String ) ], + 480 : [ ( 'name', String ) ], + 490 : [ ( 'name', String ) ], + 498 : [ ( 'name', String ) ], + 573 : [ ( 'name', String ) ], + 575 : [ ( 'name', String ) ], + 578 : [ ( 'name', String ) ], + 709 : [ ( 'name', String ) ], + 734 : [ ( 'name', String ) ], + 735 : [ ( 'name', String ) ], + 736 : [ ( 'name', String ) ], + 751 : [ ( 'name', String ) ], + 755 : [ ( 'name', String ) ], + 756 : [ ( 'name', String ) ], + 757 : [ ( 'name', String ) ], + 1073741839 : [ ( 'name', String ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_pick_item.py b/aiocraft/mc/proto/play/serverbound/packet_pick_item.py new file mode 100644 index 0000000..23d656e --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_pick_item.py @@ -0,0 +1,59 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPickItem(Packet): + __slots__ = ( 'id', 'slot' ) + + slot : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 21, + 401 : 21, + 402 : 21, + 403 : 21, + 404 : 21, + 477 : 23, + 480 : 23, + 490 : 23, + 498 : 23, + 573 : 23, + 575 : 23, + 578 : 23, + 709 : 23, + 734 : 24, + 735 : 24, + 736 : 24, + 751 : 24, + 755 : 23, + 756 : 23, + 757 : 23, + 1073741839 : 24 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'slot', VarInt ) ], + 401 : [ ( 'slot', VarInt ) ], + 402 : [ ( 'slot', VarInt ) ], + 403 : [ ( 'slot', VarInt ) ], + 404 : [ ( 'slot', VarInt ) ], + 477 : [ ( 'slot', VarInt ) ], + 480 : [ ( 'slot', VarInt ) ], + 490 : [ ( 'slot', VarInt ) ], + 498 : [ ( 'slot', VarInt ) ], + 573 : [ ( 'slot', VarInt ) ], + 575 : [ ( 'slot', VarInt ) ], + 578 : [ ( 'slot', VarInt ) ], + 709 : [ ( 'slot', VarInt ) ], + 734 : [ ( 'slot', VarInt ) ], + 735 : [ ( 'slot', VarInt ) ], + 736 : [ ( 'slot', VarInt ) ], + 751 : [ ( 'slot', VarInt ) ], + 755 : [ ( 'slot', VarInt ) ], + 756 : [ ( 'slot', VarInt ) ], + 757 : [ ( 'slot', VarInt ) ], + 1073741839 : [ ( 'slot', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_pong.py b/aiocraft/mc/proto/play/serverbound/packet_pong.py new file mode 100644 index 0000000..4175e49 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_pong.py @@ -0,0 +1,23 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPong(Packet): + __slots__ = ( 'id', 'id' ) + + id : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 755 : 29, + 756 : 29, + 757 : 29 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 755 : [ ( 'id', Int ) ], + 756 : [ ( 'id', Int ) ], + 757 : [ ( 'id', Int ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_position.py b/aiocraft/mc/proto/play/serverbound/packet_position.py new file mode 100644 index 0000000..4771d4a --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_position.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPosition(Packet): + __slots__ = ( 'id', 'stance', 'onGround', 'x', 'y', 'z' ) + + stance : float + onGround : bool + x : float + y : float + z : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 4, + 47 : 4, + 76 : 11, + 107 : 12, + 108 : 12, + 109 : 12, + 110 : 12, + 201 : 12, + 210 : 12, + 304 : 12, + 315 : 12, + 321 : 13, + 327 : 13, + 331 : 13, + 335 : 14, + 338 : 13, + 340 : 13, + 351 : 13, + 393 : 16, + 401 : 16, + 402 : 16, + 403 : 16, + 404 : 16, + 477 : 17, + 480 : 17, + 490 : 17, + 498 : 17, + 573 : 17, + 575 : 17, + 578 : 17, + 709 : 17, + 734 : 18, + 735 : 18, + 736 : 18, + 751 : 18, + 755 : 17, + 756 : 17, + 757 : 17, + 1073741839 : 18 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'x', Double ), ( 'stance', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 47 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 76 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 107 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 108 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 109 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 110 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 201 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 210 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 304 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 315 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 321 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 327 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 331 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 335 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 338 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 340 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 351 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 393 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 401 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 402 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 403 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 404 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 477 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 480 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 490 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 498 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 573 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 575 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 578 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 709 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 734 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 735 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 736 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 751 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 755 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 756 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 757 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ], + 1073741839 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'onGround', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_position_look.py b/aiocraft/mc/proto/play/serverbound/packet_position_look.py new file mode 100644 index 0000000..dfa1c30 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_position_look.py @@ -0,0 +1,101 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPositionLook(Packet): + __slots__ = ( 'id', 'stance', 'onGround', 'x', 'yaw', 'y', 'z', 'pitch' ) + + stance : float + onGround : bool + x : float + yaw : float + y : float + z : float + pitch : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 6, + 47 : 6, + 76 : 12, + 107 : 13, + 108 : 13, + 109 : 13, + 110 : 13, + 201 : 13, + 210 : 13, + 304 : 13, + 315 : 13, + 321 : 14, + 327 : 14, + 331 : 14, + 335 : 15, + 338 : 14, + 340 : 14, + 351 : 14, + 393 : 17, + 401 : 17, + 402 : 17, + 403 : 17, + 404 : 17, + 477 : 18, + 480 : 18, + 490 : 18, + 498 : 18, + 573 : 18, + 575 : 18, + 578 : 18, + 709 : 18, + 734 : 19, + 735 : 19, + 736 : 19, + 751 : 19, + 755 : 18, + 756 : 18, + 757 : 18, + 1073741839 : 19 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'x', Double ), ( 'stance', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 47 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 76 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 107 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 108 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 109 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 110 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 201 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 210 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 304 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 315 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 321 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 327 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 331 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 335 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 338 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 340 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 351 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 393 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 401 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 402 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 403 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 404 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 477 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 480 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 490 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 498 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 573 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 575 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 578 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 709 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 734 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 735 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 736 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 751 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 755 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 756 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 757 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ], + 1073741839 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ), ( 'onGround', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_prepare_crafting_grid.py b/aiocraft/mc/proto/play/serverbound/packet_prepare_crafting_grid.py new file mode 100644 index 0000000..bf0ef07 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_prepare_crafting_grid.py @@ -0,0 +1,28 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPrepareCraftingGrid(Packet): + __slots__ = ( 'id', 'returnEntry', 'actionNumber', 'prepareEntry', 'windowId' ) + + returnEntry : list + actionNumber : int + prepareEntry : list + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 321 : 1, + 327 : 1, + 331 : 1, + 335 : 1 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 321 : [ ( 'windowId', Byte ), ( 'actionNumber', UnsignedShort ), ( 'returnEntry', ArrayType(StructType(( 'item', Slot ), ( 'craftingSlot', Byte ), ( 'playerSlot', Byte ), ), Byte, ) ), ( 'prepareEntry', ArrayType(StructType(( 'item', Slot ), ( 'craftingSlot', Byte ), ( 'playerSlot', Byte ), ), Byte, ) ) ], + 327 : [ ( 'windowId', Byte ), ( 'actionNumber', UnsignedShort ), ( 'returnEntry', ArrayType(StructType(( 'item', Slot ), ( 'craftingSlot', Byte ), ( 'playerSlot', Byte ), ), UnsignedShort, ) ), ( 'prepareEntry', ArrayType(StructType(( 'item', Slot ), ( 'craftingSlot', Byte ), ( 'playerSlot', Byte ), ), UnsignedShort, ) ) ], + 331 : [ ( 'windowId', Byte ), ( 'actionNumber', UnsignedShort ), ( 'returnEntry', ArrayType(StructType(( 'item', Slot ), ( 'craftingSlot', Byte ), ( 'playerSlot', Byte ), ), UnsignedShort, ) ), ( 'prepareEntry', ArrayType(StructType(( 'item', Slot ), ( 'craftingSlot', Byte ), ( 'playerSlot', Byte ), ), UnsignedShort, ) ) ], + 335 : [ ( 'windowId', Byte ), ( 'actionNumber', UnsignedShort ), ( 'returnEntry', ArrayType(StructType(( 'item', Slot ), ( 'craftingSlot', Byte ), ( 'playerSlot', Byte ), ), UnsignedShort, ) ), ( 'prepareEntry', ArrayType(StructType(( 'item', Slot ), ( 'craftingSlot', Byte ), ( 'playerSlot', Byte ), ), UnsignedShort, ) ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_query_block_nbt.py b/aiocraft/mc/proto/play/serverbound/packet_query_block_nbt.py new file mode 100644 index 0000000..f593329 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_query_block_nbt.py @@ -0,0 +1,60 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketQueryBlockNbt(Packet): + __slots__ = ( 'id', 'transactionId', 'location' ) + + transactionId : int + location : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 1, + 401 : 1, + 402 : 1, + 403 : 1, + 404 : 1, + 477 : 1, + 480 : 1, + 490 : 1, + 498 : 1, + 573 : 1, + 575 : 1, + 578 : 1, + 709 : 1, + 734 : 1, + 735 : 1, + 736 : 1, + 751 : 1, + 755 : 1, + 756 : 1, + 757 : 1, + 1073741839 : 1 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 401 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 402 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 403 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 404 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 477 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 480 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 490 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 498 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 573 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 575 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 578 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 709 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 734 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 735 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 736 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 751 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 755 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 756 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 757 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ], + 1073741839 : [ ( 'transactionId', VarInt ), ( 'location', Position ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_query_entity_nbt.py b/aiocraft/mc/proto/play/serverbound/packet_query_entity_nbt.py new file mode 100644 index 0000000..b8a9c06 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_query_entity_nbt.py @@ -0,0 +1,60 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketQueryEntityNbt(Packet): + __slots__ = ( 'id', 'transactionId', 'entityId' ) + + transactionId : int + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 12, + 401 : 12, + 402 : 12, + 403 : 12, + 404 : 12, + 477 : 13, + 480 : 13, + 490 : 13, + 498 : 13, + 573 : 13, + 575 : 13, + 578 : 13, + 709 : 13, + 734 : 13, + 735 : 13, + 736 : 13, + 751 : 13, + 755 : 12, + 756 : 12, + 757 : 12, + 1073741839 : 13 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 401 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 402 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 403 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 404 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 477 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 480 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 490 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 498 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 573 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 575 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 578 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 709 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 734 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 735 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 736 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 751 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 755 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 756 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 757 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ], + 1073741839 : [ ( 'transactionId', VarInt ), ( 'entityId', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_recipe_book.py b/aiocraft/mc/proto/play/serverbound/packet_recipe_book.py new file mode 100644 index 0000000..0311dcc --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_recipe_book.py @@ -0,0 +1,29 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketRecipeBook(Packet): + __slots__ = ( 'id', 'bookOpen', 'filterActive', 'bookId' ) + + bookOpen : bool + filterActive : bool + bookId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 751 : 30, + 755 : 30, + 756 : 30, + 757 : 30, + 1073741839 : 31 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 751 : [ ( 'bookId', VarInt ), ( 'bookOpen', Boolean ), ( 'filterActive', Boolean ) ], + 755 : [ ( 'bookId', VarInt ), ( 'bookOpen', Boolean ), ( 'filterActive', Boolean ) ], + 756 : [ ( 'bookId', VarInt ), ( 'bookOpen', Boolean ), ( 'filterActive', Boolean ) ], + 757 : [ ( 'bookId', VarInt ), ( 'bookOpen', Boolean ), ( 'filterActive', Boolean ) ], + 1073741839 : [ ( 'bookId', VarInt ), ( 'bookOpen', Boolean ), ( 'filterActive', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_resource_pack_receive.py b/aiocraft/mc/proto/play/serverbound/packet_resource_pack_receive.py new file mode 100644 index 0000000..1a456fb --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_resource_pack_receive.py @@ -0,0 +1,94 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketResourcePackReceive(Packet): + __slots__ = ( 'id', 'hash', 'result' ) + + hash : str + result : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 25, + 76 : 19, + 107 : 22, + 108 : 22, + 109 : 22, + 110 : 22, + 201 : 22, + 210 : 22, + 304 : 22, + 315 : 22, + 321 : 24, + 327 : 24, + 331 : 24, + 335 : 24, + 338 : 24, + 340 : 24, + 351 : 24, + 393 : 29, + 401 : 29, + 402 : 29, + 403 : 29, + 404 : 29, + 477 : 31, + 480 : 31, + 490 : 31, + 498 : 31, + 573 : 31, + 575 : 31, + 578 : 31, + 709 : 31, + 734 : 32, + 735 : 32, + 736 : 32, + 751 : 33, + 755 : 33, + 756 : 33, + 757 : 33, + 1073741839 : 33 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'hash', String ), ( 'result', VarInt ) ], + 76 : [ ( 'hash', String ), ( 'result', VarInt ) ], + 107 : [ ( 'hash', String ), ( 'result', VarInt ) ], + 108 : [ ( 'hash', String ), ( 'result', VarInt ) ], + 109 : [ ( 'hash', String ), ( 'result', VarInt ) ], + 110 : [ ( 'hash', String ), ( 'result', VarInt ) ], + 201 : [ ( 'result', VarInt ) ], + 210 : [ ( 'result', VarInt ) ], + 304 : [ ( 'result', VarInt ) ], + 315 : [ ( 'result', VarInt ) ], + 321 : [ ( 'result', VarInt ) ], + 327 : [ ( 'result', VarInt ) ], + 331 : [ ( 'result', VarInt ) ], + 335 : [ ( 'result', VarInt ) ], + 338 : [ ( 'result', VarInt ) ], + 340 : [ ( 'result', VarInt ) ], + 351 : [ ( 'result', VarInt ) ], + 393 : [ ( 'result', VarInt ) ], + 401 : [ ( 'result', VarInt ) ], + 402 : [ ( 'result', VarInt ) ], + 403 : [ ( 'result', VarInt ) ], + 404 : [ ( 'result', VarInt ) ], + 477 : [ ( 'result', VarInt ) ], + 480 : [ ( 'result', VarInt ) ], + 490 : [ ( 'result', VarInt ) ], + 498 : [ ( 'result', VarInt ) ], + 573 : [ ( 'result', VarInt ) ], + 575 : [ ( 'result', VarInt ) ], + 578 : [ ( 'result', VarInt ) ], + 709 : [ ( 'result', VarInt ) ], + 734 : [ ( 'result', VarInt ) ], + 735 : [ ( 'result', VarInt ) ], + 736 : [ ( 'result', VarInt ) ], + 751 : [ ( 'result', VarInt ) ], + 755 : [ ( 'result', VarInt ) ], + 756 : [ ( 'result', VarInt ) ], + 757 : [ ( 'result', VarInt ) ], + 1073741839 : [ ( 'result', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_select_trade.py b/aiocraft/mc/proto/play/serverbound/packet_select_trade.py new file mode 100644 index 0000000..24ef55e --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_select_trade.py @@ -0,0 +1,59 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSelectTrade(Packet): + __slots__ = ( 'id', 'slot' ) + + slot : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 31, + 401 : 31, + 402 : 31, + 403 : 31, + 404 : 31, + 477 : 33, + 480 : 33, + 490 : 33, + 498 : 33, + 573 : 33, + 575 : 33, + 578 : 33, + 709 : 33, + 734 : 34, + 735 : 34, + 736 : 34, + 751 : 35, + 755 : 35, + 756 : 35, + 757 : 35, + 1073741839 : 35 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'slot', VarInt ) ], + 401 : [ ( 'slot', VarInt ) ], + 402 : [ ( 'slot', VarInt ) ], + 403 : [ ( 'slot', VarInt ) ], + 404 : [ ( 'slot', VarInt ) ], + 477 : [ ( 'slot', VarInt ) ], + 480 : [ ( 'slot', VarInt ) ], + 490 : [ ( 'slot', VarInt ) ], + 498 : [ ( 'slot', VarInt ) ], + 573 : [ ( 'slot', VarInt ) ], + 575 : [ ( 'slot', VarInt ) ], + 578 : [ ( 'slot', VarInt ) ], + 709 : [ ( 'slot', VarInt ) ], + 734 : [ ( 'slot', VarInt ) ], + 735 : [ ( 'slot', VarInt ) ], + 736 : [ ( 'slot', VarInt ) ], + 751 : [ ( 'slot', VarInt ) ], + 755 : [ ( 'slot', VarInt ) ], + 756 : [ ( 'slot', VarInt ) ], + 757 : [ ( 'slot', VarInt ) ], + 1073741839 : [ ( 'slot', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_set_beacon_effect.py b/aiocraft/mc/proto/play/serverbound/packet_set_beacon_effect.py new file mode 100644 index 0000000..3dafb13 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_set_beacon_effect.py @@ -0,0 +1,60 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetBeaconEffect(Packet): + __slots__ = ( 'id', 'primary_effect', 'secondary_effect' ) + + primary_effect : int + secondary_effect : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 32, + 401 : 32, + 402 : 32, + 403 : 32, + 404 : 32, + 477 : 34, + 480 : 34, + 490 : 34, + 498 : 34, + 573 : 34, + 575 : 34, + 578 : 34, + 709 : 34, + 734 : 35, + 735 : 35, + 736 : 35, + 751 : 36, + 755 : 36, + 756 : 36, + 757 : 36, + 1073741839 : 36 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 401 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 402 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 403 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 404 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 477 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 480 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 490 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 498 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 573 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 575 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 578 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 709 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 734 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 735 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 736 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 751 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 755 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 756 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 757 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ], + 1073741839 : [ ( 'primary_effect', VarInt ), ( 'secondary_effect', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_set_creative_slot.py b/aiocraft/mc/proto/play/serverbound/packet_set_creative_slot.py new file mode 100644 index 0000000..1af2751 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_set_creative_slot.py @@ -0,0 +1,96 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetCreativeSlot(Packet): + __slots__ = ( 'id', 'item', 'slot' ) + + item : dict + slot : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 16, + 47 : 16, + 76 : 21, + 107 : 24, + 108 : 24, + 109 : 24, + 110 : 24, + 201 : 24, + 210 : 24, + 304 : 24, + 315 : 24, + 321 : 26, + 327 : 26, + 331 : 26, + 335 : 27, + 338 : 27, + 340 : 27, + 351 : 27, + 393 : 36, + 401 : 36, + 402 : 36, + 403 : 36, + 404 : 36, + 477 : 38, + 480 : 38, + 490 : 38, + 498 : 38, + 573 : 38, + 575 : 38, + 578 : 38, + 709 : 38, + 734 : 39, + 735 : 39, + 736 : 39, + 751 : 40, + 755 : 40, + 756 : 40, + 757 : 40, + 1073741839 : 40 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 47 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 76 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 107 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 108 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 109 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 110 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 201 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 210 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 304 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 315 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 321 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 327 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 331 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 335 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 338 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 340 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 351 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 393 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 401 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 402 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 403 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 404 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 477 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 480 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 490 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 498 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 573 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 575 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 578 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 709 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 734 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 735 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 736 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 751 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 755 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 756 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 757 : [ ( 'slot', Short ), ( 'item', Slot ) ], + 1073741839 : [ ( 'slot', Short ), ( 'item', Slot ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_set_difficulty.py b/aiocraft/mc/proto/play/serverbound/packet_set_difficulty.py new file mode 100644 index 0000000..e2f2c94 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_set_difficulty.py @@ -0,0 +1,49 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSetDifficulty(Packet): + __slots__ = ( 'id', 'newDifficulty' ) + + newDifficulty : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 2, + 480 : 2, + 490 : 2, + 498 : 2, + 573 : 2, + 575 : 2, + 578 : 2, + 709 : 2, + 734 : 2, + 735 : 2, + 736 : 2, + 751 : 2, + 755 : 2, + 756 : 2, + 757 : 2, + 1073741839 : 2 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'newDifficulty', Byte ) ], + 480 : [ ( 'newDifficulty', Byte ) ], + 490 : [ ( 'newDifficulty', Byte ) ], + 498 : [ ( 'newDifficulty', Byte ) ], + 573 : [ ( 'newDifficulty', Byte ) ], + 575 : [ ( 'newDifficulty', Byte ) ], + 578 : [ ( 'newDifficulty', Byte ) ], + 709 : [ ( 'newDifficulty', Byte ) ], + 734 : [ ( 'newDifficulty', Byte ) ], + 735 : [ ( 'newDifficulty', Byte ) ], + 736 : [ ( 'newDifficulty', Byte ) ], + 751 : [ ( 'newDifficulty', Byte ) ], + 755 : [ ( 'newDifficulty', Byte ) ], + 756 : [ ( 'newDifficulty', Byte ) ], + 757 : [ ( 'newDifficulty', Byte ) ], + 1073741839 : [ ( 'newDifficulty', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_settings.py b/aiocraft/mc/proto/play/serverbound/packet_settings.py new file mode 100644 index 0000000..08877be --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_settings.py @@ -0,0 +1,105 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSettings(Packet): + __slots__ = ( 'id', 'viewDistance', 'enableTextFiltering', 'chatFlags', 'showCape', 'chatColors', 'enableServerListing', 'locale', 'mainHand', 'skinParts', 'disableTextFiltering', 'difficulty' ) + + viewDistance : int + enableTextFiltering : bool + chatFlags : int + showCape : bool + chatColors : bool + enableServerListing : bool + locale : str + mainHand : int + skinParts : int + disableTextFiltering : bool + difficulty : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 21, + 47 : 21, + 76 : 3, + 107 : 4, + 108 : 4, + 109 : 4, + 110 : 4, + 201 : 4, + 210 : 4, + 304 : 4, + 315 : 4, + 321 : 5, + 327 : 5, + 331 : 5, + 335 : 5, + 338 : 4, + 340 : 4, + 351 : 3, + 393 : 4, + 401 : 4, + 402 : 4, + 403 : 4, + 404 : 4, + 477 : 5, + 480 : 5, + 490 : 5, + 498 : 5, + 573 : 5, + 575 : 5, + 578 : 5, + 709 : 5, + 734 : 5, + 735 : 5, + 736 : 5, + 751 : 5, + 755 : 5, + 756 : 5, + 757 : 5, + 1073741839 : 5 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', Byte ), ( 'chatColors', Boolean ), ( 'difficulty', Byte ), ( 'showCape', Boolean ) ], + 47 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', Byte ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ) ], + 76 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 107 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 108 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 109 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 110 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 201 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 210 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 304 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 315 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 321 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 327 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 331 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 335 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 338 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 340 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 351 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 393 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 401 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 402 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 403 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 404 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 477 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 480 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 490 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 498 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 573 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 575 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 578 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 709 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 734 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 735 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 736 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 751 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ) ], + 755 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ), ( 'disableTextFiltering', Boolean ) ], + 756 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ), ( 'disableTextFiltering', Boolean ) ], + 757 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ), ( 'enableTextFiltering', Boolean ), ( 'enableServerListing', Boolean ) ], + 1073741839 : [ ( 'locale', String ), ( 'viewDistance', Byte ), ( 'chatFlags', VarInt ), ( 'chatColors', Boolean ), ( 'skinParts', Byte ), ( 'mainHand', VarInt ), ( 'disableTextFiltering', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_spectate.py b/aiocraft/mc/proto/play/serverbound/packet_spectate.py new file mode 100644 index 0000000..5a97268 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_spectate.py @@ -0,0 +1,93 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSpectate(Packet): + __slots__ = ( 'id', 'target' ) + + target : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 47 : 24, + 76 : 24, + 107 : 27, + 108 : 27, + 109 : 27, + 110 : 27, + 201 : 27, + 210 : 27, + 304 : 27, + 315 : 27, + 321 : 29, + 327 : 29, + 331 : 29, + 335 : 30, + 338 : 30, + 340 : 30, + 351 : 30, + 393 : 40, + 401 : 40, + 402 : 40, + 403 : 40, + 404 : 40, + 477 : 43, + 480 : 43, + 490 : 43, + 498 : 43, + 573 : 43, + 575 : 43, + 578 : 43, + 709 : 43, + 734 : 44, + 735 : 44, + 736 : 44, + 751 : 45, + 755 : 45, + 756 : 45, + 757 : 45, + 1073741839 : 45 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 47 : [ ( 'target', UUID ) ], + 76 : [ ( 'target', UUID ) ], + 107 : [ ( 'target', UUID ) ], + 108 : [ ( 'target', UUID ) ], + 109 : [ ( 'target', UUID ) ], + 110 : [ ( 'target', UUID ) ], + 201 : [ ( 'target', UUID ) ], + 210 : [ ( 'target', UUID ) ], + 304 : [ ( 'target', UUID ) ], + 315 : [ ( 'target', UUID ) ], + 321 : [ ( 'target', UUID ) ], + 327 : [ ( 'target', UUID ) ], + 331 : [ ( 'target', UUID ) ], + 335 : [ ( 'target', UUID ) ], + 338 : [ ( 'target', UUID ) ], + 340 : [ ( 'target', UUID ) ], + 351 : [ ( 'target', UUID ) ], + 393 : [ ( 'target', UUID ) ], + 401 : [ ( 'target', UUID ) ], + 402 : [ ( 'target', UUID ) ], + 403 : [ ( 'target', UUID ) ], + 404 : [ ( 'target', UUID ) ], + 477 : [ ( 'target', UUID ) ], + 480 : [ ( 'target', UUID ) ], + 490 : [ ( 'target', UUID ) ], + 498 : [ ( 'target', UUID ) ], + 573 : [ ( 'target', UUID ) ], + 575 : [ ( 'target', UUID ) ], + 578 : [ ( 'target', UUID ) ], + 709 : [ ( 'target', UUID ) ], + 734 : [ ( 'target', UUID ) ], + 735 : [ ( 'target', UUID ) ], + 736 : [ ( 'target', UUID ) ], + 751 : [ ( 'target', UUID ) ], + 755 : [ ( 'target', UUID ) ], + 756 : [ ( 'target', UUID ) ], + 757 : [ ( 'target', UUID ) ], + 1073741839 : [ ( 'target', UUID ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_steer_boat.py b/aiocraft/mc/proto/play/serverbound/packet_steer_boat.py new file mode 100644 index 0000000..8a0c4a0 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_steer_boat.py @@ -0,0 +1,90 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSteerBoat(Packet): + __slots__ = ( 'id', 'rightPaddle', 'leftPaddle' ) + + rightPaddle : bool + leftPaddle : bool + + _state : int = 3 + + _ids : Dict[int, int] = { + 107 : 17, + 108 : 17, + 109 : 17, + 110 : 17, + 201 : 17, + 210 : 17, + 304 : 17, + 315 : 17, + 321 : 18, + 327 : 18, + 331 : 18, + 335 : 18, + 338 : 17, + 340 : 17, + 351 : 17, + 393 : 20, + 401 : 20, + 402 : 20, + 403 : 20, + 404 : 20, + 477 : 22, + 480 : 22, + 490 : 22, + 498 : 22, + 573 : 22, + 575 : 22, + 578 : 22, + 709 : 22, + 734 : 23, + 735 : 23, + 736 : 23, + 751 : 23, + 755 : 22, + 756 : 22, + 757 : 22, + 1073741839 : 23 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 107 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 108 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 109 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 110 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 201 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 210 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 304 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 315 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 321 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 327 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 331 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 335 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 338 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 340 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 351 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 393 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 401 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 402 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 403 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 404 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 477 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 480 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 490 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 498 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 573 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 575 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 578 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 709 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 734 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 735 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 736 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 751 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 755 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 756 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 757 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ], + 1073741839 : [ ( 'leftPaddle', Boolean ), ( 'rightPaddle', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_steer_vehicle.py b/aiocraft/mc/proto/play/serverbound/packet_steer_vehicle.py new file mode 100644 index 0000000..13d512c --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_steer_vehicle.py @@ -0,0 +1,98 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketSteerVehicle(Packet): + __slots__ = ( 'id', 'forward', 'jump', 'sideways', 'unmount' ) + + forward : float + jump : Union[int,bool] + sideways : float + unmount : bool + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 12, + 47 : 12, + 76 : 18, + 107 : 21, + 108 : 21, + 109 : 21, + 110 : 21, + 201 : 21, + 210 : 21, + 304 : 21, + 315 : 21, + 321 : 22, + 327 : 22, + 331 : 22, + 335 : 22, + 338 : 22, + 340 : 22, + 351 : 22, + 393 : 26, + 401 : 26, + 402 : 26, + 403 : 26, + 404 : 26, + 477 : 28, + 480 : 28, + 490 : 28, + 498 : 28, + 573 : 28, + 575 : 28, + 578 : 28, + 709 : 28, + 734 : 29, + 735 : 29, + 736 : 29, + 751 : 29, + 755 : 28, + 756 : 28, + 757 : 28, + 1073741839 : 29 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Boolean ), ( 'unmount', Boolean ) ], + 47 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 76 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 107 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 108 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 109 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 110 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 201 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 210 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 304 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 315 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 321 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 327 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 331 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 335 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 338 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 340 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 351 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 393 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 401 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 402 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 403 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 404 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 477 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 480 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 490 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 498 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 573 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 575 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 578 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 709 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 734 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 735 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 736 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 751 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 755 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 756 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 757 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ], + 1073741839 : [ ( 'sideways', Float ), ( 'forward', Float ), ( 'jump', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_tab_complete.py b/aiocraft/mc/proto/play/serverbound/packet_tab_complete.py new file mode 100644 index 0000000..7208c68 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_tab_complete.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTabComplete(Packet): + __slots__ = ( 'id', 'transactionId', 'assumeCommand', 'text', 'block', 'lookedAtBlock' ) + + transactionId : int + assumeCommand : bool + text : str + block : tuple + lookedAtBlock : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 20, + 47 : 20, + 76 : 0, + 107 : 1, + 108 : 1, + 109 : 1, + 110 : 1, + 201 : 1, + 210 : 1, + 304 : 1, + 315 : 1, + 321 : 2, + 327 : 2, + 331 : 2, + 335 : 2, + 338 : 1, + 340 : 1, + 351 : 4, + 393 : 5, + 401 : 5, + 402 : 5, + 403 : 5, + 404 : 5, + 477 : 6, + 480 : 6, + 490 : 6, + 498 : 6, + 573 : 6, + 575 : 6, + 578 : 6, + 709 : 6, + 734 : 6, + 735 : 6, + 736 : 6, + 751 : 6, + 755 : 6, + 756 : 6, + 757 : 6, + 1073741839 : 6 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'text', String ) ], + 47 : [ ( 'text', String ), ( 'block', OptionalType(Position, ) ) ], + 76 : [ ( 'text', String ), ( 'block', OptionalType(Position, ) ) ], + 107 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 108 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 109 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 110 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 201 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 210 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 304 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 315 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 321 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 327 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 331 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 335 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 338 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 340 : [ ( 'text', String ), ( 'assumeCommand', Boolean ), ( 'lookedAtBlock', OptionalType(Position, ) ) ], + 351 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 393 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 401 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 402 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 403 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 404 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 477 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 480 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 490 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 498 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 573 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 575 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 578 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 709 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 734 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 735 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 736 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 751 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 755 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 756 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 757 : [ ( 'transactionId', VarInt ), ( 'text', String ) ], + 1073741839 : [ ( 'transactionId', VarInt ), ( 'text', String ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_teleport_confirm.py b/aiocraft/mc/proto/play/serverbound/packet_teleport_confirm.py new file mode 100644 index 0000000..c7cc859 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_teleport_confirm.py @@ -0,0 +1,89 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTeleportConfirm(Packet): + __slots__ = ( 'id', 'teleportId' ) + + teleportId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 107 : 0, + 108 : 0, + 109 : 0, + 110 : 0, + 201 : 0, + 210 : 0, + 304 : 0, + 315 : 0, + 321 : 0, + 327 : 0, + 331 : 0, + 335 : 0, + 338 : 0, + 340 : 0, + 351 : 0, + 393 : 0, + 401 : 0, + 402 : 0, + 403 : 0, + 404 : 0, + 477 : 0, + 480 : 0, + 490 : 0, + 498 : 0, + 573 : 0, + 575 : 0, + 578 : 0, + 709 : 0, + 734 : 0, + 735 : 0, + 736 : 0, + 751 : 0, + 755 : 0, + 756 : 0, + 757 : 0, + 1073741839 : 0 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 107 : [ ( 'teleportId', VarInt ) ], + 108 : [ ( 'teleportId', VarInt ) ], + 109 : [ ( 'teleportId', VarInt ) ], + 110 : [ ( 'teleportId', VarInt ) ], + 201 : [ ( 'teleportId', VarInt ) ], + 210 : [ ( 'teleportId', VarInt ) ], + 304 : [ ( 'teleportId', VarInt ) ], + 315 : [ ( 'teleportId', VarInt ) ], + 321 : [ ( 'teleportId', VarInt ) ], + 327 : [ ( 'teleportId', VarInt ) ], + 331 : [ ( 'teleportId', VarInt ) ], + 335 : [ ( 'teleportId', VarInt ) ], + 338 : [ ( 'teleportId', VarInt ) ], + 340 : [ ( 'teleportId', VarInt ) ], + 351 : [ ( 'teleportId', VarInt ) ], + 393 : [ ( 'teleportId', VarInt ) ], + 401 : [ ( 'teleportId', VarInt ) ], + 402 : [ ( 'teleportId', VarInt ) ], + 403 : [ ( 'teleportId', VarInt ) ], + 404 : [ ( 'teleportId', VarInt ) ], + 477 : [ ( 'teleportId', VarInt ) ], + 480 : [ ( 'teleportId', VarInt ) ], + 490 : [ ( 'teleportId', VarInt ) ], + 498 : [ ( 'teleportId', VarInt ) ], + 573 : [ ( 'teleportId', VarInt ) ], + 575 : [ ( 'teleportId', VarInt ) ], + 578 : [ ( 'teleportId', VarInt ) ], + 709 : [ ( 'teleportId', VarInt ) ], + 734 : [ ( 'teleportId', VarInt ) ], + 735 : [ ( 'teleportId', VarInt ) ], + 736 : [ ( 'teleportId', VarInt ) ], + 751 : [ ( 'teleportId', VarInt ) ], + 755 : [ ( 'teleportId', VarInt ) ], + 756 : [ ( 'teleportId', VarInt ) ], + 757 : [ ( 'teleportId', VarInt ) ], + 1073741839 : [ ( 'teleportId', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_transaction.py b/aiocraft/mc/proto/play/serverbound/packet_transaction.py new file mode 100644 index 0000000..bc5bac8 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_transaction.py @@ -0,0 +1,91 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketTransaction(Packet): + __slots__ = ( 'id', 'action', 'accepted', 'windowId' ) + + action : int + accepted : bool + windowId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 15, + 47 : 15, + 76 : 4, + 107 : 5, + 108 : 5, + 109 : 5, + 110 : 5, + 201 : 5, + 210 : 5, + 304 : 5, + 315 : 5, + 321 : 6, + 327 : 6, + 331 : 6, + 335 : 6, + 338 : 5, + 340 : 5, + 351 : 5, + 393 : 6, + 401 : 6, + 402 : 6, + 403 : 6, + 404 : 6, + 477 : 7, + 480 : 7, + 490 : 7, + 498 : 7, + 573 : 7, + 575 : 7, + 578 : 7, + 709 : 7, + 734 : 7, + 735 : 7, + 736 : 7, + 751 : 7, + 1073741839 : 7 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 47 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 76 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 107 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 108 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 109 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 110 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 201 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 210 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 304 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 315 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 321 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 327 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 331 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 335 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 338 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 340 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 351 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 393 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 401 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 402 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 403 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 404 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 477 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 480 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 490 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 498 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 573 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 575 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 578 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 709 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 734 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 735 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 736 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 751 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'action', Short ), ( 'accepted', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_update_command_block.py b/aiocraft/mc/proto/play/serverbound/packet_update_command_block.py new file mode 100644 index 0000000..c1d9ec7 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_update_command_block.py @@ -0,0 +1,62 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateCommandBlock(Packet): + __slots__ = ( 'id', 'mode', 'flags', 'command', 'location' ) + + mode : int + flags : int + command : str + location : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 34, + 401 : 34, + 402 : 34, + 403 : 34, + 404 : 34, + 477 : 36, + 480 : 36, + 490 : 36, + 498 : 36, + 573 : 36, + 575 : 36, + 578 : 36, + 709 : 36, + 734 : 37, + 735 : 37, + 736 : 37, + 751 : 38, + 755 : 38, + 756 : 38, + 757 : 38, + 1073741839 : 38 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 401 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 402 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 403 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 404 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 477 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 480 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 490 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 498 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 573 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 575 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 578 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 709 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 734 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 735 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 736 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 751 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 755 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 756 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 757 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ], + 1073741839 : [ ( 'location', Position ), ( 'command', String ), ( 'mode', VarInt ), ( 'flags', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_update_command_block_minecart.py b/aiocraft/mc/proto/play/serverbound/packet_update_command_block_minecart.py new file mode 100644 index 0000000..3bae4ec --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_update_command_block_minecart.py @@ -0,0 +1,61 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateCommandBlockMinecart(Packet): + __slots__ = ( 'id', 'track_output', 'command', 'entityId' ) + + track_output : bool + command : str + entityId : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 35, + 401 : 35, + 402 : 35, + 403 : 35, + 404 : 35, + 477 : 37, + 480 : 37, + 490 : 37, + 498 : 37, + 573 : 37, + 575 : 37, + 578 : 37, + 709 : 37, + 734 : 38, + 735 : 38, + 736 : 38, + 751 : 39, + 755 : 39, + 756 : 39, + 757 : 39, + 1073741839 : 39 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 401 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 402 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 403 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 404 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 477 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 480 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 490 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 498 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 573 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 575 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 578 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 709 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 734 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 735 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 736 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 751 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 755 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 756 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 757 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ], + 1073741839 : [ ( 'entityId', VarInt ), ( 'command', String ), ( 'track_output', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_update_jigsaw_block.py b/aiocraft/mc/proto/play/serverbound/packet_update_jigsaw_block.py new file mode 100644 index 0000000..ee78dd9 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_update_jigsaw_block.py @@ -0,0 +1,56 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateJigsawBlock(Packet): + __slots__ = ( 'id', 'targetPool', 'name', 'finalState', 'jointType', 'location', 'target', 'attachmentType', 'pool' ) + + targetPool : str + name : str + finalState : str + jointType : str + location : tuple + target : str + attachmentType : str + pool : str + + _state : int = 3 + + _ids : Dict[int, int] = { + 477 : 39, + 480 : 39, + 490 : 39, + 498 : 39, + 573 : 39, + 575 : 39, + 578 : 39, + 709 : 39, + 734 : 40, + 735 : 40, + 736 : 40, + 751 : 41, + 755 : 41, + 756 : 41, + 757 : 41, + 1073741839 : 41 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 477 : [ ( 'location', Position ), ( 'attachmentType', String ), ( 'targetPool', String ), ( 'finalState', String ) ], + 480 : [ ( 'location', Position ), ( 'attachmentType', String ), ( 'targetPool', String ), ( 'finalState', String ) ], + 490 : [ ( 'location', Position ), ( 'attachmentType', String ), ( 'targetPool', String ), ( 'finalState', String ) ], + 498 : [ ( 'location', Position ), ( 'attachmentType', String ), ( 'targetPool', String ), ( 'finalState', String ) ], + 573 : [ ( 'location', Position ), ( 'attachmentType', String ), ( 'targetPool', String ), ( 'finalState', String ) ], + 575 : [ ( 'location', Position ), ( 'attachmentType', String ), ( 'targetPool', String ), ( 'finalState', String ) ], + 578 : [ ( 'location', Position ), ( 'attachmentType', String ), ( 'targetPool', String ), ( 'finalState', String ) ], + 709 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ], + 734 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ], + 735 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ], + 736 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ], + 751 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ], + 755 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ], + 756 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ], + 757 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ], + 1073741839 : [ ( 'location', Position ), ( 'name', String ), ( 'target', String ), ( 'pool', String ), ( 'finalState', String ), ( 'jointType', String ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_update_sign.py b/aiocraft/mc/proto/play/serverbound/packet_update_sign.py new file mode 100644 index 0000000..47cf157 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_update_sign.py @@ -0,0 +1,99 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateSign(Packet): + __slots__ = ( 'id', 'text2', 'text1', 'text3', 'text4', 'location' ) + + text2 : str + text1 : str + text3 : str + text4 : str + location : Union[tuple,bytes] + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 18, + 47 : 18, + 76 : 22, + 107 : 25, + 108 : 25, + 109 : 25, + 110 : 25, + 201 : 25, + 210 : 25, + 304 : 25, + 315 : 25, + 321 : 27, + 327 : 27, + 331 : 27, + 335 : 28, + 338 : 28, + 340 : 28, + 351 : 28, + 393 : 38, + 401 : 38, + 402 : 38, + 403 : 38, + 404 : 38, + 477 : 41, + 480 : 41, + 490 : 41, + 498 : 41, + 573 : 41, + 575 : 41, + 578 : 41, + 709 : 41, + 734 : 42, + 735 : 42, + 736 : 42, + 751 : 43, + 755 : 43, + 756 : 43, + 757 : 43, + 1073741839 : 43 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'location', TrailingData ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 47 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 76 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 107 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 108 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 109 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 110 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 201 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 210 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 304 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 315 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 321 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 327 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 331 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 335 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 338 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 340 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 351 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 393 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 401 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 402 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 403 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 404 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 477 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 480 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 490 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 498 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 573 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 575 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 578 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 709 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 734 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 735 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 736 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 751 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 755 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 756 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 757 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ], + 1073741839 : [ ( 'location', Position ), ( 'text1', String ), ( 'text2', String ), ( 'text3', String ), ( 'text4', String ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_update_structure_block.py b/aiocraft/mc/proto/play/serverbound/packet_update_structure_block.py new file mode 100644 index 0000000..589c2f2 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_update_structure_block.py @@ -0,0 +1,74 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUpdateStructureBlock(Packet): + __slots__ = ( 'id', 'size_z', 'mirror', 'action', 'name', 'size_y', 'metadata', 'seed', 'flags', 'integrity', 'mode', 'offset_x', 'offset_z', 'rotation', 'size_x', 'offset_y', 'location' ) + + size_z : int + mirror : int + action : int + name : str + size_y : int + metadata : str + seed : int + flags : int + integrity : float + mode : int + offset_x : int + offset_z : int + rotation : int + size_x : int + offset_y : int + location : tuple + + _state : int = 3 + + _ids : Dict[int, int] = { + 393 : 37, + 401 : 37, + 402 : 37, + 403 : 37, + 404 : 37, + 477 : 40, + 480 : 40, + 490 : 40, + 498 : 40, + 573 : 40, + 575 : 40, + 578 : 40, + 709 : 40, + 734 : 41, + 735 : 41, + 736 : 41, + 751 : 42, + 755 : 42, + 756 : 42, + 757 : 42, + 1073741839 : 42 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 393 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 401 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 402 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 403 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 404 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 477 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 480 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 490 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 498 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 573 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 575 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 578 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 709 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 734 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 735 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 736 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 751 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 755 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 756 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 757 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ], + 1073741839 : [ ( 'location', Position ), ( 'action', VarInt ), ( 'mode', VarInt ), ( 'name', String ), ( 'offset_x', Byte ), ( 'offset_y', Byte ), ( 'offset_z', Byte ), ( 'size_x', Byte ), ( 'size_y', Byte ), ( 'size_z', Byte ), ( 'mirror', VarInt ), ( 'rotation', VarInt ), ( 'metadata', String ), ( 'integrity', Float ), ( 'seed', VarInt ), ( 'flags', Byte ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_use_entity.py b/aiocraft/mc/proto/play/serverbound/packet_use_entity.py new file mode 100644 index 0000000..b59ac55 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_use_entity.py @@ -0,0 +1,101 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUseEntity(Packet): + __slots__ = ( 'id', 'sneaking', 'x', 'mouse', 'target', 'y', 'z', 'hand' ) + + sneaking : bool + x : bytes + mouse : int + target : int + y : bytes + z : bytes + hand : bytes + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 2, + 47 : 2, + 76 : 9, + 107 : 10, + 108 : 10, + 109 : 10, + 110 : 10, + 201 : 10, + 210 : 10, + 304 : 10, + 315 : 10, + 321 : 11, + 327 : 11, + 331 : 11, + 335 : 11, + 338 : 10, + 340 : 10, + 351 : 10, + 393 : 13, + 401 : 13, + 402 : 13, + 403 : 13, + 404 : 13, + 477 : 14, + 480 : 14, + 490 : 14, + 498 : 14, + 573 : 14, + 575 : 14, + 578 : 14, + 709 : 14, + 734 : 14, + 735 : 14, + 736 : 14, + 751 : 14, + 755 : 13, + 756 : 13, + 757 : 13, + 1073741839 : 14 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'target', Int ), ( 'mouse', Byte ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ) ], + 47 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ) ], + 76 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 107 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 108 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 109 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 110 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 201 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 210 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 304 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 315 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 321 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 327 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 331 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 335 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 338 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 340 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 351 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 393 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 401 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 402 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 403 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 404 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 477 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 480 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 490 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 498 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 573 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 575 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 578 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 709 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ) ], + 734 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'sneaking', Boolean ) ], + 735 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'sneaking', Boolean ) ], + 736 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'sneaking', Boolean ) ], + 751 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'sneaking', Boolean ) ], + 755 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'sneaking', Boolean ) ], + 756 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'sneaking', Boolean ) ], + 757 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'sneaking', Boolean ) ], + 1073741839 : [ ( 'target', VarInt ), ( 'mouse', VarInt ), ( 'x', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'y', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'z', SwitchType('mouse', { 2 : Float }, None, ) ), ( 'hand', SwitchType('mouse', { 0 : VarInt, 2 : VarInt }, None, ) ), ( 'sneaking', Boolean ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_use_item.py b/aiocraft/mc/proto/play/serverbound/packet_use_item.py new file mode 100644 index 0000000..9dd2433 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_use_item.py @@ -0,0 +1,91 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketUseItem(Packet): + __slots__ = ( 'id', 'hand' ) + + hand : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 76 : 26, + 107 : 29, + 108 : 29, + 109 : 29, + 110 : 29, + 201 : 29, + 210 : 29, + 304 : 29, + 315 : 29, + 321 : 31, + 327 : 31, + 331 : 31, + 335 : 32, + 338 : 32, + 340 : 32, + 351 : 32, + 393 : 42, + 401 : 42, + 402 : 42, + 403 : 42, + 404 : 42, + 477 : 45, + 480 : 45, + 490 : 45, + 498 : 45, + 573 : 45, + 575 : 45, + 578 : 45, + 709 : 45, + 734 : 46, + 735 : 46, + 736 : 46, + 751 : 47, + 755 : 47, + 756 : 47, + 757 : 47, + 1073741839 : 47 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 76 : [ ( 'hand', VarInt ) ], + 107 : [ ( 'hand', VarInt ) ], + 108 : [ ( 'hand', VarInt ) ], + 109 : [ ( 'hand', VarInt ) ], + 110 : [ ( 'hand', VarInt ) ], + 201 : [ ( 'hand', VarInt ) ], + 210 : [ ( 'hand', VarInt ) ], + 304 : [ ( 'hand', VarInt ) ], + 315 : [ ( 'hand', VarInt ) ], + 321 : [ ( 'hand', VarInt ) ], + 327 : [ ( 'hand', VarInt ) ], + 331 : [ ( 'hand', VarInt ) ], + 335 : [ ( 'hand', VarInt ) ], + 338 : [ ( 'hand', VarInt ) ], + 340 : [ ( 'hand', VarInt ) ], + 351 : [ ( 'hand', VarInt ) ], + 393 : [ ( 'hand', VarInt ) ], + 401 : [ ( 'hand', VarInt ) ], + 402 : [ ( 'hand', VarInt ) ], + 403 : [ ( 'hand', VarInt ) ], + 404 : [ ( 'hand', VarInt ) ], + 477 : [ ( 'hand', VarInt ) ], + 480 : [ ( 'hand', VarInt ) ], + 490 : [ ( 'hand', VarInt ) ], + 498 : [ ( 'hand', VarInt ) ], + 573 : [ ( 'hand', VarInt ) ], + 575 : [ ( 'hand', VarInt ) ], + 578 : [ ( 'hand', VarInt ) ], + 709 : [ ( 'hand', VarInt ) ], + 734 : [ ( 'hand', VarInt ) ], + 735 : [ ( 'hand', VarInt ) ], + 736 : [ ( 'hand', VarInt ) ], + 751 : [ ( 'hand', VarInt ) ], + 755 : [ ( 'hand', VarInt ) ], + 756 : [ ( 'hand', VarInt ) ], + 757 : [ ( 'hand', VarInt ) ], + 1073741839 : [ ( 'hand', VarInt ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_vehicle_move.py b/aiocraft/mc/proto/play/serverbound/packet_vehicle_move.py new file mode 100644 index 0000000..26f79e2 --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_vehicle_move.py @@ -0,0 +1,93 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketVehicleMove(Packet): + __slots__ = ( 'id', 'x', 'yaw', 'y', 'z', 'pitch' ) + + x : float + yaw : float + y : float + z : float + pitch : float + + _state : int = 3 + + _ids : Dict[int, int] = { + 107 : 16, + 108 : 16, + 109 : 16, + 110 : 16, + 201 : 16, + 210 : 16, + 304 : 16, + 315 : 16, + 321 : 17, + 327 : 17, + 331 : 17, + 335 : 17, + 338 : 16, + 340 : 16, + 351 : 16, + 393 : 19, + 401 : 19, + 402 : 19, + 403 : 19, + 404 : 19, + 477 : 21, + 480 : 21, + 490 : 21, + 498 : 21, + 573 : 21, + 575 : 21, + 578 : 21, + 709 : 21, + 734 : 22, + 735 : 22, + 736 : 22, + 751 : 22, + 755 : 21, + 756 : 21, + 757 : 21, + 1073741839 : 22 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 107 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 108 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 109 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 110 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 201 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 210 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 304 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 315 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 321 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 327 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 331 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 335 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 338 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 340 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 351 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 393 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 401 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 402 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 403 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 404 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 477 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 480 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 490 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 498 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 573 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 575 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 578 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 709 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 734 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 735 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 736 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 751 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 755 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 756 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 757 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ], + 1073741839 : [ ( 'x', Double ), ( 'y', Double ), ( 'z', Double ), ( 'yaw', Float ), ( 'pitch', Float ) ] + } diff --git a/aiocraft/mc/proto/play/serverbound/packet_window_click.py b/aiocraft/mc/proto/play/serverbound/packet_window_click.py new file mode 100644 index 0000000..2f1315d --- /dev/null +++ b/aiocraft/mc/proto/play/serverbound/packet_window_click.py @@ -0,0 +1,103 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketWindowClick(Packet): + __slots__ = ( 'id', 'item', 'action', 'stateId', 'slot', 'mode', 'changedSlots', 'windowId', 'cursorItem', 'mouseButton' ) + + item : dict + action : int + stateId : int + slot : int + mode : int + changedSlots : list + windowId : int + cursorItem : dict + mouseButton : int + + _state : int = 3 + + _ids : Dict[int, int] = { + 5 : 14, + 47 : 14, + 76 : 6, + 107 : 7, + 108 : 7, + 109 : 7, + 110 : 7, + 201 : 7, + 210 : 7, + 304 : 7, + 315 : 7, + 321 : 8, + 327 : 8, + 331 : 8, + 335 : 8, + 338 : 7, + 340 : 7, + 351 : 7, + 393 : 8, + 401 : 8, + 402 : 8, + 403 : 8, + 404 : 8, + 477 : 9, + 480 : 9, + 490 : 9, + 498 : 9, + 573 : 9, + 575 : 9, + 578 : 9, + 709 : 9, + 734 : 9, + 735 : 9, + 736 : 9, + 751 : 9, + 755 : 8, + 756 : 8, + 757 : 8, + 1073741839 : 9 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 47 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 76 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 107 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 108 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 109 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 110 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 201 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 210 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 304 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 315 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 321 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 327 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 331 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 335 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 338 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 340 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 351 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 393 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 401 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 402 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 403 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 404 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 477 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 480 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 490 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 498 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 573 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 575 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 578 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 709 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 734 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 735 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 736 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 751 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ], + 755 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'mode', Byte ), ( 'changedSlots', ArrayType(StructType(( 'location', Short ), ( 'item', Slot ), ), VarInt, ) ), ( 'cursorItem', Slot ) ], + 756 : [ ( 'windowId', Byte ), ( 'stateId', VarInt ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'mode', VarInt ), ( 'changedSlots', ArrayType(StructType(( 'location', Short ), ( 'item', Slot ), ), VarInt, ) ), ( 'cursorItem', Slot ) ], + 757 : [ ( 'windowId', Byte ), ( 'stateId', VarInt ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'mode', VarInt ), ( 'changedSlots', ArrayType(StructType(( 'location', Short ), ( 'item', Slot ), ), VarInt, ) ), ( 'cursorItem', Slot ) ], + 1073741839 : [ ( 'windowId', Byte ), ( 'slot', Short ), ( 'mouseButton', Byte ), ( 'action', Short ), ( 'mode', Byte ), ( 'item', Slot ) ] + } diff --git a/aiocraft/mc/proto/status/__init__.py b/aiocraft/mc/proto/status/__init__.py new file mode 100644 index 0000000..ca03e38 --- /dev/null +++ b/aiocraft/mc/proto/status/__init__.py @@ -0,0 +1,4 @@ +"""[!] This file is autogenerated""" + +from .clientbound import * +from .serverbound import * diff --git a/aiocraft/mc/proto/status/clientbound/__init__.py b/aiocraft/mc/proto/status/clientbound/__init__.py new file mode 100644 index 0000000..35cd78a --- /dev/null +++ b/aiocraft/mc/proto/status/clientbound/__init__.py @@ -0,0 +1,46 @@ +"""[!] This file is autogenerated""" + +from .packet_server_info import PacketServerInfo +from .packet_ping import PacketPing + +REGISTRY = { + 1073741839 : { 0:PacketServerInfo, 1:PacketPing }, + 709 : { 0:PacketServerInfo, 1:PacketPing }, + 351 : { 0:PacketServerInfo, 1:PacketPing }, + 327 : { 0:PacketServerInfo, 1:PacketPing }, + 321 : { 0:PacketServerInfo, 1:PacketPing }, + 304 : { 0:PacketServerInfo, 1:PacketPing }, + 201 : { 0:PacketServerInfo, 1:PacketPing }, + 76 : { 0:PacketServerInfo, 1:PacketPing }, + 107 : { 0:PacketServerInfo, 1:PacketPing }, + 110 : { 0:PacketServerInfo, 1:PacketPing }, + 109 : { 0:PacketServerInfo, 1:PacketPing }, + 108 : { 0:PacketServerInfo, 1:PacketPing }, + 47 : { 0:PacketServerInfo, 1:PacketPing }, + 5 : { 0:PacketServerInfo, 1:PacketPing }, + 757 : { 0:PacketServerInfo, 1:PacketPing }, + 755 : { 0:PacketServerInfo, 1:PacketPing }, + 756 : { 0:PacketServerInfo, 1:PacketPing }, + 735 : { 0:PacketServerInfo, 1:PacketPing }, + 751 : { 0:PacketServerInfo, 1:PacketPing }, + 736 : { 0:PacketServerInfo, 1:PacketPing }, + 734 : { 0:PacketServerInfo, 1:PacketPing }, + 573 : { 0:PacketServerInfo, 1:PacketPing }, + 578 : { 0:PacketServerInfo, 1:PacketPing }, + 575 : { 0:PacketServerInfo, 1:PacketPing }, + 477 : { 0:PacketServerInfo, 1:PacketPing }, + 498 : { 0:PacketServerInfo, 1:PacketPing }, + 490 : { 0:PacketServerInfo, 1:PacketPing }, + 480 : { 0:PacketServerInfo, 1:PacketPing }, + 393 : { 0:PacketServerInfo, 1:PacketPing }, + 404 : { 0:PacketServerInfo, 1:PacketPing }, + 403 : { 0:PacketServerInfo, 1:PacketPing }, + 402 : { 0:PacketServerInfo, 1:PacketPing }, + 401 : { 0:PacketServerInfo, 1:PacketPing }, + 335 : { 0:PacketServerInfo, 1:PacketPing }, + 340 : { 0:PacketServerInfo, 1:PacketPing }, + 338 : { 0:PacketServerInfo, 1:PacketPing }, + 331 : { 0:PacketServerInfo, 1:PacketPing }, + 315 : { 0:PacketServerInfo, 1:PacketPing }, + 210 : { 0:PacketServerInfo, 1:PacketPing } +} diff --git a/aiocraft/mc/proto/status/clientbound/packet_ping.py b/aiocraft/mc/proto/status/clientbound/packet_ping.py new file mode 100644 index 0000000..a0d1866 --- /dev/null +++ b/aiocraft/mc/proto/status/clientbound/packet_ping.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPing(Packet): + __slots__ = ( 'id', 'time' ) + + time : int + + _state : int = 1 + + _ids : Dict[int, int] = { + 5 : 1, + 47 : 1, + 76 : 1, + 107 : 1, + 108 : 1, + 109 : 1, + 110 : 1, + 201 : 1, + 210 : 1, + 304 : 1, + 315 : 1, + 321 : 1, + 327 : 1, + 331 : 1, + 335 : 1, + 338 : 1, + 340 : 1, + 351 : 1, + 393 : 1, + 401 : 1, + 402 : 1, + 403 : 1, + 404 : 1, + 477 : 1, + 480 : 1, + 490 : 1, + 498 : 1, + 573 : 1, + 575 : 1, + 578 : 1, + 709 : 1, + 734 : 1, + 735 : 1, + 736 : 1, + 751 : 1, + 755 : 1, + 756 : 1, + 757 : 1, + 1073741839 : 1 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'time', Long ) ], + 47 : [ ( 'time', Long ) ], + 76 : [ ( 'time', Long ) ], + 107 : [ ( 'time', Long ) ], + 108 : [ ( 'time', Long ) ], + 109 : [ ( 'time', Long ) ], + 110 : [ ( 'time', Long ) ], + 201 : [ ( 'time', Long ) ], + 210 : [ ( 'time', Long ) ], + 304 : [ ( 'time', Long ) ], + 315 : [ ( 'time', Long ) ], + 321 : [ ( 'time', Long ) ], + 327 : [ ( 'time', Long ) ], + 331 : [ ( 'time', Long ) ], + 335 : [ ( 'time', Long ) ], + 338 : [ ( 'time', Long ) ], + 340 : [ ( 'time', Long ) ], + 351 : [ ( 'time', Long ) ], + 393 : [ ( 'time', Long ) ], + 401 : [ ( 'time', Long ) ], + 402 : [ ( 'time', Long ) ], + 403 : [ ( 'time', Long ) ], + 404 : [ ( 'time', Long ) ], + 477 : [ ( 'time', Long ) ], + 480 : [ ( 'time', Long ) ], + 490 : [ ( 'time', Long ) ], + 498 : [ ( 'time', Long ) ], + 573 : [ ( 'time', Long ) ], + 575 : [ ( 'time', Long ) ], + 578 : [ ( 'time', Long ) ], + 709 : [ ( 'time', Long ) ], + 734 : [ ( 'time', Long ) ], + 735 : [ ( 'time', Long ) ], + 736 : [ ( 'time', Long ) ], + 751 : [ ( 'time', Long ) ], + 755 : [ ( 'time', Long ) ], + 756 : [ ( 'time', Long ) ], + 757 : [ ( 'time', Long ) ], + 1073741839 : [ ( 'time', Long ) ] + } diff --git a/aiocraft/mc/proto/status/clientbound/packet_server_info.py b/aiocraft/mc/proto/status/clientbound/packet_server_info.py new file mode 100644 index 0000000..4081fff --- /dev/null +++ b/aiocraft/mc/proto/status/clientbound/packet_server_info.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketServerInfo(Packet): + __slots__ = ( 'id', 'response' ) + + response : str + + _state : int = 1 + + _ids : Dict[int, int] = { + 5 : 0, + 47 : 0, + 76 : 0, + 107 : 0, + 108 : 0, + 109 : 0, + 110 : 0, + 201 : 0, + 210 : 0, + 304 : 0, + 315 : 0, + 321 : 0, + 327 : 0, + 331 : 0, + 335 : 0, + 338 : 0, + 340 : 0, + 351 : 0, + 393 : 0, + 401 : 0, + 402 : 0, + 403 : 0, + 404 : 0, + 477 : 0, + 480 : 0, + 490 : 0, + 498 : 0, + 573 : 0, + 575 : 0, + 578 : 0, + 709 : 0, + 734 : 0, + 735 : 0, + 736 : 0, + 751 : 0, + 755 : 0, + 756 : 0, + 757 : 0, + 1073741839 : 0 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'response', String ) ], + 47 : [ ( 'response', String ) ], + 76 : [ ( 'response', String ) ], + 107 : [ ( 'response', String ) ], + 108 : [ ( 'response', String ) ], + 109 : [ ( 'response', String ) ], + 110 : [ ( 'response', String ) ], + 201 : [ ( 'response', String ) ], + 210 : [ ( 'response', String ) ], + 304 : [ ( 'response', String ) ], + 315 : [ ( 'response', String ) ], + 321 : [ ( 'response', String ) ], + 327 : [ ( 'response', String ) ], + 331 : [ ( 'response', String ) ], + 335 : [ ( 'response', String ) ], + 338 : [ ( 'response', String ) ], + 340 : [ ( 'response', String ) ], + 351 : [ ( 'response', String ) ], + 393 : [ ( 'response', String ) ], + 401 : [ ( 'response', String ) ], + 402 : [ ( 'response', String ) ], + 403 : [ ( 'response', String ) ], + 404 : [ ( 'response', String ) ], + 477 : [ ( 'response', String ) ], + 480 : [ ( 'response', String ) ], + 490 : [ ( 'response', String ) ], + 498 : [ ( 'response', String ) ], + 573 : [ ( 'response', String ) ], + 575 : [ ( 'response', String ) ], + 578 : [ ( 'response', String ) ], + 709 : [ ( 'response', String ) ], + 734 : [ ( 'response', String ) ], + 735 : [ ( 'response', String ) ], + 736 : [ ( 'response', String ) ], + 751 : [ ( 'response', String ) ], + 755 : [ ( 'response', String ) ], + 756 : [ ( 'response', String ) ], + 757 : [ ( 'response', String ) ], + 1073741839 : [ ( 'response', String ) ] + } diff --git a/aiocraft/mc/proto/status/serverbound/__init__.py b/aiocraft/mc/proto/status/serverbound/__init__.py new file mode 100644 index 0000000..7134479 --- /dev/null +++ b/aiocraft/mc/proto/status/serverbound/__init__.py @@ -0,0 +1,46 @@ +"""[!] This file is autogenerated""" + +from .packet_ping_start import PacketPingStart +from .packet_ping import PacketPing + +REGISTRY = { + 1073741839 : { 0:PacketPingStart, 1:PacketPing }, + 709 : { 0:PacketPingStart, 1:PacketPing }, + 351 : { 0:PacketPingStart, 1:PacketPing }, + 327 : { 0:PacketPingStart, 1:PacketPing }, + 321 : { 0:PacketPingStart, 1:PacketPing }, + 304 : { 0:PacketPingStart, 1:PacketPing }, + 201 : { 0:PacketPingStart, 1:PacketPing }, + 76 : { 0:PacketPingStart, 1:PacketPing }, + 107 : { 0:PacketPingStart, 1:PacketPing }, + 110 : { 0:PacketPingStart, 1:PacketPing }, + 109 : { 0:PacketPingStart, 1:PacketPing }, + 108 : { 0:PacketPingStart, 1:PacketPing }, + 47 : { 0:PacketPingStart, 1:PacketPing }, + 5 : { 0:PacketPingStart, 1:PacketPing }, + 757 : { 0:PacketPingStart, 1:PacketPing }, + 755 : { 0:PacketPingStart, 1:PacketPing }, + 756 : { 0:PacketPingStart, 1:PacketPing }, + 735 : { 0:PacketPingStart, 1:PacketPing }, + 751 : { 0:PacketPingStart, 1:PacketPing }, + 736 : { 0:PacketPingStart, 1:PacketPing }, + 734 : { 0:PacketPingStart, 1:PacketPing }, + 573 : { 0:PacketPingStart, 1:PacketPing }, + 578 : { 0:PacketPingStart, 1:PacketPing }, + 575 : { 0:PacketPingStart, 1:PacketPing }, + 477 : { 0:PacketPingStart, 1:PacketPing }, + 498 : { 0:PacketPingStart, 1:PacketPing }, + 490 : { 0:PacketPingStart, 1:PacketPing }, + 480 : { 0:PacketPingStart, 1:PacketPing }, + 393 : { 0:PacketPingStart, 1:PacketPing }, + 404 : { 0:PacketPingStart, 1:PacketPing }, + 403 : { 0:PacketPingStart, 1:PacketPing }, + 402 : { 0:PacketPingStart, 1:PacketPing }, + 401 : { 0:PacketPingStart, 1:PacketPing }, + 335 : { 0:PacketPingStart, 1:PacketPing }, + 340 : { 0:PacketPingStart, 1:PacketPing }, + 338 : { 0:PacketPingStart, 1:PacketPing }, + 331 : { 0:PacketPingStart, 1:PacketPing }, + 315 : { 0:PacketPingStart, 1:PacketPing }, + 210 : { 0:PacketPingStart, 1:PacketPing } +} diff --git a/aiocraft/mc/proto/status/serverbound/packet_ping.py b/aiocraft/mc/proto/status/serverbound/packet_ping.py new file mode 100644 index 0000000..a0d1866 --- /dev/null +++ b/aiocraft/mc/proto/status/serverbound/packet_ping.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPing(Packet): + __slots__ = ( 'id', 'time' ) + + time : int + + _state : int = 1 + + _ids : Dict[int, int] = { + 5 : 1, + 47 : 1, + 76 : 1, + 107 : 1, + 108 : 1, + 109 : 1, + 110 : 1, + 201 : 1, + 210 : 1, + 304 : 1, + 315 : 1, + 321 : 1, + 327 : 1, + 331 : 1, + 335 : 1, + 338 : 1, + 340 : 1, + 351 : 1, + 393 : 1, + 401 : 1, + 402 : 1, + 403 : 1, + 404 : 1, + 477 : 1, + 480 : 1, + 490 : 1, + 498 : 1, + 573 : 1, + 575 : 1, + 578 : 1, + 709 : 1, + 734 : 1, + 735 : 1, + 736 : 1, + 751 : 1, + 755 : 1, + 756 : 1, + 757 : 1, + 1073741839 : 1 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ( 'time', Long ) ], + 47 : [ ( 'time', Long ) ], + 76 : [ ( 'time', Long ) ], + 107 : [ ( 'time', Long ) ], + 108 : [ ( 'time', Long ) ], + 109 : [ ( 'time', Long ) ], + 110 : [ ( 'time', Long ) ], + 201 : [ ( 'time', Long ) ], + 210 : [ ( 'time', Long ) ], + 304 : [ ( 'time', Long ) ], + 315 : [ ( 'time', Long ) ], + 321 : [ ( 'time', Long ) ], + 327 : [ ( 'time', Long ) ], + 331 : [ ( 'time', Long ) ], + 335 : [ ( 'time', Long ) ], + 338 : [ ( 'time', Long ) ], + 340 : [ ( 'time', Long ) ], + 351 : [ ( 'time', Long ) ], + 393 : [ ( 'time', Long ) ], + 401 : [ ( 'time', Long ) ], + 402 : [ ( 'time', Long ) ], + 403 : [ ( 'time', Long ) ], + 404 : [ ( 'time', Long ) ], + 477 : [ ( 'time', Long ) ], + 480 : [ ( 'time', Long ) ], + 490 : [ ( 'time', Long ) ], + 498 : [ ( 'time', Long ) ], + 573 : [ ( 'time', Long ) ], + 575 : [ ( 'time', Long ) ], + 578 : [ ( 'time', Long ) ], + 709 : [ ( 'time', Long ) ], + 734 : [ ( 'time', Long ) ], + 735 : [ ( 'time', Long ) ], + 736 : [ ( 'time', Long ) ], + 751 : [ ( 'time', Long ) ], + 755 : [ ( 'time', Long ) ], + 756 : [ ( 'time', Long ) ], + 757 : [ ( 'time', Long ) ], + 1073741839 : [ ( 'time', Long ) ] + } diff --git a/aiocraft/mc/proto/status/serverbound/packet_ping_start.py b/aiocraft/mc/proto/status/serverbound/packet_ping_start.py new file mode 100644 index 0000000..9557c52 --- /dev/null +++ b/aiocraft/mc/proto/status/serverbound/packet_ping_start.py @@ -0,0 +1,95 @@ +"""[!] This file is autogenerated""" + +from typing import Tuple, List, Dict, Union +from ....packet import Packet +from ....types import * + +class PacketPingStart(Packet): + __slots__ = ( 'id' ) + + + + _state : int = 1 + + _ids : Dict[int, int] = { + 5 : 0, + 47 : 0, + 76 : 0, + 107 : 0, + 108 : 0, + 109 : 0, + 110 : 0, + 201 : 0, + 210 : 0, + 304 : 0, + 315 : 0, + 321 : 0, + 327 : 0, + 331 : 0, + 335 : 0, + 338 : 0, + 340 : 0, + 351 : 0, + 393 : 0, + 401 : 0, + 402 : 0, + 403 : 0, + 404 : 0, + 477 : 0, + 480 : 0, + 490 : 0, + 498 : 0, + 573 : 0, + 575 : 0, + 578 : 0, + 709 : 0, + 734 : 0, + 735 : 0, + 736 : 0, + 751 : 0, + 755 : 0, + 756 : 0, + 757 : 0, + 1073741839 : 0 + } + _definitions : Dict[int, List[Tuple[str, Type]]] = { + 5 : [ ], + 47 : [ ], + 76 : [ ], + 107 : [ ], + 108 : [ ], + 109 : [ ], + 110 : [ ], + 201 : [ ], + 210 : [ ], + 304 : [ ], + 315 : [ ], + 321 : [ ], + 327 : [ ], + 331 : [ ], + 335 : [ ], + 338 : [ ], + 340 : [ ], + 351 : [ ], + 393 : [ ], + 401 : [ ], + 402 : [ ], + 403 : [ ], + 404 : [ ], + 477 : [ ], + 480 : [ ], + 490 : [ ], + 498 : [ ], + 573 : [ ], + 575 : [ ], + 578 : [ ], + 709 : [ ], + 734 : [ ], + 735 : [ ], + 736 : [ ], + 751 : [ ], + 755 : [ ], + 756 : [ ], + 757 : [ ], + 1073741839 : [ ] + } diff --git a/aiocraft/mc/types.py b/aiocraft/mc/types.py index 5726e16..4d036b1 100644 --- a/aiocraft/mc/types.py +++ b/aiocraft/mc/types.py @@ -308,7 +308,7 @@ class SlotType(Type): Byte.write(data["count"], buffer) if not new_way: Short.write(data["damage"], buffer) - NBTTag.write(data["nbt"], buffer) + NBTTag.write(data["nbt"], buffer) # TODO handle None ? else: check_type.write(False if new_way else -1, buffer) diff --git a/setup.py b/setup.py index 9ecebca..949e7ec 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,15 @@ from setuptools import setup, find_packages -from compiler.proto import compile - -compile() +# # This was done at install time, I did it once and pushed it until there's no documentation +# from compiler.proto import compile +# compile() with open("requirements.txt") as f: requirements = f.read().split("\n") setup( name='aiocraft', - version='0.0.6', + version='0.0.7', description='asyncio-powered headless minecraft client library', url='https://github.com/alemidev/aiocraft', author='alemi',