public class NBTTagDouble extends NBTBase.NBTPrimitive
NBTBase.NBTPrimitive| Modifier and Type | Field and Description |
|---|---|
private double |
data
The double value for the tag.
|
| Constructor and Description |
|---|
NBTTagDouble() |
NBTTagDouble(double data) |
| Modifier and Type | Method and Description |
|---|---|
NBTBase |
copy()
Creates a clone of the tag.
|
boolean |
equals(java.lang.Object p_equals_1_) |
byte |
getByte() |
double |
getDouble() |
float |
getFloat() |
byte |
getId()
Gets the type byte for the tag.
|
int |
getInt() |
long |
getLong() |
short |
getShort() |
int |
hashCode() |
(package private) void |
read(java.io.DataInput input,
int depth,
NBTSizeTracker sizeTracker) |
java.lang.String |
toString() |
(package private) void |
write(java.io.DataOutput output)
Write the actual data contents of the tag, implemented in NBT extension classes
|
createNewByType, getString, hasNoTagsvoid write(java.io.DataOutput output)
throws java.io.IOException
void read(java.io.DataInput input,
int depth,
NBTSizeTracker sizeTracker)
throws java.io.IOException
public long getLong()
getLong in class NBTBase.NBTPrimitivepublic int getInt()
getInt in class NBTBase.NBTPrimitivepublic short getShort()
getShort in class NBTBase.NBTPrimitivepublic byte getByte()
getByte in class NBTBase.NBTPrimitivepublic double getDouble()
getDouble in class NBTBase.NBTPrimitivepublic float getFloat()
getFloat in class NBTBase.NBTPrimitive