ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketPostListener.java
2023-06-05 08:42:55 -05:00

24 lines
582 B
Java

package com.comphenix.protocol.events;
import org.bukkit.plugin.Plugin;
/**
* Represents a packet listener that is invoked after a packet has been sent or received.
* @author Kristian
*/
public interface PacketPostListener {
/**
* Retrieve the plugin this listener belongs to.
* @return The assoicated plugin.
*/
Plugin getPlugin();
/**
* Invoked after a packet has been sent or received.
* <p>
* Note that this is invoked asynchronously.
* @param event - the packet event.
*/
void onPostEvent(PacketEvent event);
}