CompoundTag class
- Inheritance
-
- Implemented types
-
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