18 lines
427 B
Python
18 lines
427 B
Python
|
from .base import Packet
|
||
|
|
||
|
class Packet21PickupSpawn(Packet, packet_id=21):
|
||
|
FIELDS = [
|
||
|
('entity_id', 'int'),
|
||
|
('item_id', 'short'),
|
||
|
('count', 'byte'),
|
||
|
('damage', 'short'),
|
||
|
('tag_size', 'short'),
|
||
|
('tag', ('bytes', 'tag_size')),
|
||
|
('x', 'int'),
|
||
|
('y', 'int'),
|
||
|
('z', 'int'),
|
||
|
('yaw', 'byte'),
|
||
|
('pitch', 'byte'),
|
||
|
('roll', 'byte'),
|
||
|
]
|