Begin 26.3 protocol support
This commit is contained in:
1 parent
bcd156e83b
commit
faff7a0bf5
5 files changed
+391
-4
No files matched your search
@@ -1,7 +1,7 @@
|
||||
from minecraft.networking.packets import Packet
|
||||
|
||||
from minecraft.networking.types import (
|
||||
VarInt, Boolean, String, VarIntPrefixedByteArray, TrailingByteArray
|
||||
VarInt, Boolean, String, UUID, VarIntPrefixedByteArray, TrailingByteArray
|
||||
)
|
||||
|
||||
|
||||
@@ -26,8 +26,10 @@ class LoginStartPacket(Packet):
|
||||
0x00
|
||||
|
||||
packet_name = "login start"
|
||||
definition = [
|
||||
{'name': String}]
|
||||
get_definition = staticmethod(lambda context: [
|
||||
{'name': String},
|
||||
{'player_uuid': UUID} if context.protocol_version >= 759 else {},
|
||||
])
|
||||
|
||||
|
||||
class EncryptionResponsePacket(Packet):
|
||||
|
||||
Reference in new issue
Block a user