Package com.comphenix.protocol.events
Class MonitorAdapter
java.lang.Object
com.comphenix.protocol.events.MonitorAdapter
- All Implemented Interfaces:
PacketListener
Represents a listener that is notified of every sent and received packet.
- Author:
- Kristian
-
Constructor Summary
ConstructorsConstructorDescriptionMonitorAdapter(org.bukkit.plugin.Plugin plugin, ConnectionSide side)MonitorAdapter(org.bukkit.plugin.Plugin plugin, ConnectionSide side, Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.plugin.PluginRetrieve the plugin that created list packet listener.Retrieve which packets sent by the client this listener will observe.Retrieve which packets sent by the server this listener will observe.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.comphenix.protocol.events.PacketListener
onPacketReceiving, onPacketSending
-
Constructor Details
-
MonitorAdapter
-
MonitorAdapter
-
-
Method Details
-
getSendingWhitelist
Description copied from interface:PacketListenerRetrieve which packets sent by the server this listener will observe.- Specified by:
getSendingWhitelistin interfacePacketListener- Returns:
- List of server packets to observe, along with the priority.
-
getReceivingWhitelist
Description copied from interface:PacketListenerRetrieve which packets sent by the client this listener will observe.- Specified by:
getReceivingWhitelistin interfacePacketListener- Returns:
- List of server packets to observe, along with the priority.
-
getPlugin
public org.bukkit.plugin.Plugin getPlugin()Description copied from interface:PacketListenerRetrieve the plugin that created list packet listener.- Specified by:
getPluginin interfacePacketListener- Returns:
- The plugin, or NULL if not available.
-