<li><ahref="../../../com/comphenix/protocol/ProtocolLibrary.html"title="class in com.comphenix.protocol"><spanclass="strong">Prev Class</span></a></li>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/comphenix/protocol/ProtocolManager.html#addPacketListener(com.comphenix.protocol.events.PacketListener)">addPacketListener</a></strong>(<ahref="../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a> listener)</code>
<divclass="block">Adds a packet listener.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a></code></td>
<divclass="block">Constructs a new encapsulated Minecraft packet with the given ID.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a></code></td>
<divclass="block">Construct a packet using the special builtin Minecraft constructors.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../com/comphenix/protocol/AsynchronousManager.html"title="interface in com.comphenix.protocol">AsynchronousManager</a></code></td>
<tdclass="colFirst"><code>com.google.common.collect.ImmutableSet<<ahref="../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a>></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/comphenix/protocol/ProtocolManager.html#removePacketListener(com.comphenix.protocol.events.PacketListener)">removePacketListener</a></strong>(<ahref="../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a> listener)</code>
<divclass="block">Removes a given packet listener.</div>
<h3>Methods inherited from interface com.comphenix.protocol.<ahref="../../../com/comphenix/protocol/PacketStream.html"title="interface in com.comphenix.protocol">PacketStream</a></h3>
<divclass="block">Send a packet to the given player.
<p>
Re-sending a previously cancelled packet is discuraged. Use <ahref="../../../com/comphenix/protocol/async/AsyncMarker.html#incrementProcessingDelay()"><code>AsyncMarker.incrementProcessingDelay()</code></a>
to delay a packet until a certain condition has been met.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/comphenix/protocol/PacketStream.html#sendServerPacket(org.bukkit.entity.Player, com.comphenix.protocol.events.PacketContainer, boolean)">sendServerPacket</a></code> in interface <code><ahref="../../../com/comphenix/protocol/PacketStream.html"title="interface in com.comphenix.protocol">PacketStream</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>reciever</code> - - the reciever.</dd><dd><code>packet</code> - - packet to send.</dd><dd><code>filters</code> - - whether or not to invoke any packet filters.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.reflect.InvocationTargetException</code> - - if an error occured when sending the packet.</dd></dl>
<ahref="../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet,
boolean filters)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException</pre>
<divclass="block">Simulate recieving a certain packet from a given player.
<p>
Receiving a previously cancelled packet is discuraged. Use <ahref="../../../com/comphenix/protocol/async/AsyncMarker.html#incrementProcessingDelay()"><code>AsyncMarker.incrementProcessingDelay()</code></a>
to delay a packet until a certain condition has been met.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/comphenix/protocol/PacketStream.html#recieveClientPacket(org.bukkit.entity.Player, com.comphenix.protocol.events.PacketContainer, boolean)">recieveClientPacket</a></code> in interface <code><ahref="../../../com/comphenix/protocol/PacketStream.html"title="interface in com.comphenix.protocol">PacketStream</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>sender</code> - - the sender.</dd><dd><code>packet</code> - - the packet that was sent.</dd><dd><code>filters</code> - - whether or not to invoke any packet filters.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.reflect.InvocationTargetException</code> - If the reflection machinery failed.</dd>
<dd><code>java.lang.IllegalAccessException</code> - If the underlying method caused an error.</dd></dl>
<pre>com.google.common.collect.ImmutableSet<<ahref="../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a>> getPacketListeners()</pre>
<divclass="block">Retrieves a list of every registered packet listener.</div>
<pre>void addPacketListener(<ahref="../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a> listener)</pre>
<divclass="block">Adds a packet listener.
<p>
Adding an already registered listener has no effect. If you need to change the packets
the current listener is observing, you must first remove the packet listener before you
can register it again.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>listener</code> - - new packet listener.</dd></dl>
<pre>void removePacketListener(<ahref="../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events">PacketListener</a> listener)</pre>
<divclass="block">Removes a given packet listener.
<p>
Attempting to remove a listener that doesn't exist has no effect.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>listener</code> - - the packet listener to remove.</dd></dl>
<divclass="block">Removes every listener associated with the given plugin.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>plugin</code> - - the plugin to unload.</dd></dl>
</li>
</ul>
<aname="createPacket(int)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>createPacket</h4>
<pre><ahref="../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> createPacket(int id)</pre>
<divclass="block">Constructs a new encapsulated Minecraft packet with the given ID.</div>
<pre><ahref="../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> createPacket(int id,
boolean forceDefaults)</pre>
<divclass="block">Constructs a new encapsulated Minecraft packet with the given ID.
<p>
If set to true, the <i>forceDefaults</i> option will force the system to automatically
give non-primitive fields in the packet sensible default values. For instance, certain
packets - like Packet60Explosion - require a List or Set to be non-null. If the
forceDefaults option is true, the List or Set will be automatically created.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>id</code> - - packet ID.</dd><dd><code>forceDefaults</code> - - TRUE to use sensible defaults in most fields, FALSE otherwise.</dd>
<divclass="block">Construct a packet using the special builtin Minecraft constructors.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>id</code> - - the packet ID.</dd><dd><code>arguments</code> - - arguments that will be passed to the constructor.</dd>
throws <ahref="../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect">FieldAccessException</a></pre>
Note that this method is NOT thread safe. If you call this method from anything
but the main thread, it will throw an exception.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>entity</code> - - entity to refresh.</dd><dd><code>observers</code> - - the clients to update.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect">FieldAccessException</a></code></dd></dl>
throws <ahref="../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect">FieldAccessException</a></pre>
<divclass="block">Retrieve the associated entity.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>container</code> - - the world the entity belongs to.</dd><dd><code>id</code> - - the unique ID of the entity.</dd>
throws <ahref="../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect">FieldAccessException</a></pre>
<divclass="block">Retrieve every client that is receiving information about a given entity.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>entity</code> - - the entity that is being tracked.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Every client/player that is tracking the given entity.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect">FieldAccessException</a></code> - If reflection failed.</dd></dl>
<divclass="block">Determines whether or not this protocol mananger has been disabled.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>TRUE if it has, FALSE otherwise.</dd></dl>
</li>
</ul>
<aname="getAsynchronousManager()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>getAsynchronousManager</h4>
<pre><ahref="../../../com/comphenix/protocol/AsynchronousManager.html"title="interface in com.comphenix.protocol">AsynchronousManager</a> getAsynchronousManager()</pre>
<divclass="block">Retrieve the current asyncronous packet manager.</div>
<li><ahref="../../../com/comphenix/protocol/ProtocolLibrary.html"title="class in com.comphenix.protocol"><spanclass="strong">Prev Class</span></a></li>