17 lines
448 B
Python
17 lines
448 B
Python
from .base import Packet
|
|
|
|
class Packet20NamedEntitySpawn(Packet, packet_id=20):
|
|
__slots__ = ('entity_id', 'name', 'x', 'y', 'z', 'yaw', 'pitch', 'item', 'name', 'color')
|
|
FIELDS = [
|
|
('entity_id', 'int'),
|
|
('name', 'str'),
|
|
('x', 'int'),
|
|
('y', 'int'),
|
|
('z', 'int'),
|
|
('yaw', 'byte'),
|
|
('pitch', 'byte'),
|
|
('item', 'short'),
|
|
('name', 'str'),
|
|
('color', 'ubyte'),
|
|
]
|