Adds a new functions to the NBT Tag abstract: getter and setter for value
This commit is contained in:
parent
ba8315f5ee
commit
fdb5669897
15 changed files with 113 additions and 1 deletions
|
@ -173,6 +173,10 @@ abstract class Tag {
|
|||
_key = key;
|
||||
}
|
||||
|
||||
dynamic getValue();
|
||||
|
||||
void setValue(dynamic val);
|
||||
|
||||
static Tag readNamedTag(ByteLayer data) {
|
||||
var type = data.readByte();
|
||||
if (type == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue