pyCraft/minecraft/networking/packets/keep_alive_packet.py
joo e9f095de42 Add ClientSettingsPacket and PluginMessagePacket.
Improve Packet string representation.
2017-08-24 05:49:32 +01:00

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