Add packet 142 and fix 141

This commit is contained in:
Casey 2023-08-27 15:02:50 +03:00
parent d0f1962ae3
commit 9e614b897e
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
3 changed files with 12 additions and 0 deletions

View File

@ -75,3 +75,4 @@ from .packet137updateflag import Packet137UpdateFlag
from .packet139setpaintingmotive import Packet139SetPaintingMotive from .packet139setpaintingmotive import Packet139SetPaintingMotive
from .packet141updateflag import Packet141UpdateFlag from .packet141updateflag import Packet141UpdateFlag
from .packet105updateprogressbar import Packet105UpdateProgressbar from .packet105updateprogressbar import Packet105UpdateProgressbar
from .packet142openflagwindow import Packet142OpenFlagWindow

View File

@ -8,4 +8,5 @@ class Packet141UpdateFlag(Packet, packet_id=141):
('z', 'int'), ('z', 'int'),
('colors', ('bytes', 384)), ('colors', ('bytes', 384)),
('items', ('list', 3, 'nbt')), ('items', ('list', 3, 'nbt')),
('owner', 'string')
] ]

View File

@ -0,0 +1,10 @@
from .base import Packet
class Packet142OpenFlagWindow(Packet, packet_id=142):
__slots__ = ('window_id', 'x', 'y', 'z')
FIELDS = [
('window_id', 'ubyte'),
('x', 'int'),
('y', 'short'),
('z', 'int'),
]