mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-12-03 07:33:56 +01:00
e9f095de42
Improve Packet string representation.
16 lines
305 B
Python
16 lines
305 B
Python
from .packet import Packet
|
|
|
|
from minecraft.networking.types import (
|
|
VarInt
|
|
)
|
|
|
|
|
|
class AbstractKeepAlivePacket(Packet):
|
|
packet_name = "keep alive"
|
|
definition = [
|
|
{'keep_alive_id': VarInt}]
|
|
|
|
|
|
# This alias is retained for backward compatibility:
|
|
KeepAlivePacket = AbstractKeepAlivePacket
|