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(org.bukkit.plugin.Plugin plugin,
ConnectionSide connectionSide,
GamePhase gamePhase,
java.lang.Integer... packets)
Initialize a packet listener for a single connection side.
|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
ConnectionSide connectionSide,
GamePhase gamePhase,
java.util.Set<java.lang.Integer> packets)
Initialize a packet listener for a single connection side.
|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
ConnectionSide connectionSide,
ListenerPriority listenerPriority,
GamePhase gamePhase,
java.lang.Integer... packets)
Initialize a packet listener for a single connection side.
|
PacketAdapter(org.bukkit.plugin.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 | Method and Description |
---|---|
boolean |
NetworkServerInjector.canInject(GamePhase phase) |
PacketFilterManager.PlayerInjectHooks |
PlayerInjectionHandler.getPlayerHook(GamePhase phase)
Retrieves how the server packets are read.
|
boolean |
PlayerInjectionHandler.isInjectionNecessary(GamePhase phase)
Determine if it's truly necessary to perform the given player injection.
|
void |
PlayerInjectionHandler.setPlayerHook(GamePhase phase,
PacketFilterManager.PlayerInjectHooks playerHook)
Sets how the server packets are read.
|
Constructor and Description |
---|
PlayerInjectionHandler(java.lang.ClassLoader classLoader,
ErrorReporter reporter,
com.google.common.base.Predicate<GamePhase> injectionFilter,
ListenerInvoker invoker,
java.util.Set<PacketListener> packetListeners,
org.bukkit.Server server) |