Package meteordevelopment.nbt.tags
Class CompoundTag
java.lang.Object
meteordevelopment.nbt.tags.Tag
meteordevelopment.nbt.tags.CompoundTag
- All Implemented Interfaces:
Cloneable,Comparable<CompoundTag>,Iterable<Map.Entry<String,Tag>>,Map<String,Tag>
public class CompoundTag
extends Tag
implements Map<String,Tag>, Comparable<CompoundTag>, Iterable<Map.Entry<String,Tag>>
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()intcompareTo(CompoundTag o)booleancontainsKey(Object key)booleancontainsValue(Object value)entrySet()boolean<T extends Tag>
Tbooleanbytebyte[]getByteArray(String key)getCompound(String key)doublefloatintgetId()intint[]getIntArray(String key)longlong[]getLongArray(String key)shortinthashCode()booleanbooleanisEmpty()iterator()keySet()voidvoidvoidvoidputByteArray(String key, byte[] v)voidvoidvoidvoidputIntArray(String key, int[] v)voidvoidvoidputLongArray(String key, long[] v)voidvoidintsize()toString()values()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
value
-
-
Constructor Details
-
CompoundTag
-
CompoundTag
public CompoundTag()
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Tag>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Tag>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
get
-
is
-
getBool
-
getShort
-
getByte
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getString
-
getByteArray
-
getIntArray
-
getLongArray
-
getCompound
-
getList
-
putByte
-
putBool
-
putShort
-
putInt
-
putLong
-
putFloat
-
putDouble
-
putString
-
putByteArray
-
putIntArray
-
putLongArray
-
putList
-
getId
public int getId() -
clone
-
compareTo
- Specified by:
compareToin interfaceComparable<CompoundTag>
-
iterator
-
equals
-
hashCode
public int hashCode() -
toString
-