Add packet 142 and fix 141
This commit is contained in:
parent
d0f1962ae3
commit
9e614b897e
|
@ -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
|
||||||
|
|
|
@ -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')
|
||||||
]
|
]
|
||||||
|
|
|
@ -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'),
|
||||||
|
]
|
Loading…
Reference in New Issue