| Constructor and Description |
|---|
DoubleArrayTag(String name)
Creates a tag with the specified name.
|
DoubleArrayTag(String name,
double[] value)
Creates a tag with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleArrayTag |
clone() |
void |
destringify(SNBTIO.StringifiedNBTReader in)
Parses this tag from stringified NBT.
|
double[] |
getValue()
Gets the value of this tag.
|
double |
getValue(int index)
Gets a value in this tag's array.
|
int |
length()
Gets the length of this tag's array.
|
void |
read(DataInput in)
Reads this tag from an input stream.
|
void |
setValue(double[] value)
Sets the value of this tag.
|
void |
setValue(int index,
double value)
Sets a value in this tag's array.
|
void |
stringify(SNBTIO.StringifiedNBTWriter out,
boolean linebreak,
int depth)
Write this tag as stringified NBT.
|
void |
write(DataOutput out)
Writes this tag to an output stream.
|
public DoubleArrayTag(String name)
name - The name of the tag.public DoubleArrayTag(String name, double[] value)
name - The name of the tag.value - The value of the tag.public double[] getValue()
Tagpublic void setValue(double[] value)
value - New value of this tag.public double getValue(int index)
index - Index of the value.public void setValue(int index,
double value)
index - Index of the value.value - Value to set.public int length()
public void read(DataInput in) throws IOException
Tagread in class Tagin - Stream to read from.IOException - If an I/O error occurs.public void write(DataOutput out) throws IOException
Tagwrite in class Tagout - Stream to write to.IOException - If an I/O error occurs.public void destringify(SNBTIO.StringifiedNBTReader in) throws IOException
Tagdestringify in class Tagin - String to parse.IOExceptionpublic void stringify(SNBTIO.StringifiedNBTWriter out, boolean linebreak, int depth) throws IOException
Tagstringify in class TagIOExceptionpublic DoubleArrayTag clone()
Copyright © 2021. All rights reserved.