Package | Description |
---|---|
com.comphenix.protocol.events | |
com.comphenix.protocol.injector | |
com.comphenix.protocol.injector.player |
Modifier and Type | Method and Description |
---|---|
GamePhase |
ListeningWhitelist.getGamePhase()
Retrieve which game phase this listener is active under.
|
Constructor and Description |
---|
ListeningWhitelist(ListenerPriority priority,
java.lang.Integer[] whitelist,
GamePhase gamePhase)
Creates a packet whitelist for a given priority with a set of packet IDs.
|
ListeningWhitelist(ListenerPriority priority,
java.util.Set<java.lang.Integer> whitelist,
GamePhase gamePhase)
Creates a packet whitelist for a given priority with a set of packet IDs.
|
PacketAdapter(Plugin plugin,
ConnectionSide connectionSide,
GamePhase gamePhase,
java.lang.Integer... packets)
Initialize a packet listener for a single connection side.
|
PacketAdapter(Plugin plugin,
ConnectionSide connectionSide,
GamePhase gamePhase,
java.util.Set<java.lang.Integer> packets)
Initialize a packet listener for a single connection side.
|
PacketAdapter(Plugin plugin,
ConnectionSide connectionSide,
ListenerPriority listenerPriority,
GamePhase gamePhase,
java.lang.Integer... packets)
Initialize a packet listener for a single connection side.
|
PacketAdapter(Plugin plugin,
ConnectionSide connectionSide,
ListenerPriority listenerPriority,
GamePhase gamePhase,
java.util.Set<java.lang.Integer> packets)
Initialize a packet listener for a single connection side.
|
Modifier and Type | Method and Description |
---|---|
static GamePhase |
GamePhase.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GamePhase[] |
GamePhase.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.Predicate<GamePhase> |
PlayerInjectorBuilder.injectionFilter |
Modifier and Type | Method and Description |
---|---|
boolean |
NetworkObjectInjector.canInject(GamePhase phase) |
PacketFilterManager.PlayerInjectHooks |
PlayerInjectionHandler.getPlayerHook(GamePhase phase)
Retrieves how the server packets are read.
|
void |
PlayerInjectionHandler.setPlayerHook(GamePhase phase,
PacketFilterManager.PlayerInjectHooks playerHook)
Sets how the server packets are read.
|
Modifier and Type | Method and Description |
---|---|
PlayerInjectorBuilder |
PlayerInjectorBuilder.injectionFilter(com.google.common.base.Predicate<GamePhase> injectionFilter)
The injection filter that is used to determine if it is necessary to perform
injection during a certain phase.
|