public class ByteTag extends AbstractNumberTag
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ByteTag.Cache |
| Modifier and Type | Field and Description |
|---|---|
static ByteTag |
ONE |
static TagReader<ByteTag> |
READER |
private byte |
value |
static ByteTag |
ZERO |
| Modifier | Constructor and Description |
|---|---|
private |
ByteTag(byte value) |
| Modifier and Type | Method and Description |
|---|---|
ByteTag |
copy() |
boolean |
equals(Object o) |
byte |
getByte() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
Number |
getNumber() |
TagReader<ByteTag> |
getReader() |
short |
getShort() |
byte |
getType() |
int |
hashCode() |
void |
method_32289(class_5627 class_5627) |
static ByteTag |
of(boolean value) |
static ByteTag |
of(byte value) |
void |
write(DataOutput output) |
toStringpublic static final ByteTag ZERO
public static final ByteTag ONE
private final byte value
public static ByteTag of(byte value)
public static ByteTag of(boolean value)
public void write(DataOutput output) throws IOException
IOExceptionpublic byte getType()
public ByteTag copy()
public void method_32289(class_5627 class_5627)
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