<li><ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events"><spanclass="strong">Next 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>static <ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a></code></td>
<ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet,
org.bukkit.entity.Player client)</code>
<divclass="block">Creates an event representing a client packet transmission.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a></code></td>
<tdclass="colFirst"><code>static <ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/events/PacketEvent.html#fromSynchronous(com.comphenix.protocol.events.PacketEvent, com.comphenix.protocol.async.AsyncMarker)">fromSynchronous</a></strong>(<ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a> event,
<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a> marker)</code>
<divclass="block">Create an asynchronous packet event from a synchronous event and a async marker.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a></code></td>
<tdclass="colFirst"><code><ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/events/PacketEvent.html#setAsyncMarker(com.comphenix.protocol.async.AsyncMarker)">setAsyncMarker</a></strong>(<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a> asyncMarker)</code>
<divclass="block">Set the asynchronous marker.</div>
<divclass="block">Sets whether or not the packet should be cancelled.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/events/PacketEvent.html#setPacket(com.comphenix.protocol.events.PacketContainer)">setPacket</a></strong>(<ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet)</code>
<divclass="block">Replace the packet that will be sent to the player.</div>
<pre>public static <ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a> fromClient(java.lang.Object source,
<ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet,
org.bukkit.entity.Player client)</pre>
<divclass="block">Creates an event representing a client packet transmission.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>source</code> - - the event source.</dd><dd><code>packet</code> - - the packet.</dd><dd><code>client</code> - - the client that sent the packet.</dd>
<pre>public static <ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a> fromServer(java.lang.Object source,
<ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet,
org.bukkit.entity.Player recipient)</pre>
<divclass="block">Creates an event representing a server packet transmission.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>source</code> - - the event source.</dd><dd><code>packet</code> - - the packet.</dd><dd><code>recipient</code> - - the client that will receieve the packet.</dd>
<pre>public static <ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a> fromSynchronous(<ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a> event,
<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a> marker)</pre>
<divclass="block">Create an asynchronous packet event from a synchronous event and a async marker.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>event</code> - - the original synchronous event.</dd><dd><code>marker</code> - - the asynchronous marker.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The new packet event.</dd></dl>
<pre>public <ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> getPacket()</pre>
<divclass="block">Retrieves the packet that will be sent to the player.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Packet to send to the player.</dd></dl>
<pre>public void setPacket(<ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet)</pre>
<divclass="block">Replace the packet that will be sent to the player.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>packet</code> - - the packet that will be sent instead.</dd></dl>
</li>
</ul>
<aname="getPacketID()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPacketID</h4>
<pre>public int getPacketID()</pre>
<divclass="block">Retrieves the packet ID.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The current packet ID.</dd></dl>
</li>
</ul>
<aname="isCancelled()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>isCancelled</h4>
<pre>public boolean isCancelled()</pre>
<divclass="block">Retrieves whether or not the packet should be cancelled.</div>
<pre>public <ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a> getAsyncMarker()</pre>
<divclass="block">Retrieve the asynchronous marker.
<p>
If the packet is synchronous, this marker will be used to schedule an asynchronous event. In the following
asynchronous event, the marker is used to correctly pass the packet around to the different threads.
<p>
Note that if there are no asynchronous events that can receive this packet, the marker is NULL.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The current asynchronous marker, or NULL.</dd></dl>
<pre>public void setAsyncMarker(<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a> asyncMarker)</pre>
<divclass="block">Set the asynchronous marker.
<p>
If the marker is non-null at the end of an synchronous event processing, the packet will be scheduled
to be processed asynchronously with the given settings.
<p>
Note that if there are no asynchronous events that can receive this packet, the marker should be NULL.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>asyncMarker</code> - - the new asynchronous marker, or NULL.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - If the current event is asynchronous.</dd></dl>
<li><ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/events/PacketListener.html"title="interface in com.comphenix.protocol.events"><spanclass="strong">Next Class</span></a></li>