<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>
<pre>public void setAsyncMarker(<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a> asyncMarker)</pre>
<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>