<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>
<ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> packet,
org.bukkit.entity.Player recipient)</code>
<divclass="block">Creates an event representing a server packet transmission.</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">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 <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>
<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>