pyCraft/minecraft/networking/packets/keep_alive_packet.py

16 lines
305 B
Python
Raw Normal View History

2017-08-08 23:49:20 +02:00
from .packet import Packet
from minecraft.networking.types import (
VarInt
)
class AbstractKeepAlivePacket(Packet):
2017-08-08 23:49:20 +02:00
packet_name = "keep alive"
definition = [
{'keep_alive_id': VarInt}]
# This alias is retained for backward compatibility:
KeepAlivePacket = AbstractKeepAlivePacket