public abstract class Tag extends Object implements Cloneable
Tags should also have setter methods specific to their value types.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
abstract Tag |
clone() |
abstract int |
getTagId()
Returns the NBT tag id of this tag type, used in I/O.
|
abstract Object |
getValue()
Gets the value of this tag.
|
abstract void |
read(DataInput in)
Reads this tag from an input stream.
|
String |
toString() |
abstract void |
write(DataOutput out)
Writes this tag to an output stream.
|
public abstract Object getValue()
public abstract void read(DataInput in) throws IOException
in - Stream to write to.IOException - If an I/O error occurs.public abstract void write(DataOutput out) throws IOException
out - Stream to write to.IOException - If an I/O error occurs.public abstract int getTagId()
Copyright © 2021. All rights reserved.