From 2667b14bed37ff23eb6bca005c55f4fb77cc98d3 Mon Sep 17 00:00:00 2001 From: hkc Date: Sun, 27 Aug 2023 15:37:41 +0300 Subject: [PATCH] Packet5PlayerInventory --- bta_proxy/packets/__init__.py | 2 ++ bta_proxy/packets/packet5playerinventory.py | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 bta_proxy/packets/packet5playerinventory.py diff --git a/bta_proxy/packets/__init__.py b/bta_proxy/packets/__init__.py index 1b9e17c..6f39f2d 100644 --- a/bta_proxy/packets/__init__.py +++ b/bta_proxy/packets/__init__.py @@ -77,3 +77,5 @@ from .packet141updateflag import Packet141UpdateFlag from .packet105updateprogressbar import Packet105UpdateProgressbar from .packet142openflagwindow import Packet142OpenFlagWindow from .packet108sethotbaroffset import Packet108SetHotbarOffset +from .packet5playerinventory import Packet5PlayerInventory +from .packet5playerinventory import Packet5PlayerInventory diff --git a/bta_proxy/packets/packet5playerinventory.py b/bta_proxy/packets/packet5playerinventory.py new file mode 100644 index 0000000..0f6771a --- /dev/null +++ b/bta_proxy/packets/packet5playerinventory.py @@ -0,0 +1,9 @@ +from .base import Packet + +class Packet5PlayerInventory(Packet, packet_id=5): + __slots__ = ('entity_id', 'item', 'data') + FIELDS = [ + ('entity_id', 'int'), + ('item', 'itemstack'), + ('data', 'nbt'), + ]