Skip to content

Class ScoreContent

Namespace: Void.Minecraft.Components.Text.Properties.Content
Assembly: Void.Minecraft.dll

Represents text resolved from a scoreboard value.

public record ScoreContent : IContent, IEquatable<ScoreContent>

Inheritance

objectScoreContent

Implements

IContent, IEquatable<ScoreContent>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

ScoreContent(string, string)

Represents text resolved from a scoreboard value.

public ScoreContent(string Name, string Objective)

Parameters

Name string

The score holder name or selector.

Objective string

The scoreboard objective name.

Properties

Name

The score holder name or selector.

public string Name { get; init; }

Property Value

string

Objective

The scoreboard objective name.

public string Objective { get; init; }

Property Value

string

Type

Gets the score content discriminator.

public string Type { get; }

Property Value

string