public class DoubleTag extends AbstractNumberTag
Modifier and Type | Field and Description |
---|---|
static TagReader<DoubleTag> |
READER |
private double |
value |
static DoubleTag |
ZERO |
Modifier | Constructor and Description |
---|---|
private |
DoubleTag(double value) |
Modifier and Type | Method and Description |
---|---|
DoubleTag |
copy() |
boolean |
equals(Object o) |
byte |
getByte() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
Number |
getNumber() |
TagReader<DoubleTag> |
getReader() |
short |
getShort() |
byte |
getType() |
int |
hashCode() |
static DoubleTag |
of(double value) |
String |
toString() |
Text |
toText(String indent,
int depth) |
void |
write(DataOutput output) |
public static final DoubleTag ZERO
private final double value
public static DoubleTag of(double value)
public void write(DataOutput output) throws IOException
IOException
public byte getType()
public String toString()
public DoubleTag copy()
public long getLong()
getLong
in class AbstractNumberTag
public int getInt()
getInt
in class AbstractNumberTag
public short getShort()
getShort
in class AbstractNumberTag
public byte getByte()
getByte
in class AbstractNumberTag
public double getDouble()
getDouble
in class AbstractNumberTag
public float getFloat()
getFloat
in class AbstractNumberTag
public Number getNumber()
getNumber
in class AbstractNumberTag