<filename>leviathan/network/protocol/info.py<gh_stars>10-100
import abc


class ProtocolInfo(metaclass=abc.ABCMeta):

    CURRENT_PROTOCOL = "361"
    MINECRAFT_VERSION = "v1.12.0"
    MINECRAFT_VERSION_NETWORK = "1.12.0"

    LOGIN_PACKET = 0x01
    PLAY_STATUS_PACKET = 0x02
    SERVER_TO_CLIENT_HANDSHAKE_PACKET = 0x03
    CLIENT_TO_SERVER_HANDSHAKE_PACKET = 0x04
    DISCONNECT_PACKET = 0x05
    RESOURCE_PACKS_INFO_PACKET = 0x06
    RESOURCE_PACK_STACK_PACKET = 0x07
    RESOURCE_PACK_CLIENT_RESPONSE_PACKET = 0x08
    TEXT_PACKET = 0x09
    SET_TIME_PACKET = 0x0a
    START_GAME_PACKET = 0x0b
    ADD_PLAYER_PACKET = 0x0c
    ADD_ENTITY_PACKET = 0x0d
    REMOVE_ENTITY_PACKET = 0x0e
    ADD_ITEM_ENTITY_PACKET = 0x0f
    TAKE_ITEM_ENTITY_PACKET = 0x11
    MOVE_ENTITY_ABSOLUTE_PACKET = 0x12
    MOVE_PLAYER_PACKET = 0x13
    RIDER_JUMP_PACKET = 0x14
    UPDATE_BLOCK_PACKET = 0x15
    ADD_PAINTING_PACKET = 0x16
    EXPLODE_PACKET = 0x17
    LEVEL_SOUND_EVENT_PACKET_V1 = 0x18
    LEVEL_EVENT_PACKET = 0x19
    BLOCK_EVENT_PACKET = 0x1a
    ENTITY_EVENT_PACKET = 0x1b
    MOB_EFFECT_PACKET = 0x1c
    UPDATE_ATTRIBUTES_PACKET = 0x1d
    INVENTORY_TRANSACTION_PACKET = 0x1e
    MOB_EQUIPMENT_PACKET = 0x1f
    MOB_ARMOR_EQUIPMENT_PACKET = 0x20
    INTERACT_PACKET = 0x21
    BLOCK_PICK_REQUEST_PACKET = 0x22
    ENTITY_PICK_REQUEST_PACKET = 0x23
    PLAYER_ACTION_PACKET = 0x24
    ENTITY_FALL_PACKET = 0x25
    HURT_ARMOR_PACKET = 0x26
    SET_ENTITY_DATA_PACKET = 0x27
    SET_ENTITY_MOTION_PACKET = 0x28
    SET_ENTITY_LINK_PACKET = 0x29
    SET_HEALTH_PACKET = 0x2a
    SET_SPAWN_POSITION_PACKET = 0x2b
    ANIMATE_PACKET = 0x2c
    RESPAWN_PACKET = 0x2d
    CONTAINER_OPEN_PACKET = 0x2e
    CONTAINER_CLOSE_PACKET = 0x2f
    PLAYER_HOTBAR_PACKET = 0x30
    INVENTORY_CONTENT_PACKET = 0x31
    INVENTORY_SLOT_PACKET = 0x32
    CONTAINER_SET_DATA_PACKET = 0x33
    CRAFTING_DATA_PACKET = 0x34
    CRAFTING_EVENT_PACKET = 0x35
    GUI_DATA_PICK_ITEM_PACKET = 0x36
    ADVENTURE_SETTINGS_PACKET = 0x37
    BLOCK_ENTITY_DATA_PACKET = 0x38
    PLAYER_INPUT_PACKET = 0x39
    FULL_CHUNK_DATA_PACKET = 0x3a
    SET_COMMANDS_ENABLED_PACKET = 0x3b
    SET_DIFFICULTY_PACKET = 0x3c
    CHANGE_DIMENSION_PACKET = 0x3d
    SET_PLAYER_GAME_TYPE_PACKET = 0x3e
    PLAYER_LIST_PACKET = 0x3f
    SIMPLE_EVENT_PACKET = 0x40
    EVENT_PACKET = 0x41
    SPAWN_EXPERIENCE_ORB_PACKET = 0x42
    CLIENTBOUND_MAP_ITEM_DATA_PACKET = 0x43
    MAP_INFO_REQUEST_PACKET = 0x44
    REQUEST_CHUNK_RADIUS_PACKET = 0x45
    CHUNK_RADIUS_UPDATED_PACKET = 0x46
    ITEM_FRAME_DROP_ITEM_PACKET = 0x47
    GAME_RULES_CHANGED_PACKET = 0x48
    CAMERA_PACKET = 0x49
    BOSS_EVENT_PACKET = 0x4a
    SHOW_CREDITS_PACKET = 0x4b
    AVAILABLE_COMMANDS_PACKET = 0x4c
    COMMAND_REQUEST_PACKET = 0x4d
    COMMAND_BLOCK_UPDATE_PACKET = 0x4e
    COMMAND_OUTPUT_PACKET = 0x4f
    UPDATE_TRADE_PACKET = 0x50
    UPDATE_EQUIPMENT_PACKET = 0x51
    RESOURCE_PACK_DATA_INFO_PACKET = 0x52
    RESOURCE_PACK_CHUNK_DATA_PACKET = 0x53
    RESOURCE_PACK_CHUNK_REQUEST_PACKET = 0x54
    TRANSFER_PACKET = 0x55
    PLAY_SOUND_PACKET = 0x56
    STOP_SOUND_PACKET = 0x57
    SET_TITLE_PACKET = 0x58
    ADD_BEHAVIOR_TREE_PACKET = 0x59
    STRUCTURE_BLOCK_UPDATE_PACKET = 0x5a
    SHOW_STORE_OFFER_PACKET = 0x5b
    PURCHASE_RECEIPT_PACKET = 0x5c
    PLAYER_SKIN_PACKET = 0x5d
    SUB_CLIENT_LOGIN_PACKET = 0x5e
    INITIATE_WEB_SOCKET_CONNECTION_PACKET = 0x5f
    SET_LAST_HURT_BY_PACKET = 0x60
    BOOK_EDIT_PACKET = 0x61
    NPC_REQUEST_PACKET = 0x62
    PHOTO_TRANSFER_PACKET = 0x63
    MODAL_FORM_REQUEST_PACKET = 0x64
    MODAL_FORM_RESPONSE_PACKET = 0x65
    SERVER_SETTINGS_REQUEST_PACKET = 0x66
    SERVER_SETTINGS_RESPONSE_PACKET = 0x67
    SHOW_PROFILE_PACKET = 0x68
    SET_DEFAULT_GAME_TYPE_PACKET = 0x69
    MOVE_ENTITY_DELTA_PACKET = 0x6f
    SET_SCOREBOARD_IDENTITY_PACKET = 0x70
    SET_LOCAL_PLAYER_AS_INITIALIZED_PACKET = 0x71
    UPDATE_SOFT_ENUM_PACKET = 0x72
    NETWORK_STACK_LATENCY_PACKET = 0x73

    SCRIPT_CUSTOM_EVENT_PACKET = 0x75
    SPAWN_PARTICLE_EFFECT_PACKET = 0x76
    AVAILABLE_ENTITY_IDENTIFIERS_PACKET = 0x77
    LEVEL_SOUND_EVENT_PACKET_V2 = 0x78
    NETWORK_CHUNK_PUBLISHER_UPDATE_PACKET = 0x79
    BIOME_DEFINITION_LIST_PACKET = 0x7a
    LEVEL_SOUND_EVENT_PACKET = 0x7b
    LEVEL_EVENT_GENERIC_PACKET = 0x7c
    LECTERN_UPDATE_PACKET = 0x7d
    VIDEO_STREAM_CONNECT_PACKET = 0x7e
    # ADD_ENTITY_PACKET = 0x7f
    # REMOVE_ENTITY_PACKET = 0x80
    CLIENT_CACHE_STATUS_PACKET = 0x81
    ON_SCREEN_TEXTURE_ANIMATION_PACKET = 0x82
    MAP_CREATE_LOCKED_COPY_PACKET = 0x83
    STRUCTURE_TEMPLATE_DATA_EXPORT_REQUEST = 0x84
    STRUCTURE_TEMPLATE_DATA_EXPORT_RESPONSE = 0x85
    UPDATE_BLOCK_PROPERTIES = 0x86
    CLIENT_CACHE_BLOB_STATUS_PACKET = 0x87
    CLIENT_CACHE_MISS_RESPONSE_PACKET = 0x88

    BATCH_PACKET = 0xff
