CompoundTag class

Inheritance
Implemented types

Constructors

CompoundTag.new()

Properties

entries Iterable<MapEntry<String, Tag>>
The map entries of this Map.
no setteroverride
getParent Tag?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasParent bool
no setterinherited
isEmpty bool
Whether there is no key/value pair in the map.
no setteroverride
isNotEmpty bool
Whether there is at least one key/value pair in the map.
no setteroverride
keys Iterable<String>
The keys of this Map.
no setteroverride
length int
The number of key/value pairs in the map.
no setteroverride
parentTagType TagType
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Map<String, Tag>
latefinal
values Iterable<Tag>
The values of this Map.
no setteroverride

Methods

addAll(Map<String, Tag> other) → void
Adds all key/value pairs of other to this map.
override
addEntries(Iterable<MapEntry<String, Tag>> newEntries) → void
Adds all key/value pairs of newEntries to this map.
override
asByte() int
inherited
asByteArray() List<int>
inherited
asCompoundTag() CompoundTag
inherited
asDouble() double
inherited
asFloat() double
inherited
asInt() int
inherited
asIntArray() List<int>
inherited
asLong() int
inherited
asLongArray() List<int>
inherited
asShort() int
inherited
asString() String
inherited
cast<RK, RV>() Map<RK, RV>
Provides a view of this map as having RK keys and RV instances, if necessary.
override
clear() → void
Removes all entries from the map.
override
containsKey(Object? key) bool
Whether this map contains the given key.
override
containsValue(Object? value) bool
Whether this map contains the given value.
override
endPrettyPrint(int indent) → void
equals(dynamic object) bool
inherited
forEach(void action(String key, Tag value)) → void
Applies action to each key/value pair of the map.
override
get(String name) Tag?
getKey() String
inherited
getTagType() TagType
override
getType() int
inherited
getValue() → dynamic
override
map<K2, V2>(MapEntry<K2, V2> convert(String key, Tag value)) Map<K2, V2>
Returns a new map where all entries of this map are transformed by the given convert function.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prettyPrint(int indent, bool recurse) → void
override
put(String name, Tag tag) → void
putIfAbsent(String key, Tag ifAbsent()) Tag
Look up the value of key, or add a new entry if it isn't there.
override
readStringifiedValue(StringReader reader) → void
override
readValue(ByteLayer data) → void
override
remove(Object? key) Tag?
Removes key and its associated value, if present, from the map.
override
removeWhere(bool test(String key, Tag value)) → void
DO NOT USE, Parent will not be updated on child tags when this function is used.
override
setKey(String key) → void
inherited
setParentTagType(TagType type) → void
inherited
setValue(dynamic val) → void
override
shouldEscapeSingleQuotes(String value) bool
inherited
shouldQuote(String value) bool
inherited
shouldQuoteName() bool
inherited
shouldUseSingleQuotes(String value) bool
inherited
toString() String
A string representation of this object.
inherited
unsetParent() → void
update(String key, Tag update(Tag value), {Tag ifAbsent()?}) Tag
DO NOT USE
override
updateAll(Tag update(String key, Tag value)) → void
DO NOT USE
override
updateParent(Tag? tag) → void
inherited
writeStringifiedValue(StringBuilder builder, int indent, bool isList) → void
override
writeValue(ByteLayer data) → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? key) Tag?
The value for the given key, or null if key is not in the map.
override
operator []=(String key, Tag value) → void
Associates the key with the given value.
override