Uuid
Namespace Mc.Scripting · Kind struct (readonly)
public readonly struct Uuid : IEquatable<Uuid>Java-style UUID (two big-endian halves).
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
Uuid(ulong most, ulong least) |
Creates a uuid from its two halves. |
Constructor
Section titled “Constructor”public Uuid(ulong most, ulong least)Creates a uuid from its two halves.
Parameters
| Name | Type | Description |
|---|---|---|
most |
ulong |
|
least |
ulong |
Fields
Section titled “Fields”| Member | Description |
|---|---|
readonly ulong Least |
Least significant 64 bits. |
readonly ulong Most |
Most significant 64 bits. |
public readonly ulong Least;Least significant 64 bits.
public readonly ulong Most;Most significant 64 bits.
Methods
Section titled “Methods”| Member | Description |
|---|---|
bool Equals(Uuid other) |
Equality. |
override bool Equals(object? obj) |
Equality. |
override int GetHashCode() |
Hash code. |
override string ToString() |
The canonical 8-4-4-4-12 text form. |
Equals
Section titled “Equals”public bool Equals(Uuid other)Equality.
Parameters
| Name | Type | Description |
|---|---|---|
other |
Uuid |
Returns bool
Equals
Section titled “Equals”public override bool Equals(object? obj)Equality.
Parameters
| Name | Type | Description |
|---|---|---|
obj |
object? |
Returns bool
GetHashCode
Section titled “GetHashCode”public override int GetHashCode()Hash code.
Returns int
ToString
Section titled “ToString”public override string ToString()The canonical 8-4-4-4-12 text form.
Returns string
Operators
Section titled “Operators”| Member | Description |
|---|---|
static bool operator !=(Uuid a, Uuid b) |
Inequality. |
static bool operator ==(Uuid a, Uuid b) |
Equality. |
operator !=
Section titled “operator !=”public static bool operator !=(Uuid a, Uuid b)Inequality.
Parameters
| Name | Type | Description |
|---|---|---|
a |
Uuid |
|
b |
Uuid |
Returns bool
operator ==
Section titled “operator ==”public static bool operator ==(Uuid a, Uuid b)Equality.
Parameters
| Name | Type | Description |
|---|---|---|
a |
Uuid |
|
b |
Uuid |
Returns bool