A length-prefixed array of signed longs. The prefix is a signed integer (thus 4 bytes)
and indicates the number of 8 byte longs.
- Author:
- SyntaxError404
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new tag with an initial empty arrayTagLongArray(long[] value) Constructs a new tag with an initial value -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanCompares two tags for equalityget(int index) Returns the element at the specified position in this arraygetTag(int index) Returns the tag at the specified position in this array as aTagNumberReplaces an element at the specified position in the arrayMethods inherited from class at.syntaxerror.syntaxnbt.tag.TagArray
add, add, addTag, addTag, checkBounds, checkBoundsExclusive, clear, getArrayType, remove, setTag, size
-
Constructor Details
-
TagLongArray
public TagLongArray()Constructs a new tag with an initial empty array -
TagLongArray
public TagLongArray(long[] value) Constructs a new tag with an initial value- Parameters:
value- initial value
-
-
Method Details
-
set
Description copied from class:TagArrayReplaces an element at the specified position in the array -
get
Description copied from class:TagArrayReturns the element at the specified position in this array -
getTag
Description copied from class:TagArrayReturns the tag at the specified position in this array as aTagNumber -
compare
Description copied from class:TagCompares two tags for equality
-