bta-proxy/bta_proxy/packets/packet5playerinventory.py

12 lines
322 B
Python

from .base import Packet
class Packet5PlayerInventory(Packet, packet_id=5):
__slots__ = ('entity_id', 'slot', 'item', 'data')
FIELDS = [
('entity_id', 'int'),
('slot', 'short'),
('item', 'itemstack_optional'),
('size?item', 'short'),
('data?item', ('bytes', 'size'))
]