Package | Description |
---|---|
com.comphenix.protocol.concurrency | |
com.comphenix.protocol.events | |
com.comphenix.protocol.injector |
Modifier and Type | Method and Description |
---|---|
void |
AbstractConcurrentListenerMultimap.addListener(TListener listener,
ListeningWhitelist whitelist)
Adds a listener to its requested list of packet receivers.
|
java.util.List<PacketType> |
AbstractConcurrentListenerMultimap.removeListener(TListener listener,
ListeningWhitelist whitelist)
Removes the given listener from the packet event list.
|
Modifier and Type | Field and Description |
---|---|
static ListeningWhitelist |
ListeningWhitelist.EMPTY_WHITELIST
A whitelist with no packets - indicates that the listener shouldn't observe any packets.
|
protected ListeningWhitelist |
PacketAdapter.receivingWhitelist |
protected ListeningWhitelist |
PacketAdapter.sendingWhitelist |
Modifier and Type | Method and Description |
---|---|
ListeningWhitelist |
ListeningWhitelist.Builder.build()
Construct a new whitelist from the values in this builder.
|
ListeningWhitelist |
PacketListener.getReceivingWhitelist()
Retrieve which packets sent by the client this listener will observe.
|
ListeningWhitelist |
MonitorAdapter.getReceivingWhitelist() |
ListeningWhitelist |
PacketAdapter.getReceivingWhitelist() |
ListeningWhitelist |
PacketListener.getSendingWhitelist()
Retrieve which packets sent by the server this listener will observe.
|
ListeningWhitelist |
MonitorAdapter.getSendingWhitelist() |
ListeningWhitelist |
PacketAdapter.getSendingWhitelist() |
Modifier and Type | Method and Description |
---|---|
static boolean |
ListeningWhitelist.containsAny(ListeningWhitelist whitelist,
int... idList)
Determine if any of the given IDs can be found in the whitelist.
|
static boolean |
ListeningWhitelist.isEmpty(ListeningWhitelist whitelist)
Determine if the given whitelist is empty or not.
|
static ListeningWhitelist.Builder |
ListeningWhitelist.newBuilder(ListeningWhitelist template)
Construct a new builder of whitelists initialized to the same values as the template.
|
Modifier and Type | Method and Description |
---|---|
static void |
PacketFilterManager.verifyWhitelist(PacketListener listener,
ListeningWhitelist whitelist)
Determine if the packet IDs in a whitelist is valid.
|