17 lines
369 B
Python
17 lines
369 B
Python
|
|
from typing import ClassVar
|
|
from .base import Packet
|
|
|
|
class Packet1Login(Packet):
|
|
PACKET_ID: ClassVar[int] = 1
|
|
|
|
FIELDS = [
|
|
('entity_id_and_proto', 'uint'),
|
|
('username', ('str', 16)),
|
|
('pubkey', ('str', 392)),
|
|
('seed', 'long'),
|
|
('dimension', 'byte'),
|
|
('worldtype', 'byte'),
|
|
('packet_delay', 'byte')
|
|
]
|