bta-proxy/bta_proxy/packets/packet5playerinventory.py

12 lines
322 B
Python
Raw Normal View History

2023-08-27 15:37:41 +03:00
from .base import Packet
class Packet5PlayerInventory(Packet, packet_id=5):
2023-08-28 01:51:35 +03:00
__slots__ = ('entity_id', 'slot', 'item', 'data')
2023-08-27 15:37:41 +03:00
FIELDS = [
('entity_id', 'int'),
2023-08-28 01:51:35 +03:00
('slot', 'short'),
('item', 'itemstack_optional'),
('size?item', 'short'),
('data?item', ('bytes', 'size'))
2023-08-27 15:37:41 +03:00
]