regorganize packet structure as outlined in https://github.com/ammaraskar/pyCraft/pull/68
This commit is contained in:
1 parent
f8781c19c8
commit
8552c6efe5
15 files changed
+1291
-1164
No files matched your search
@@ -0,0 +1,23 @@
|
||||
from minecraft.networking.packets import Packet
|
||||
|
||||
from minecraft.networking.types import (
|
||||
VarInt, String, UnsignedShort
|
||||
)
|
||||
|
||||
|
||||
# Formerly known as state_handshake_serverbound.
|
||||
def get_packets(context):
|
||||
packets = {
|
||||
HandShakePacket
|
||||
}
|
||||
return packets
|
||||
|
||||
|
||||
class HandShakePacket(Packet):
|
||||
id = 0x00
|
||||
packet_name = "handshake"
|
||||
definition = [
|
||||
{'protocol_version': VarInt},
|
||||
{'server_address': String},
|
||||
{'server_port': UnsignedShort},
|
||||
{'next_state': VarInt}]
|
||||
Reference in new issue
Block a user