A length-prefixed array of signed integers. The prefix is a signed integer (thus 4 bytes)
and indicates the number of 4 byte integers.
- Author:
- SyntaxError404
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new tag with an initial empty arrayTagIntArray(int[] 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
-
TagIntArray
public TagIntArray()Constructs a new tag with an initial empty array -
TagIntArray
public TagIntArray(int[] 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
-