mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 21:56:01 +01:00
769 lines
37 KiB
HTML
769 lines
37 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_07) on Tue Dec 04 01:00:51 CET 2012 -->
|
|
<title>PacketContainer</title>
|
|
<meta name="date" content="2012-12-04">
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="PacketContainer";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/PacketContainer.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../../com/comphenix/protocol/events/PacketAdapter.html" title="class in com.comphenix.protocol.events"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../../com/comphenix/protocol/events/PacketEvent.html" title="class in com.comphenix.protocol.events"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?com/comphenix/protocol/events/PacketContainer.html" target="_top">Frames</a></li>
|
|
<li><a href="PacketContainer.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field_summary">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field_detail">Field</a> | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">com.comphenix.protocol.events</div>
|
|
<h2 title="Class PacketContainer" class="title">Class PacketContainer</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.comphenix.protocol.events.PacketContainer</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd>java.io.Serializable</dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">PacketContainer</span>
|
|
extends java.lang.Object
|
|
implements java.io.Serializable</pre>
|
|
<div class="block">Represents a Minecraft packet indirectly.</div>
|
|
<dl><dt><span class="strong">Author:</span></dt>
|
|
<dd>Kristian</dd>
|
|
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#com.comphenix.protocol.events.PacketContainer">Serialized Form</a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected net.minecraft.server.Packet</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#handle">handle</a></strong></code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#id">id</a></strong></code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#structureModifier">structureModifier</a></strong></code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#PacketContainer(int)">PacketContainer</a></strong>(int id)</code>
|
|
<div class="block">Creates a packet container for a new packet.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#PacketContainer(int, net.minecraft.server.Packet)">PacketContainer</a></strong>(int id,
|
|
net.minecraft.server.Packet handle)</code>
|
|
<div class="block">Creates a packet container for an existing packet.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#PacketContainer(int, net.minecraft.server.Packet, com.comphenix.protocol.reflect.StructureModifier)">PacketContainer</a></strong>(int id,
|
|
net.minecraft.server.Packet handle,
|
|
<a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object> structure)</code>
|
|
<div class="block">Creates a packet container for an existing packet.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/events/PacketContainer.html" title="class in com.comphenix.protocol.events">PacketContainer</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#deepClone()">deepClone</a></strong>()</code>
|
|
<div class="block">Create a deep copy of the current packet.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><byte[]></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getByteArrays()">getByteArrays</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every byte array field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Byte></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getBytes()">getBytes</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every byte field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><<a href="../../../../com/comphenix/protocol/wrappers/WrappedDataWatcher.html" title="class in com.comphenix.protocol.wrappers">WrappedDataWatcher</a>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getDataWatcherModifier()">getDataWatcherModifier</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for data watchers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Double></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getDoubles()">getDoubles</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every double field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><org.bukkit.entity.Entity></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getEntityModifier(org.bukkit.World)">getEntityModifier</a></strong>(org.bukkit.World world)</code>
|
|
<div class="block">Retrieves a read/write structure for entity objects.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Float></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getFloat()">getFloat</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every float field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>net.minecraft.server.Packet</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getHandle()">getHandle</a></strong>()</code>
|
|
<div class="block">Retrieves the underlying Minecraft packet.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getID()">getID</a></strong>()</code>
|
|
<div class="block">Retrieves the ID of this packet.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><int[]></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getIntegerArrays()">getIntegerArrays</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every int array field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Integer></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getIntegers()">getIntegers</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every integer field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><org.bukkit.inventory.ItemStack[]></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getItemArrayModifier()">getItemArrayModifier</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for arrays of ItemStacks.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><org.bukkit.inventory.ItemStack></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getItemModifier()">getItemModifier</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for ItemStack.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Long></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getLongs()">getLongs</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every long field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getModifier()">getModifier</a></strong>()</code>
|
|
<div class="block">Retrieves the generic structure modifier for this packet.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.util.List<<a href="../../../../com/comphenix/protocol/wrappers/ChunkPosition.html" title="class in com.comphenix.protocol.wrappers">ChunkPosition</a>>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getPositionCollectionModifier()">getPositionCollectionModifier</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for collections of chunk positions.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><<a href="../../../../com/comphenix/protocol/wrappers/ChunkPosition.html" title="class in com.comphenix.protocol.wrappers">ChunkPosition</a>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getPositionModifier()">getPositionModifier</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for chunk positions.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Short></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getShorts()">getShorts</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every short field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><T> <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><T></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getSpecificModifier(java.lang.Class)">getSpecificModifier</a></strong>(java.lang.Class<T> primitiveType)</code>
|
|
<div class="block">Retrieves a read/write structure for every field with the given type.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.String[]></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getStringArrays()">getStringArrays</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every String array field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.String></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getStrings()">getStrings</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for every String field.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.util.List<<a href="../../../../com/comphenix/protocol/wrappers/WrappedWatchableObject.html" title="class in com.comphenix.protocol.wrappers">WrappedWatchableObject</a>>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getWatchableCollectionModifier()">getWatchableCollectionModifier</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for collections of watchable objects.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><org.bukkit.WorldType></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../com/comphenix/protocol/events/PacketContainer.html#getWorldTypeModifier()">getWorldTypeModifier</a></strong>()</code>
|
|
<div class="block">Retrieves a read/write structure for the world type enum.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="id">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>id</h4>
|
|
<pre>protected int id</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="handle">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>handle</h4>
|
|
<pre>protected transient net.minecraft.server.Packet handle</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="structureModifier">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>structureModifier</h4>
|
|
<pre>protected transient <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object> structureModifier</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="PacketContainer(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>PacketContainer</h4>
|
|
<pre>public PacketContainer(int id)</pre>
|
|
<div class="block">Creates a packet container for a new packet.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - - ID of the packet to create.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="PacketContainer(int, net.minecraft.server.Packet)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>PacketContainer</h4>
|
|
<pre>public PacketContainer(int id,
|
|
net.minecraft.server.Packet handle)</pre>
|
|
<div class="block">Creates a packet container for an existing packet.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - - ID of the given packet.</dd><dd><code>handle</code> - - contained packet.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="PacketContainer(int, net.minecraft.server.Packet, com.comphenix.protocol.reflect.StructureModifier)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>PacketContainer</h4>
|
|
<pre>public PacketContainer(int id,
|
|
net.minecraft.server.Packet handle,
|
|
<a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object> structure)</pre>
|
|
<div class="block">Creates a packet container for an existing packet.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - - ID of the given packet.</dd><dd><code>handle</code> - - contained packet.</dd><dd><code>structure</code> - - structure modifier.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="getHandle()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHandle</h4>
|
|
<pre>public net.minecraft.server.Packet getHandle()</pre>
|
|
<div class="block">Retrieves the underlying Minecraft packet.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Underlying Minecraft packet.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getModifier()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Object> getModifier()</pre>
|
|
<div class="block">Retrieves the generic structure modifier for this packet.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Structure modifier.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getSpecificModifier(java.lang.Class)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getSpecificModifier</h4>
|
|
<pre>public <T> <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><T> getSpecificModifier(java.lang.Class<T> primitiveType)</pre>
|
|
<div class="block">Retrieves a read/write structure for every field with the given type.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>primitiveType</code> - - the type to find.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>A modifier for this specific type.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getBytes()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBytes</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Byte> getBytes()</pre>
|
|
<div class="block">Retrieves a read/write structure for every byte field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every byte field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getShorts()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getShorts</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Short> getShorts()</pre>
|
|
<div class="block">Retrieves a read/write structure for every short field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every short field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getIntegers()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIntegers</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Integer> getIntegers()</pre>
|
|
<div class="block">Retrieves a read/write structure for every integer field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every integer field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getLongs()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLongs</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Long> getLongs()</pre>
|
|
<div class="block">Retrieves a read/write structure for every long field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every long field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getFloat()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFloat</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Float> getFloat()</pre>
|
|
<div class="block">Retrieves a read/write structure for every float field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every float field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDoubles()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDoubles</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.Double> getDoubles()</pre>
|
|
<div class="block">Retrieves a read/write structure for every double field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every double field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getStrings()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getStrings</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.String> getStrings()</pre>
|
|
<div class="block">Retrieves a read/write structure for every String field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every String field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getStringArrays()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getStringArrays</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.lang.String[]> getStringArrays()</pre>
|
|
<div class="block">Retrieves a read/write structure for every String array field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every String array field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getByteArrays()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getByteArrays</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><byte[]> getByteArrays()</pre>
|
|
<div class="block">Retrieves a read/write structure for every byte array field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every byte array field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getIntegerArrays()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIntegerArrays</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><int[]> getIntegerArrays()</pre>
|
|
<div class="block">Retrieves a read/write structure for every int array field.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for every int array field.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getItemModifier()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getItemModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><org.bukkit.inventory.ItemStack> getItemModifier()</pre>
|
|
<div class="block">Retrieves a read/write structure for ItemStack.
|
|
<p>
|
|
This modifier will automatically marshall between the Bukkit ItemStack and the
|
|
internal Minecraft ItemStack.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for ItemStack fields.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getItemArrayModifier()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getItemArrayModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><org.bukkit.inventory.ItemStack[]> getItemArrayModifier()</pre>
|
|
<div class="block">Retrieves a read/write structure for arrays of ItemStacks.
|
|
<p>
|
|
This modifier will automatically marshall between the Bukkit ItemStack and the
|
|
internal Minecraft ItemStack.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for ItemStack array fields.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getWorldTypeModifier()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getWorldTypeModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><org.bukkit.WorldType> getWorldTypeModifier()</pre>
|
|
<div class="block">Retrieves a read/write structure for the world type enum.
|
|
<p>
|
|
This modifier will automatically marshall between the Bukkit world type and the
|
|
internal Minecraft world type.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for world type fields.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDataWatcherModifier()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDataWatcherModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><<a href="../../../../com/comphenix/protocol/wrappers/WrappedDataWatcher.html" title="class in com.comphenix.protocol.wrappers">WrappedDataWatcher</a>> getDataWatcherModifier()</pre>
|
|
<div class="block">Retrieves a read/write structure for data watchers.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for data watchers.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getEntityModifier(org.bukkit.World)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getEntityModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><org.bukkit.entity.Entity> getEntityModifier(org.bukkit.World world)</pre>
|
|
<div class="block">Retrieves a read/write structure for entity objects.
|
|
<p>
|
|
Note that entities are transmitted by integer ID, and the type may not be enough
|
|
to distinguish between entities and other values. Thus, this structure modifier
|
|
MAY return null or invalid entities for certain fields. Using the correct index
|
|
is essential.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier entity types.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getPositionModifier()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPositionModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><<a href="../../../../com/comphenix/protocol/wrappers/ChunkPosition.html" title="class in com.comphenix.protocol.wrappers">ChunkPosition</a>> getPositionModifier()</pre>
|
|
<div class="block">Retrieves a read/write structure for chunk positions.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for a ChunkPosition.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getPositionCollectionModifier()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPositionCollectionModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.util.List<<a href="../../../../com/comphenix/protocol/wrappers/ChunkPosition.html" title="class in com.comphenix.protocol.wrappers">ChunkPosition</a>>> getPositionCollectionModifier()</pre>
|
|
<div class="block">Retrieves a read/write structure for collections of chunk positions.
|
|
<p>
|
|
This modifier will automatically marshall between the visible ProtocolLib ChunkPosition and the
|
|
internal Minecraft ChunkPosition.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for ChunkPosition list fields.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getWatchableCollectionModifier()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getWatchableCollectionModifier</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/reflect/StructureModifier.html" title="class in com.comphenix.protocol.reflect">StructureModifier</a><java.util.List<<a href="../../../../com/comphenix/protocol/wrappers/WrappedWatchableObject.html" title="class in com.comphenix.protocol.wrappers">WrappedWatchableObject</a>>> getWatchableCollectionModifier()</pre>
|
|
<div class="block">Retrieves a read/write structure for collections of watchable objects.
|
|
<p>
|
|
This modifier will automatically marshall between the visible WrappedWatchableObject and the
|
|
internal Minecraft WatchableObject.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A modifier for watchable object list fields.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getID()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getID</h4>
|
|
<pre>public int getID()</pre>
|
|
<div class="block">Retrieves the ID of this packet.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Packet ID.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="deepClone()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>deepClone</h4>
|
|
<pre>public <a href="../../../../com/comphenix/protocol/events/PacketContainer.html" title="class in com.comphenix.protocol.events">PacketContainer</a> deepClone()</pre>
|
|
<div class="block">Create a deep copy of the current packet.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A deep copy of the current packet.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/PacketContainer.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../../com/comphenix/protocol/events/PacketAdapter.html" title="class in com.comphenix.protocol.events"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../../com/comphenix/protocol/events/PacketEvent.html" title="class in com.comphenix.protocol.events"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?com/comphenix/protocol/events/PacketContainer.html" target="_top">Frames</a></li>
|
|
<li><a href="PacketContainer.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field_summary">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field_detail">Field</a> | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|