| Constructor and Description |
|---|
FloatArrayTag(String name)
Creates a tag with the specified name.
|
FloatArrayTag(String name,
float[] value)
Creates a tag with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
FloatArrayTag |
clone() |
void |
destringify(SNBTIO.StringifiedNBTReader in)
Parses this tag from stringified NBT.
|
float[] |
getValue()
Gets the value of this tag.
|
float |
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(float[] value)
Sets the value of this tag.
|
void |
setValue(int index,
float 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 FloatArrayTag(String name)
name - The name of the tag.public FloatArrayTag(String name, float[] value)
name - The name of the tag.value - The value of the tag.public float[] getValue()
Tagpublic void setValue(float[] value)
value - New value of this tag.public float getValue(int index)
index - Index of the value.public void setValue(int index,
float 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 FloatArrayTag clone()
Copyright © 2021. All rights reserved.