Add a converter method
This commit is contained in:
parent
d4b7a12187
commit
cc151e9109
2 changed files with 9 additions and 1 deletions
|
@ -25,6 +25,14 @@ class NbtUUID {
|
||||||
|
|
||||||
/// Returns the Least Significant Bits (LSB) long value of the UUID.
|
/// Returns the Least Significant Bits (LSB) long value of the UUID.
|
||||||
int getLeastSignificantBits() => LSB;
|
int getLeastSignificantBits() => LSB;
|
||||||
|
|
||||||
|
UUID toUUID() {
|
||||||
|
ByteLayer layer = ByteLayer();
|
||||||
|
layer.writeUnsignedLong(MSB);
|
||||||
|
layer.writeUnsignedLong(LSB);
|
||||||
|
|
||||||
|
return UUID(layer.readBytes(16));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: libac_flutter
|
name: libac_flutter
|
||||||
description: "Aria's Creations code library"
|
description: "Aria's Creations code library"
|
||||||
version: 1.0.12
|
version: 1.0.13
|
||||||
homepage: "https://zontreck.com"
|
homepage: "https://zontreck.com"
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue