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