-
- 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 String
stringValue
private LongArray
value
-
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 String
getStringValue()
Returns a string representation of the tag's value. final LongArray
getValue()
final Unit
setValue(LongArray value)
Boolean
equals(Object other)
Properly checks the equality of the array. Integer
hashCode()
Properly calculates the hashcode of the array. NbtLongArray
deepCopy()
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.
-
-
-
-