Package org.cloudburstmc.nbt
Class NbtMap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic NbtMapBuilderbuilder()booleancontainsKey(String key, NbtType<?> type) entrySet()booleanstatic NbtMapbooleangetBoolean(String key) booleangetBoolean(String key, boolean defaultValue) bytebytebyte[]getByteArray(String key) byte[]getByteArray(String key, @org.checkerframework.checker.nullness.qual.Nullable byte[] defaultValue) getCompound(String key) getCompound(String key, @Nullable NbtMap defaultValue) doubledoublefloatfloatintintint[]getIntArray(String key) int[]getIntArray(String key, @org.checkerframework.checker.nullness.qual.Nullable int[] defaultValue) <T> List<T><T> List<T>longlonglong[]getLongArray(String key) long[]getLongArray(String key, @org.checkerframework.checker.nullness.qual.Nullable long[] defaultValue) shortshortinthashCode()keySet()voidlistenForBoolean(String key, BooleanConsumer consumer) voidlistenForByte(String key, ByteConsumer consumer) voidlistenForByteArray(String key, Consumer<byte[]> consumer) voidlistenForCompound(String key, Consumer<NbtMap> consumer) voidlistenForDouble(String key, DoubleConsumer consumer) voidlistenForFloat(String key, FloatConsumer consumer) voidlistenForInt(String key, IntConsumer consumer) voidlistenForIntArray(String key, Consumer<int[]> consumer) <T> voidlistenForList(String key, NbtType<T> type, Consumer<List<T>> consumer) voidlistenForLong(String key, LongConsumer consumer) voidlistenForLongArray(String key, Consumer<long[]> consumer) voidlistenForNumber(String key, NumberConsumer consumer) voidlistenForShort(String key, ShortConsumer consumer) voidlistenForString(String key, Consumer<String> consumer) toString()values()Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, isEmpty, put, putAll, remove, sizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
EMPTY
-
-
Method Details
-
builder
-
fromMap
-
toBuilder
-
containsKey
-
get
-
keySet
-
entrySet
-
values
-
getBoolean
-
getBoolean
-
listenForBoolean
-
getByte
-
getByte
-
listenForByte
-
getShort
-
getShort
-
listenForShort
-
getInt
-
getInt
-
listenForInt
-
getLong
-
getLong
-
listenForLong
-
getFloat
-
getFloat
-
listenForFloat
-
getDouble
-
getDouble
-
listenForDouble
-
getString
-
getString
-
listenForString
-
getByteArray
-
getByteArray
public byte[] getByteArray(String key, @org.checkerframework.checker.nullness.qual.Nullable byte[] defaultValue) -
listenForByteArray
-
getIntArray
-
getIntArray
public int[] getIntArray(String key, @org.checkerframework.checker.nullness.qual.Nullable int[] defaultValue) -
listenForIntArray
-
getLongArray
-
getLongArray
public long[] getLongArray(String key, @org.checkerframework.checker.nullness.qual.Nullable long[] defaultValue) -
listenForLongArray
-
getCompound
-
getCompound
-
listenForCompound
-
getList
-
getList
-
listenForList
-
getNumber
-
getNumber
-
listenForNumber
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classAbstractMap<String,Object>
-