<li><ahref="../../../../../com/comphenix/protocol/injector/player/NetworkServerInjector.html"title="class in com.comphenix.protocol.injector.player"><spanclass="strong">Prev Class</span></a></li>
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,
org.bukkit.Server server)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<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>
<divclass="block">Retrieve a player by its DataInput connection.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../../../com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html"title="enum in com.comphenix.protocol.injector">PacketFilterManager.PlayerInjectHooks</a></code></td>
<divclass="block">Retrieves how the server packets are read.</div>
</td>
</tr>
<trclass="rowColor">
<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>
<divclass="block">Initialize a player hook, allowing us to read server packets.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<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>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<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>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<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>
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,
org.bukkit.Server server)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="getPlayerHook()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPlayerHook</h4>
<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>
<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>
<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>
<divclass="block">Determine if a listener is valid or not.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>listener</code> - - listener to check.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - If the given listener's whitelist cannot be fulfilled.</dd></dl>
<li><ahref="../../../../../com/comphenix/protocol/injector/player/NetworkServerInjector.html"title="class in com.comphenix.protocol.injector.player"><spanclass="strong">Prev Class</span></a></li>