<li><ahref="../../../../../com/comphenix/protocol/injector/player/NetworkServerInjector.html"title="class in com.comphenix.protocol.injector.player"><spanclass="strong">Prev Class</span></a></li>
<ahref="../../../../../com/comphenix/protocol/error/ErrorReporter.html"title="interface in com.comphenix.protocol.error">ErrorReporter</a> reporter,
com.google.common.base.Predicate<<ahref="../../../../../com/comphenix/protocol/injector/GamePhase.html"title="enum in com.comphenix.protocol.injector">GamePhase</a>> injectionFilter,
<ahref="../../../../../com/comphenix/protocol/injector/ListenerInvoker.html"title="interface in com.comphenix.protocol.injector">ListenerInvoker</a> invoker,
java.util.Set<<ahref="../../../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a>> packetListeners,
<divclass="block">Add an underlying packet handler of the given ID.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/injector/player/PlayerInjectionHandler.html#checkListener(com.comphenix.protocol.events.PacketListener)">checkListener</a></strong>(<ahref="../../../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a> listener)</code>
<divclass="block">Determine if a listener is valid or not.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/injector/player/PlayerInjectionHandler.html#checkListener(java.util.Set)">checkListener</a></strong>(java.util.Set<<ahref="../../../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a>> listeners)</code>
<divclass="block">Determine if the given listeners are valid.</div>
<tdclass="colFirst"><code><ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a></code></td>
<tdclass="colFirst"><code><ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/injector/player/PlayerInjectionHandler.html#getPlayerHook(com.comphenix.protocol.injector.GamePhase)">getPlayerHook</a></strong>(<ahref="../../../../../com/comphenix/protocol/injector/GamePhase.html"title="enum in com.comphenix.protocol.injector">GamePhase</a> phase)</code>
<divclass="block">Retrieves how the server packets are read.</div>
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/injector/player/PlayerInjectionHandler.html#isInjectionNecessary(com.comphenix.protocol.injector.GamePhase)">isInjectionNecessary</a></strong>(<ahref="../../../../../com/comphenix/protocol/injector/GamePhase.html"title="enum in com.comphenix.protocol.injector">GamePhase</a> phase)</code>
<divclass="block">Determine if it's truly necessary to perform the given player injection.</div>
<ahref="../../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet,
boolean filters)</code>
<divclass="block">Send the given packet to the given reciever.</div>
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/injector/player/PlayerInjectionHandler.html#setPlayerHook(com.comphenix.protocol.injector.GamePhase, com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks)">setPlayerHook</a></strong>(<ahref="../../../../../com/comphenix/protocol/injector/GamePhase.html"title="enum in com.comphenix.protocol.injector">GamePhase</a> phase,
<ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a> playerHook)</code>
<divclass="block">Sets how the server packets are read.</div>
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/injector/player/PlayerInjectionHandler.html#setPlayerHook(com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks)">setPlayerHook</a></strong>(<ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a> playerHook)</code>
<divclass="block">Sets how the server packets are read.</div>
<ahref="../../../../../com/comphenix/protocol/error/ErrorReporter.html"title="interface in com.comphenix.protocol.error">ErrorReporter</a> reporter,
com.google.common.base.Predicate<<ahref="../../../../../com/comphenix/protocol/injector/GamePhase.html"title="enum in com.comphenix.protocol.injector">GamePhase</a>> injectionFilter,
<ahref="../../../../../com/comphenix/protocol/injector/ListenerInvoker.html"title="interface in com.comphenix.protocol.injector">ListenerInvoker</a> invoker,
java.util.Set<<ahref="../../../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a>> packetListeners,
<pre>public <ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a> getPlayerHook()</pre>
<divclass="block">Retrieves how the server packets are read.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Injection method for reading server packets.</dd></dl>
<pre>public <ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a> getPlayerHook(<ahref="../../../../../com/comphenix/protocol/injector/GamePhase.html"title="enum in com.comphenix.protocol.injector">GamePhase</a> phase)</pre>
<divclass="block">Retrieves how the server packets are read.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>phase</code> - - the current game phase.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Injection method for reading server packets.</dd></dl>
<pre>public void setPlayerHook(<ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a> playerHook)</pre>
<divclass="block">Sets how the server packets are read.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>playerHook</code> - - the new injection method for reading server packets.</dd></dl>
<pre>public void setPlayerHook(<ahref="../../../../../com/comphenix/protocol/injector/GamePhase.html"title="enum in com.comphenix.protocol.injector">GamePhase</a> phase,
<ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a> playerHook)</pre>
<divclass="block">Sets how the server packets are read.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>phase</code> - - the current game phase.</dd><dd><code>playerHook</code> - - the new injection method for reading server packets.</dd></dl>
<divclass="block">Retrieve a player by its DataInput connection.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>inputStream</code> - - the associated DataInput connection.</dd><dd><code>playerTimeout</code> - - the amount of time to wait for a result.</dd><dd><code>unit</code> - - unit of playerTimeout.</dd>
<pre>public boolean isInjectionNecessary(<ahref="../../../../../com/comphenix/protocol/injector/GamePhase.html"title="enum in com.comphenix.protocol.injector">GamePhase</a> phase)</pre>
<divclass="block">Determine if it's truly necessary to perform the given player injection.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>phase</code> - - current game phase.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>TRUE if we should perform the injection, FALSE otherwise.</dd></dl>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>player</code> - - player to unregister.</dd><dd><code>removeAuxiliary</code> - - TRUE to remove auxiliary information, such as input stream and address.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>TRUE if a player has been uninjected, FALSE otherwise.</dd></dl>
<ahref="../../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet,
<divclass="block">Send the given packet to the given reciever.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>reciever</code> - - the player receiver.</dd><dd><code>packet</code> - - the packet to send.</dd><dd><code>filters</code> - - whether or not to invoke the packet filters.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.reflect.InvocationTargetException</code> - If an error occured during sending.</dd></dl>
<divclass="block">Process a packet as if it were sent by the given player.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>player</code> - - the sender.</dd><dd><code>mcPacket</code> - - the packet to process.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalAccessException</code> - If the reflection machinery failed.</dd>
<dd><code>java.lang.reflect.InvocationTargetException</code> - If the underlying method caused an error.</dd></dl>
</li>
</ul>
<aname="checkListener(java.util.Set)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>checkListener</h4>
<pre>public void checkListener(java.util.Set<<ahref="../../../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a>> listeners)</pre>
<divclass="block">Determine if the given listeners are valid.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>listeners</code> - - listeners to check.</dd></dl>
<pre>public void checkListener(<ahref="../../../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a> listener)</pre>
<li><ahref="../../../../../com/comphenix/protocol/injector/player/NetworkServerInjector.html"title="class in com.comphenix.protocol.injector.player"><spanclass="strong">Prev Class</span></a></li>