minecraft/networking/connection.py
def register_packet_listener(self, method, *args):
        """
        Registers a listener method which will be notified when a packet of
        a selected type is received

        :param method: The method which will be called back with the packet
        : args: The packets to listen for
        """
        self.packet_listeners.append(packets.PacketListener(method, *args))

        Registers a listener method which will be notified when a packet of
        a selected type is received

        :param method: The method which will be called back with the packet
        : args: The packets to listen for
        
Registers a listener method which will be notified when a packet of
a selected type is received
Registers a listener method which will be notified when a packet of a selected type is received
def register_packet_listener(self, method, *args):
        self.packet_listeners.append(packets.PacketListener(method, *args))
def register_packet_listener ( self , method , * args ) : self . packet_listeners . append ( packets . PacketListener ( method , * args ) )
Registers a listener method which will be notified when a packet of
a selected type is received
Registers a listener method which will be notified when a packet of a selected type is received
"""
        Registers a listener method which will be notified when a packet of
        a selected type is received

        :param method: The method which will be called back with the packet
        : args: The packets to listen for
        """
self
method
The method which will be called back with the packet
The method which will be called back with the packet
args
The packets to listen for
The packets to listen for