|
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'))
|
|
]
|