All pastes #54064 Raw Edit

Miscellany

public text v1 · immutable
#54064 ·published 2006-05-07 18:18 UTC
rendered paste body
package net.sf.l2j.gameserver;

import java.nio.ByteBuffer;

/**
 * This interface can be implemented by custom extensions to l2j to get packets
 * before the normal processing of PacketHandler
 * 
 * @version $Revision: $ $Date: $
 * @author  galun
 */
public interface CustomPacketHandlerInterface {

    /**
     * interface for a custom packethandler to ckeck received packets
     * PacketHandler will take care of the packet if this function returns false. 
     * @param data the packet
     * @param client the ClientThread
     * @return true if the packet has been processed, false otherwise
     */
    public boolean handlePacket(ByteBuffer data, ClientThread client);
}