public class FloatTag extends java.lang.Object implements INbtNumber
| Constructor and Description |
|---|
FloatTag()
Create a float tag with the value 0.
|
FloatTag(float value)
Create a float tag with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
INbtTag |
copy() |
double |
doubleValue() |
boolean |
equals(java.lang.Object o) |
float |
floatValue() |
NbtType |
getNbtType() |
float |
getValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
java.lang.Number |
numberValue() |
void |
read(java.io.DataInput in,
NbtReadTracker readTracker)
Read the tag value from a given
DataInput. |
void |
setValue(float value)
Set the float value.
|
short |
shortValue() |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out)
Write the tag value to a given
DataOutput. |
public FloatTag()
public FloatTag(float value)
value - The valuepublic float getValue()
public void setValue(float value)
value - The new valuepublic byte byteValue()
byteValue in interface INbtNumberpublic short shortValue()
shortValue in interface INbtNumberpublic int intValue()
intValue in interface INbtNumberpublic long longValue()
longValue in interface INbtNumberpublic float floatValue()
floatValue in interface INbtNumberpublic double doubleValue()
doubleValue in interface INbtNumberpublic java.lang.Number numberValue()
numberValue in interface INbtNumberNumberpublic NbtType getNbtType()
getNbtType in interface INbtTagpublic void read(java.io.DataInput in,
NbtReadTracker readTracker)
throws java.io.IOException
INbtTagDataInput.public void write(java.io.DataOutput out)
throws java.io.IOException
INbtTagDataOutput.public INbtTag copy()
public boolean equals(java.lang.Object o)
public int hashCode()