<li><ahref="../../../../com/comphenix/protocol/injector/ListenerInvoker.html"title="interface in com.comphenix.protocol.injector"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html"title="interface in com.comphenix.protocol.injector"><spanclass="strong">Next Class</span></a></li>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html"title="interface in com.comphenix.protocol.injector">PacketConstructor.Unwrapper</a></strong></code>
<divclass="block">Represents a unwrapper for a constructor parameter.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="field_summary">
<!---->
</a>
<h3>Field Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Field Summary table, listing fields, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.html"title="class in com.comphenix.protocol.injector">PacketConstructor</a></code></td>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</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">Retrieve the id of the packets this constructor creates.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>com.google.common.collect.ImmutableList<<ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html"title="interface in com.comphenix.protocol.injector">PacketConstructor.Unwrapper</a>></code></td>
<tdclass="colFirst"><code><ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.html"title="class in com.comphenix.protocol.injector">PacketConstructor</a></code></td>
<divclass="block">Create a packet constructor that creates packets using the given types.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.html"title="class in com.comphenix.protocol.injector">PacketConstructor</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.html#withUnwrappers(java.util.List)">withUnwrappers</a></strong>(java.util.List<<ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html"title="interface in com.comphenix.protocol.injector">PacketConstructor.Unwrapper</a>> unwrappers)</code>
<divclass="block">Return a copy of the current constructor with a different list of unwrappers.</div>
<pre>public static final <ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.html"title="class in com.comphenix.protocol.injector">PacketConstructor</a> DEFAULT</pre>
<divclass="block">A packet constructor that automatically converts Bukkit types to their NMS conterpart.
<p>
Remember to call withPacket().</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="getUnwrappers()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getUnwrappers</h4>
<pre>public com.google.common.collect.ImmutableList<<ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html"title="interface in com.comphenix.protocol.injector">PacketConstructor.Unwrapper</a>> getUnwrappers()</pre>
</li>
</ul>
<aname="getPacketID()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPacketID</h4>
<pre>public int getPacketID()</pre>
<divclass="block">Retrieve the id of the packets this constructor creates.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The ID of the packets this constructor will create.</dd></dl>
</li>
</ul>
<aname="withUnwrappers(java.util.List)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>withUnwrappers</h4>
<pre>public <ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.html"title="class in com.comphenix.protocol.injector">PacketConstructor</a> withUnwrappers(java.util.List<<ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html"title="interface in com.comphenix.protocol.injector">PacketConstructor.Unwrapper</a>> unwrappers)</pre>
<divclass="block">Return a copy of the current constructor with a different list of unwrappers.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>unwrappers</code> - - list of unwrappers that convert Bukkit wrappers into the equivalent NMS classes.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>A constructor with a different set of unwrappers.</dd></dl>
</li>
</ul>
<aname="withPacket(int, java.lang.Object[])">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>withPacket</h4>
<pre>public <ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.html"title="class in com.comphenix.protocol.injector">PacketConstructor</a> withPacket(int id,
java.lang.Object[] values)</pre>
<divclass="block">Create a packet constructor that creates packets using the given types.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>id</code> - - packet ID.</dd><dd><code>values</code> - - types to create.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>A packet constructor with these types.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If no packet constructor could be created with these types.</dd></dl>
</li>
</ul>
<aname="createPacket(java.lang.Object...)">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>createPacket</h4>
<pre>public <ahref="../../../../com/comphenix/protocol/events/PacketContainer.html"title="class in com.comphenix.protocol.events">PacketContainer</a> createPacket(java.lang.Object... values)
throws <ahref="../../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect">FieldAccessException</a></pre>
<divclass="block">Construct a packet using the special builtin Minecraft constructors.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>values</code> - - values containing Bukkit wrapped items to pass to Minecraft.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The created packet.</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> - Failure due to a security limitation.</dd>
<dd><code>java.lang.IllegalArgumentException</code> - Arguments doesn't match the constructor.</dd>
<dd><code>java.lang.RuntimeException</code> - Minecraft threw an exception.</dd></dl>
<li><ahref="../../../../com/comphenix/protocol/injector/ListenerInvoker.html"title="interface in com.comphenix.protocol.injector"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html"title="interface in com.comphenix.protocol.injector"><spanclass="strong">Next Class</span></a></li>