Class representing a Universally Unique Identifier.
Note that all Cuberite's API functions that take a cUUID parameter will also
accept a string in its place, as long as that string can be converted to a cUUID
(using the cUUID:FromString function).
Name | Parameters | Return value | Notes |
() (constructor) |
|
|
Constructs a nil-valued UUID (all zeros) |
Compare |
|
|
Compares this UUID with the specified Other UUID, Returns:
0 when equal to Other,
< 0 when less than Other,
> 0 when greater than Other
|
FromString |
|
|
Tries to interpret the string as a short or long form UUID and assign from it. On error, returns false and does not set the value. |
GenerateVersion3 |
|
|
(STATIC) Generates a version 3, variant 1 UUID based on the md5 hash of Name. |
IsNil |
|
|
Returns true if this contains the "nil" UUID with all bits set to 0 |
ToLongString |
|
|
Converts the UUID to a long form string (i.e with dashes). |
ToShortString |
|
|
Converts the UUID to a short form string (i.e without dashes). |
Variant |
|
|
Returns the variant number of the UUID |
Version |
|
|
Returns the version number of the UUID. |