mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-12-04 16:44:22 +01:00
570 lines
25 KiB
HTML
570 lines
25 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 Thu Jan 10 00:56:14 CET 2013 -->
|
|
<title>NbtList</title>
|
|
<meta name="date" content="2013-01-10">
|
|
<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="NbtList";
|
|
}
|
|
//-->
|
|
</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/NbtList.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/wrappers/nbt/NbtFactory.html" title="class in com.comphenix.protocol.wrappers.nbt"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html" title="enum in com.comphenix.protocol.wrappers.nbt"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/comphenix/protocol/wrappers/nbt/NbtList.html" target="_top">Frames</a></li>
|
|
<li><a href="NbtList.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>Constr | </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>Constr | </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.wrappers.nbt</div>
|
|
<h2 title="Interface NbtList" class="title">Interface NbtList<TType></h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>TType</code> - - the value type of each NBT tag.</dd></dl>
|
|
<dl>
|
|
<dt>All Superinterfaces:</dt>
|
|
<dd>java.lang.Iterable<TType>, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a><java.util.List<<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a><TType>>></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public interface <span class="strong">NbtList<TType></span>
|
|
extends <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a><java.util.List<<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a><TType>>>, java.lang.Iterable<TType></pre>
|
|
<div class="block">Represents a list of NBT tags of the same type without names.
|
|
<p>
|
|
Use <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtFactory.html" title="class in com.comphenix.protocol.wrappers.nbt"><code>NbtFactory</code></a> to load or create an instance.
|
|
<p>
|
|
The <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#getValue()"><code>NbtBase.getValue()</code></a> method returns a <code>List</code> that will correctly return the content
|
|
of this NBT list, but may throw an <code>UnsupportedOperationException</code> for any of the write operations.</div>
|
|
<dl><dt><span class="strong">Author:</span></dt>
|
|
<dd>Kristian</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>static java.lang.String</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#EMPTY_NAME">EMPTY_NAME</a></strong></code>
|
|
<div class="block">The name of every NBT tag in a list.</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>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(byte)">add</a></strong>(byte value)</code>
|
|
<div class="block">Add a new byte element to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(byte[])">add</a></strong>(byte[] value)</code>
|
|
<div class="block">Add a new byte array element to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(double)">add</a></strong>(double value)</code>
|
|
<div class="block">Add a new double element to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(int)">add</a></strong>(int value)</code>
|
|
<div class="block">Add a new integer element to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(int[])">add</a></strong>(int[] value)</code>
|
|
<div class="block">Add a new int array element to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(long)">add</a></strong>(long value)</code>
|
|
<div class="block">Add a new long element to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(com.comphenix.protocol.wrappers.nbt.NbtBase)">add</a></strong>(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a><<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a>> element)</code>
|
|
<div class="block">Add a NBT list or NBT compound to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(short)">add</a></strong>(short value)</code>
|
|
<div class="block">Add a new short element to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#add(java.lang.String)">add</a></strong>(java.lang.String value)</code>
|
|
<div class="block">Add a new string element to the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#addClosest(java.lang.Object)">addClosest</a></strong>(java.lang.Object value)</code>
|
|
<div class="block">Add a value to a typed list by attempting to convert it to the nearest value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.util.Collection<<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a><<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a>>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#asCollection()">asCollection</a></strong>()</code>
|
|
<div class="block">Retrieve each NBT tag in this list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html" title="enum in com.comphenix.protocol.wrappers.nbt">NbtType</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#getElementType()">getElementType</a></strong>()</code>
|
|
<div class="block">Get the type of each element.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#getValue(int)">getValue</a></strong>(int index)</code>
|
|
<div class="block">Retrieve an element by index.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>java.util.Iterator<<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#iterator()">iterator</a></strong>()</code>
|
|
<div class="block">Iterate over all the elements in this list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#remove(java.lang.Object)">remove</a></strong>(java.lang.Object remove)</code>
|
|
<div class="block">Remove a given object from the list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#setElementType(com.comphenix.protocol.wrappers.nbt.NbtType)">setElementType</a></strong>(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html" title="enum in com.comphenix.protocol.wrappers.nbt">NbtType</a> type)</code>
|
|
<div class="block">Set the type of each element.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#size()">size</a></strong>()</code>
|
|
<div class="block">Retrieve the number of elements in this list.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_com.comphenix.protocol.wrappers.nbt.NbtBase">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface com.comphenix.protocol.wrappers.nbt.<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a></h3>
|
|
<code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#accept(com.comphenix.protocol.wrappers.nbt.NbtVisitor)">accept</a>, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#deepClone()">deepClone</a>, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#getName()">getName</a>, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#getType()">getType</a>, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#getValue()">getValue</a>, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#setName(java.lang.String)">setName</a>, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#setValue(TType)">setValue</a></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="EMPTY_NAME">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>EMPTY_NAME</h4>
|
|
<pre>static final java.lang.String EMPTY_NAME</pre>
|
|
<div class="block">The name of every NBT tag in a list.</div>
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#com.comphenix.protocol.wrappers.nbt.NbtList.EMPTY_NAME">Constant Field Values</a></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="getElementType()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getElementType</h4>
|
|
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html" title="enum in com.comphenix.protocol.wrappers.nbt">NbtType</a> getElementType()</pre>
|
|
<div class="block">Get the type of each element.
|
|
<p>
|
|
This will be <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html#TAG_END"><code>TAG_END</code></a> if the NBT list has just been created.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Element type.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setElementType(com.comphenix.protocol.wrappers.nbt.NbtType)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setElementType</h4>
|
|
<pre>void setElementType(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html" title="enum in com.comphenix.protocol.wrappers.nbt">NbtType</a> type)</pre>
|
|
<div class="block">Set the type of each element.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - - type of each element.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addClosest(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addClosest</h4>
|
|
<pre>void addClosest(java.lang.Object value)</pre>
|
|
<div class="block">Add a value to a typed list by attempting to convert it to the nearest value.
|
|
<p>
|
|
Note that the list must be typed by setting <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html#setElementType(com.comphenix.protocol.wrappers.nbt.NbtType)"><code>setElementType(NbtType)</code></a> before calling this function.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the value to add.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(com.comphenix.protocol.wrappers.nbt.NbtBase)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a><<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a>> element)</pre>
|
|
<div class="block">Add a NBT list or NBT compound to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>element</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(java.lang.String value)</pre>
|
|
<div class="block">Add a new string element to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the string element to add.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - If this is not a list of strings.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(byte)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(byte value)</pre>
|
|
<div class="block">Add a new byte element to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the byte element to add.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - If this is not a list of bytes.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(short)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(short value)</pre>
|
|
<div class="block">Add a new short element to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the short element to add.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - If this is not a list of shorts.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(int value)</pre>
|
|
<div class="block">Add a new integer element to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the string element to add.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - If this is not a list of integers.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(long)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(long value)</pre>
|
|
<div class="block">Add a new long element to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the string element to add.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - If this is not a list of longs.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(double value)</pre>
|
|
<div class="block">Add a new double element to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the double element to add.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - If this is not a list of doubles.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(byte[])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(byte[] value)</pre>
|
|
<div class="block">Add a new byte array element to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the byte array element to add.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - If this is not a list of byte arrays.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add(int[])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>void add(int[] value)</pre>
|
|
<div class="block">Add a new int array element to the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - - the int array element to add.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - If this is not a list of int arrays.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="remove(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>remove</h4>
|
|
<pre>void remove(java.lang.Object remove)</pre>
|
|
<div class="block">Remove a given object from the list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remove</code> - - the object to remove.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getValue(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getValue</h4>
|
|
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a> getValue(int index)</pre>
|
|
<div class="block">Retrieve an element by index.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - - index of the element to retrieve.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>The element to retrieve.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the index is out of range (index < 0 || index >= size())</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="size()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>size</h4>
|
|
<pre>int size()</pre>
|
|
<div class="block">Retrieve the number of elements in this list.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The number of elements in this list.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="asCollection()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>asCollection</h4>
|
|
<pre>java.util.Collection<<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a><<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a>>> asCollection()</pre>
|
|
<div class="block">Retrieve each NBT tag in this list.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>A view of NBT tag in this list.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="iterator()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>iterator</h4>
|
|
<pre>java.util.Iterator<<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a>> iterator()</pre>
|
|
<div class="block">Iterate over all the elements in this list.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code>iterator</code> in interface <code>java.lang.Iterable<<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="type parameter in NbtList">TType</a>></code></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/NbtList.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/wrappers/nbt/NbtFactory.html" title="class in com.comphenix.protocol.wrappers.nbt"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html" title="enum in com.comphenix.protocol.wrappers.nbt"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/comphenix/protocol/wrappers/nbt/NbtList.html" target="_top">Frames</a></li>
|
|
<li><a href="NbtList.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>Constr | </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>Constr | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|