Archiviert
13
0
Dieses Repository wurde am 2021-01-06 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
ProtocolLib/Javadoc/com/comphenix/protocol/wrappers/nbt/NbtCompound.html

1059 Zeilen
59 KiB
HTML

2013-01-10 00:58:34 +01:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
2013-03-05 17:07:09 +01:00
<!-- Generated by javadoc (version 1.7.0_13) on Tue Mar 05 17:05:45 CET 2013 -->
2013-01-10 00:58:34 +01:00
<title>NbtCompound</title>
2013-03-05 17:07:09 +01:00
<meta name="date" content="2013-03-05">
2013-01-10 00:58:34 +01:00
<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="NbtCompound";
}
//-->
</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/NbtCompound.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/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtFactory.html" title="class 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/NbtCompound.html" target="_top">Frames</a></li>
<li><a href="NbtCompound.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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 NbtCompound" class="title">Interface NbtCompound</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd>java.lang.Iterable&lt;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;java.util.Map&lt;java.lang.String,<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;&gt;</dd>
</dl>
<hr>
<br>
<pre>public interface <span class="strong">NbtCompound</span>
extends <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;java.util.Map&lt;java.lang.String,<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;&gt;, java.lang.Iterable&lt;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;</pre>
<div class="block">Represents a mapping of arbitrary NBT elements and their unique 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>Map</code> that will return the full content
of this NBT compound, 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">
<!-- ========== 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">&nbsp;</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>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#containsKey(java.lang.String)">containsKey</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Determine if an entry with the given key exists or not.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getByte(java.lang.String)">getByte</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the byte value of an entry identified by a given key.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getByteArray(java.lang.String)">getByteArray</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the byte array value of an entry identified by a given key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getByteOrDefault(java.lang.String)">getByteOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the byte value of an existing entry, or from a new default entry if it doesn't exist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getCompound(java.lang.String)">getCompound</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the compound (map) value of an entry identified by a given key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getCompoundOrDefault(java.lang.String)">getCompoundOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve a compound (map) value by its key, or create a new compound if it doesn't exist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getDouble(java.lang.String)">getDouble</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the double value of an entry identified by a given key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getDoubleOrDefault(java.lang.String)">getDoubleOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the double value of an existing entry, or from a new default entry if it doesn't exist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getFloat(java.lang.String)">getFloat</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the float value of an entry identified by a given key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getFloatOrDefault(java.lang.String)">getFloatOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the float value of an existing entry, or from a new default entry if it doesn't exist.</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/NbtCompound.html#getInteger(java.lang.String)">getInteger</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the integer value of an entry identified by a given key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getIntegerArray(java.lang.String)">getIntegerArray</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the integer array value of an entry identified by a given key.</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/NbtCompound.html#getIntegerOrDefault(java.lang.String)">getIntegerOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the integer value of an existing entry, or from a new default entry if it doesn't exist.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Set&lt;java.lang.String&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getKeys()">getKeys</a></strong>()</code>
<div class="block">Retrieve a Set view of the keys of each entry in this compound.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtList</a>&lt;T&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getList(java.lang.String)">getList</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the NBT list value of an entry identified by a given key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtList</a>&lt;T&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getListOrDefault(java.lang.String)">getListOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve a NBT list value by its key, or create a new list if it doesn't exist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getLong(java.lang.String)">getLong</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the long value of an entry identified by a given key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getLongOrDefault(java.lang.String)">getLongOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the long value of an existing entry, or from a new default entry if it doesn't exist.</div>
</td>
</tr>
<tr class="altColor">
2013-03-05 17:07:09 +01:00
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getObject(java.lang.String)">getObject</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the primitive object, NbtList or NbtCompound associated with the given key.</div>
</td>
</tr>
<tr class="rowColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code>java.lang.Short</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getShort(java.lang.String)">getShort</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the short value of an entry identified by a given key.</div>
</td>
</tr>
2013-03-05 17:07:09 +01:00
<tr class="altColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getShortOrDefault(java.lang.String)">getShortOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the short value of an existing entry, or from a new default entry if it doesn't exist.</div>
</td>
</tr>
2013-03-05 17:07:09 +01:00
<tr class="rowColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getString(java.lang.String)">getString</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the string value of an entry identified by a given key.</div>
</td>
</tr>
2013-03-05 17:07:09 +01:00
<tr class="altColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getStringOrDefault(java.lang.String)">getStringOrDefault</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the string value of an existing entry, or from a new default entry if it doesn't exist.</div>
</td>
</tr>
2013-03-05 17:07:09 +01:00
<tr class="rowColor">
<td class="colFirst"><code>java.util.Map&lt;java.lang.String,<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getValue()">getValue</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;</div>
</td>
</tr>
2013-01-10 00:58:34 +01:00
<tr class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;T&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getValue(java.lang.String)">getValue</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Retrieve the value of a given entry.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#getValueOrDefault(java.lang.String, com.comphenix.protocol.wrappers.nbt.NbtType)">getValueOrDefault</a></strong>(java.lang.String&nbsp;key,
<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html" title="enum in com.comphenix.protocol.wrappers.nbt">NbtType</a>&nbsp;type)</code>
<div class="block">Retrieve a value by its key, or assign and return a new NBT element if it doesn't exist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Iterator&lt;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#iterator()">iterator</a></strong>()</code>
<div class="block">Retrieve an iterator view of the NBT tags stored in this compound.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(com.comphenix.protocol.wrappers.nbt.NbtBase)">put</a></strong>(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;T&gt;&nbsp;entry)</code>
<div class="block">Set a entry based on its name.</div>
</td>
</tr>
<tr class="altColor">
2013-01-22 13:29:54 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(com.comphenix.protocol.wrappers.nbt.NbtCompound)">put</a></strong>(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;compound)</code>
<div class="block">Associate a NBT compound with its name as key.</div>
</td>
</tr>
<tr class="rowColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(com.comphenix.protocol.wrappers.nbt.NbtList)">put</a></strong>(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtList</a>&lt;T&gt;&nbsp;list)</code>
<div class="block">Associate a NBT list with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="altColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, byte)">put</a></strong>(java.lang.String&nbsp;key,
byte&nbsp;value)</code>
<div class="block">Associate a NBT byte value with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="rowColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, byte[])">put</a></strong>(java.lang.String&nbsp;key,
byte[]&nbsp;value)</code>
<div class="block">Associate a NBT byte array value with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="altColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, java.util.Collection)">put</a></strong>(java.lang.String&nbsp;key,
java.util.Collection&lt;? extends <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;T&gt;&gt;&nbsp;list)</code>
<div class="block">Associate a new NBT list with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="rowColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, double)">put</a></strong>(java.lang.String&nbsp;key,
double&nbsp;value)</code>
<div class="block">Associate a NBT double value with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="altColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, float)">put</a></strong>(java.lang.String&nbsp;key,
float&nbsp;value)</code>
<div class="block">Associate a NBT float value with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="rowColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, int)">put</a></strong>(java.lang.String&nbsp;key,
int&nbsp;value)</code>
<div class="block">Associate a NBT integer value with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="altColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, int[])">put</a></strong>(java.lang.String&nbsp;key,
int[]&nbsp;value)</code>
<div class="block">Associate a NBT integer array value with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="rowColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, long)">put</a></strong>(java.lang.String&nbsp;key,
long&nbsp;value)</code>
<div class="block">Associate a NBT long value with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="altColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, com.comphenix.protocol.wrappers.nbt.NbtBase)">put</a></strong>(java.lang.String&nbsp;key,
<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&nbsp;entry)</code>
<div class="block">Inserts an entry after cloning it and renaming it to "key".</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="rowColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, short)">put</a></strong>(java.lang.String&nbsp;key,
short&nbsp;value)</code>
<div class="block">Associate a NBT short value with the given key.</div>
</td>
</tr>
2013-01-22 13:29:54 +01:00
<tr class="altColor">
2013-01-10 00:58:34 +01:00
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#put(java.lang.String, java.lang.String)">put</a></strong>(java.lang.String&nbsp;key,
java.lang.String&nbsp;value)</code>
<div class="block">Associate a NBT string value with the given key.</div>
</td>
</tr>
2013-03-05 17:07:09 +01:00
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#putObject(java.lang.String, java.lang.Object)">putObject</a></strong>(java.lang.String&nbsp;key,
java.lang.Object&nbsp;value)</code>
<div class="block">Associates a given Java primitive value, list, map or NbtBase<?> with a certain key.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html#remove(java.lang.String)">remove</a></strong>(java.lang.String&nbsp;key)</code>
<div class="block">Remove the NBT element that is associated with the given key.</div>
</td>
</tr>
2013-01-10 00:58:34 +01:00
</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&nbsp;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>
2013-03-05 17:07:09 +01:00
<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#setName(java.lang.String)">setName</a>, <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#setValue(TType)">setValue</a></code></li>
2013-01-10 00:58:34 +01:00
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
2013-03-05 17:07:09 +01:00
<a name="getValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>@Deprecated
java.util.Map&lt;java.lang.String,<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;&nbsp;getValue()</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;</div>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#getValue()">NbtBase</a></code></strong></div>
<div class="block">Retrieve the value of this NBT tag.
<p>
Is either a primitive <code>wrapper</code>, <code>String</code>,
<code>List</code> or a <code>Map</code>.
<p>
Users are encouraged to cast an NBT compound to <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt"><code>NbtCompound</code></a> and use its put and get-methods
instead of accessing its content from getValue().
<p>
All operations that modify collections directly, such as <code>List.add(Object)</code> or
<code>Map.clear()</code>, are considered optional. This also include members in <code>Iterator</code> and
<code>ListIterator</code>. Operations that are not implemented throw a
<code>UnsupportedOperationException</code>.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html#getValue()">getValue</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;java.util.Map&lt;java.lang.String,<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;&gt;</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>Value of this tag.</dd></dl>
</li>
</ul>
2013-01-10 00:58:34 +01:00
<a name="containsKey(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsKey</h4>
<pre>boolean&nbsp;containsKey(java.lang.String&nbsp;key)</pre>
<div class="block">Determine if an entry with the given key exists or not.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key to lookup.</dd>
<dt><span class="strong">Returns:</span></dt><dd>TRUE if an entry with the given key exists, FALSE otherwise.</dd></dl>
</li>
</ul>
<a name="getKeys()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeys</h4>
<pre>java.util.Set&lt;java.lang.String&gt;&nbsp;getKeys()</pre>
<div class="block">Retrieve a Set view of the keys of each entry in this compound.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The keys of each entry.</dd></dl>
</li>
</ul>
<a name="getValue(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;T&gt;&nbsp;getValue(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the value of a given entry.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - key of the entry to retrieve.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value of this entry, or NULL if not found.</dd></dl>
</li>
</ul>
<a name="getValueOrDefault(java.lang.String, com.comphenix.protocol.wrappers.nbt.NbtType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValueOrDefault</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&nbsp;getValueOrDefault(java.lang.String&nbsp;key,
<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtType.html" title="enum in com.comphenix.protocol.wrappers.nbt">NbtType</a>&nbsp;type)</pre>
<div class="block">Retrieve a value by its key, or assign and return a new NBT element if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry to find or create.</dd><dd><code>type</code> - - the NBT element we will create if not found.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(com.comphenix.protocol.wrappers.nbt.NbtBase)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
2013-03-05 17:07:09 +01:00
<pre>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(@Nonnull
<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;T&gt;&nbsp;entry)</pre>
2013-01-10 00:58:34 +01:00
<div class="block">Set a entry based on its name.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>entry</code> - - entry with a name and value.</dd>
2013-03-05 17:07:09 +01:00
<dt><span class="strong">Returns:</span></dt><dd>This compound, for chaining.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If entry is NULL.</dd></dl>
2013-01-10 00:58:34 +01:00
</li>
</ul>
<a name="getString(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
<pre>java.lang.String&nbsp;getString(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the string value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The string value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getStringOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStringOrDefault</h4>
<pre>java.lang.String&nbsp;getStringOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the string value of an existing entry, or from a new default entry if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
java.lang.String&nbsp;value)</pre>
<div class="block">Associate a NBT string value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, com.comphenix.protocol.wrappers.nbt.NbtBase)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&nbsp;entry)</pre>
<div class="block">Inserts an entry after cloning it and renaming it to "key".</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the name of the entry.</dd><dd><code>entry</code> - - the entry to insert.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getByte(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getByte</h4>
<pre>byte&nbsp;getByte(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the byte value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The byte value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getByteOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getByteOrDefault</h4>
<pre>byte&nbsp;getByteOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the byte value of an existing entry, or from a new default entry if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, byte)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
byte&nbsp;value)</pre>
<div class="block">Associate a NBT byte value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getShort(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>java.lang.Short&nbsp;getShort(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the short value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The short value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getShortOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShortOrDefault</h4>
<pre>short&nbsp;getShortOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the short value of an existing entry, or from a new default entry if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, short)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
short&nbsp;value)</pre>
<div class="block">Associate a NBT short value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getInteger(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInteger</h4>
<pre>int&nbsp;getInteger(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the integer value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The integer value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getIntegerOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIntegerOrDefault</h4>
<pre>int&nbsp;getIntegerOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the integer value of an existing entry, or from a new default entry if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
int&nbsp;value)</pre>
<div class="block">Associate a NBT integer value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getLong(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>long&nbsp;getLong(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the long value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The long value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getLongOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLongOrDefault</h4>
<pre>long&nbsp;getLongOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the long value of an existing entry, or from a new default entry if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
long&nbsp;value)</pre>
<div class="block">Associate a NBT long value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getFloat(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
<pre>float&nbsp;getFloat(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the float value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The float value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getFloatOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloatOrDefault</h4>
<pre>float&nbsp;getFloatOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the float value of an existing entry, or from a new default entry if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
float&nbsp;value)</pre>
<div class="block">Associate a NBT float value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getDouble(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
<pre>double&nbsp;getDouble(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the double value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The double value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getDoubleOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDoubleOrDefault</h4>
<pre>double&nbsp;getDoubleOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the double value of an existing entry, or from a new default entry if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
double&nbsp;value)</pre>
<div class="block">Associate a NBT double value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getByteArray(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getByteArray</h4>
<pre>byte[]&nbsp;getByteArray(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the byte array value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The byte array value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, byte[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
byte[]&nbsp;value)</pre>
<div class="block">Associate a NBT byte array value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getIntegerArray(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIntegerArray</h4>
<pre>int[]&nbsp;getIntegerArray(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the integer array value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The integer array value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, int[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
int[]&nbsp;value)</pre>
<div class="block">Associate a NBT integer array value with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and NBT name.</dd><dd><code>value</code> - - the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
2013-03-05 17:07:09 +01:00
<a name="putObject(java.lang.String, java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putObject</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;putObject(java.lang.String&nbsp;key,
java.lang.Object&nbsp;value)</pre>
<div class="block">Associates a given Java primitive value, list, map or NbtBase<?> with a certain key.
<p>
If the value is NULL, the corresponding key is removed. Any Map or List will be converted
to a corresponding NbtCompound or NbtList.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the name of the new entry,</dd><dd><code>value</code> - - the value of the new entry, or NULL to remove the current value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getObject(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getObject</h4>
<pre>java.lang.Object&nbsp;getObject(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the primitive object, NbtList or NbtCompound associated with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the object to find.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The object with this key, or NULL if we couldn't find anything.</dd></dl>
</li>
</ul>
2013-01-10 00:58:34 +01:00
<a name="getCompound(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCompound</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;getCompound(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the compound (map) value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The compound value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getCompoundOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCompoundOrDefault</h4>
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;getCompoundOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve a compound (map) value by its key, or create a new compound if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry to find or create.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The compound value that was retrieved or just created.</dd></dl>
</li>
</ul>
2013-01-22 13:29:54 +01:00
<a name="put(com.comphenix.protocol.wrappers.nbt.NbtCompound)">
2013-01-10 00:58:34 +01:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
2013-01-22 13:29:54 +01:00
<pre><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;compound)</pre>
2013-01-10 00:58:34 +01:00
<div class="block">Associate a NBT compound with its name as key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>compound</code> - - the compound value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="getList(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getList</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtList</a>&lt;T&gt;&nbsp;getList(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve the NBT list value of an entry identified by a given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The NBT list value of the entry.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If the key doesn't exist.</dd></dl>
</li>
</ul>
<a name="getListOrDefault(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getListOrDefault</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtList</a>&lt;T&gt;&nbsp;getListOrDefault(java.lang.String&nbsp;key)</pre>
<div class="block">Retrieve a NBT list value by its key, or create a new list if it doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the entry to find or create.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The compound value that was retrieved or just created.</dd></dl>
</li>
</ul>
<a name="put(com.comphenix.protocol.wrappers.nbt.NbtList)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtList.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtList</a>&lt;T&gt;&nbsp;list)</pre>
<div class="block">Associate a NBT list with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>list</code> - - the list value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
<a name="put(java.lang.String, java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtCompound.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtCompound</a>&nbsp;put(java.lang.String&nbsp;key,
java.util.Collection&lt;? extends <a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;T&gt;&gt;&nbsp;list)</pre>
<div class="block">Associate a new NBT list with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key and name of the new NBT list.</dd><dd><code>list</code> - - the list of NBT elements.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This current compound, for chaining.</dd></dl>
</li>
</ul>
2013-03-05 17:07:09 +01:00
<a name="remove(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remove</h4>
<pre>&lt;T&gt;&nbsp;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&nbsp;remove(java.lang.String&nbsp;key)</pre>
<div class="block">Remove the NBT element that is associated with the given key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - - the key of the element to remove.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The removed element, or NULL if no such element was found.</dd></dl>
</li>
</ul>
2013-01-10 00:58:34 +01:00
<a name="iterator()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>iterator</h4>
<pre>java.util.Iterator&lt;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;&nbsp;iterator()</pre>
<div class="block">Retrieve an iterator view of the NBT tags stored in this compound.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code>&nbsp;in interface&nbsp;<code>java.lang.Iterable&lt;<a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt">NbtBase</a>&lt;?&gt;&gt;</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>The tags stored in this compound.</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/NbtCompound.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/NbtBase.html" title="interface in com.comphenix.protocol.wrappers.nbt"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../com/comphenix/protocol/wrappers/nbt/NbtFactory.html" title="class 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/NbtCompound.html" target="_top">Frames</a></li>
<li><a href="NbtCompound.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>