From f1ae765458c96b43b0473d7960e7f466acd60f40 Mon Sep 17 00:00:00 2001 From: joo Date: Wed, 9 Aug 2017 19:32:07 +0100 Subject: [PATCH] Add docstring about legacy packet names to packets module. --- minecraft/networking/packets/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/minecraft/networking/packets/__init__.py b/minecraft/networking/packets/__init__.py index 37b5367..f84488d 100644 --- a/minecraft/networking/packets/__init__.py +++ b/minecraft/networking/packets/__init__.py @@ -1,3 +1,13 @@ +''' +NOTE: The packet classes in __all_legacy_packets__ exported by this +module are included only for backward compatibility, and should not +be used in new code, as (1) they do not include all packets present +in pyCraft, and (2) some are named oddly, for historical reasons. + +Use the packet classes under packets.clientbound.* and +packets.serverbound.* instead. +''' + from .packet import Packet from .packet_buffer import PacketBuffer from .keep_alive_packet import KeepAlivePacket