Finish ByteTag

This commit is contained in:
zontreck 2024-05-04 20:35:21 -07:00
parent 9b33f69021
commit a8d99586c9

View file

@ -2,18 +2,20 @@ import 'package:libac_flutter/nbt/Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart';
class ByteTag extends Tag {
final int value;
int _value = 0;
ByteTag({required this.value});
ByteTag(int value) {
_value = value;
}
@override
void readValue(ByteLayer data) {
// TODO: implement readValue
_value = data.readByte();
}
@override
void writeValue(ByteLayer data) {
// TODO: implement writeValue
data.writeByte(_value);
}
@override