-
- All Implemented Interfaces:
public final class NbtLongArray extends NbtTag
A tag which wraps a mutable long array.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringstringValueprivate LongArrayvalue
-
Constructor Summary
Constructors Constructor Description NbtLongArray()Creates a new tag with an empty array. NbtLongArray(String value)Parses the string using the same structure which is returned by stringValue. NbtLongArray(LongArray value)
-
Method Summary
Modifier and Type Method Description StringgetStringValue()Returns a string representation of the tag's value. final LongArraygetValue()final UnitsetValue(LongArray value)Booleanequals(Object other)Properly checks the equality of the array. IntegerhashCode()Properly calculates the hashcode of the array. NbtLongArraydeepCopy()Returns a new wrapper with a copy of the current value. -
-
Constructor Detail
-
NbtLongArray
NbtLongArray()
Creates a new tag with an empty array.
-
NbtLongArray
NbtLongArray(String value)
Parses the string using the same structure which is returned by stringValue.- Parameters:
value- A string with a structure like[0, -32, 48, 127]
-
NbtLongArray
NbtLongArray(LongArray value)
-
-
Method Detail
-
getStringValue
String getStringValue()
Returns a string representation of the tag's value.
The NbtList and the array types will have an output similar to a normal List and NbtCompound to a normal Map.
The class names of the NbtList's and NbtCompound's children will expose.
The returned string is compatible with string constructors of the same type.
Be aware that this may be a slow operation on big lists, arrays or compounds.
-
deepCopy
NbtLongArray deepCopy()
Returns a new wrapper with a copy of the current value.
-
-
-
-