public abstract class NBTReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected byte |
byteValue |
protected String |
currentName |
protected com.nukkitx.nbt.NbtType<?> |
currentType |
protected Object |
currentValue |
protected double |
doubleValue |
protected float |
floatValue |
protected DataInput |
input |
protected int |
intValue |
protected long |
longValue |
protected NBTReader |
parent |
protected short |
shortValue |
protected String |
stringValue |
| Constructor and Description |
|---|
NBTReader(DataInput input,
NBTReader parent) |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.core.JsonToken |
decodeValue(com.nukkitx.nbt.NbtType<?> type) |
abstract com.fasterxml.jackson.core.JsonToken |
end() |
abstract com.fasterxml.jackson.core.JsonToken |
get() |
boolean |
getBooleanValue() |
byte |
getByteValue() |
static NBTReader |
getByType(com.nukkitx.nbt.NbtType<?> type,
NBTReader parent,
DataInput input) |
String |
getCurrentName() |
com.nukkitx.nbt.NbtType<?> |
getCurrentType() |
Object |
getCurrentValue() |
double |
getDoubleValue() |
float |
getFloatValue() |
int |
getIntValue() |
long |
getLongValue() |
NBTReader |
getParent() |
static NBTReader |
getRoot(DataInput input) |
short |
getShortValue() |
String |
getStringValue() |
abstract com.fasterxml.jackson.core.JsonToken |
start() |
protected final DataInput input
protected final NBTReader parent
protected String stringValue
protected byte byteValue
protected short shortValue
protected int intValue
protected long longValue
protected float floatValue
protected double doubleValue
protected String currentName
protected Object currentValue
protected com.nukkitx.nbt.NbtType<?> currentType
public abstract com.fasterxml.jackson.core.JsonToken get()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken start()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken end()
public NBTReader getParent()
protected com.fasterxml.jackson.core.JsonToken decodeValue(com.nukkitx.nbt.NbtType<?> type)
throws IOException
IOExceptionpublic String getStringValue()
public byte getByteValue()
public short getShortValue()
public int getIntValue()
public long getLongValue()
public float getFloatValue()
public double getDoubleValue()
public Object getCurrentValue()
public String getCurrentName()
public boolean getBooleanValue()
public com.nukkitx.nbt.NbtType<?> getCurrentType()
public static NBTReader getRoot(DataInput input) throws IOException
IOExceptionpublic static NBTReader getByType(com.nukkitx.nbt.NbtType<?> type, NBTReader parent, DataInput input) throws IOException
IOExceptionCopyright © 2021 FasterXML. All rights reserved.