Class GameProfile
Namespace: Void.Minecraft.Profiles
Assembly: Void.Minecraft.dll
Represents a Minecraft player’s authenticated or offline game profile.
public record GameProfile : IEquatable<GameProfile>Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
GameProfile(string, Uuid, Property[]?)
Represents a Minecraft player’s authenticated or offline game profile.
public GameProfile(string Username, Uuid Id = default, Property[]? Properties = null)Parameters
Username string
The profile name reported for the player.
Id Uuid
The profile UUID, or the zero UUID when no identifier is available.
Properties Property[]?
Optional profile properties such as signed textures. The supplied array is retained without copying.
Properties
Id
The profile UUID, or the zero UUID when no identifier is available.
[JsonConverter(typeof(UuidJsonConverter))]public Uuid Id { get; init; }Property Value
Properties
Optional profile properties such as signed textures. The supplied array is retained without copying.
public Property[]? Properties { get; init; }Property Value
Property[]?
Username
The profile name reported for the player.
[JsonPropertyName("name")]public string Username { get; init; }