NbtLong class Null safety

Represents a 8 byte long integer in a NBT file.

Inheritance

Constructors

NbtLong({required String name, required int value})
Creates a NbtLong with given parent.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
hasLength bool
If the tag is a List and has a length
read-only, inherited
hasValue bool
If this tag directly has a value.
read-only, inherited
name String
The name of this tag. Inside of Lists or Arrays, this is 'None'.
read / write, inherited
nbtTagType NbtTagType
The type of this tag.
read-only, inherited
parent NbtTag?
The parent of this tag. Can only be null for the root NbtCompound.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
The value of this tag. Can vary depending on tag type, obtainable from nbtTagType.
read-only, override

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
readTag(NbtReader nbtReader, {bool withName = true}) NbtLong
Reads a NbtTag from fileReader. If the parent is a NbtList or NbtArray, withName should be set to false to avoid reading the name of this Tag.
override
toString() String
A string representation of this object. [...]
inherited
writeTag(NbtWriter nbtWriter, {bool withName = true, bool withType = true}) → void
Writes a NbtTag from fileReader. If the parent is a NbtList or NbtArray, withName should be set to false to avoid writing any names of this Tag.
override

Operators

operator ==(Object o) bool
The equality operator. [...]
inherited