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