<li><ahref="../../../com/comphenix/protocol/ProtocolLibrary.html"title="class in com.comphenix.protocol"><spanclass="strong">Prev Class</span></a></li>
<dd><ahref="../../../com/comphenix/protocol/injector/PacketFilterManager.html"title="class in com.comphenix.protocol.injector">PacketFilterManager</a></dd>
<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">Constructs a new encapsulated Minecraft packet with the given ID.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../com/comphenix/protocol/injector/PacketConstructor.html"title="class in com.comphenix.protocol.injector">PacketConstructor</a></code></td>
<divclass="block">Construct a packet using the special builtin Minecraft constructors.</div>
</td>
</tr>
<trclass="altColor">
<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>
<ahref="../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet)</code>
<divclass="block">Simulate recieving a certain packet from a given player.</div>
<ahref="../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet,
boolean filters)</code>
<divclass="block">Simulate recieving a certain packet from a given player.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</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>
<ahref="../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet)</code>
<divclass="block">Send a packet to the given player.</div>
<divclass="block">Completely refresh all clients about an entity.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<divclass="details">
<ulclass="blockList">
<liclass="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="getPacketListeners()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPacketListeners</h4>
<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">Send a packet to the given player.</div>
<dl><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)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException</pre>
<divclass="block">Simulate recieving a certain packet from a given player.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sender</code> - - the sender.</dd><dd><code>packet</code> - - the packet that was sent.</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>
<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.</div>
<dl><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>
</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>
<pre><ahref="../../../com/comphenix/protocol/injector/PacketConstructor.html"title="class in com.comphenix.protocol.injector">PacketConstructor</a> createPacketConstructor(int id,
java.lang.Object... arguments)</pre>
<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>
<divclass="block">Completely refresh all clients about an entity.</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>
<li><ahref="../../../com/comphenix/protocol/ProtocolLibrary.html"title="class in com.comphenix.protocol"><spanclass="strong">Prev Class</span></a></li>