Class TextContent
Namespace: Void.Minecraft.Components.Text.Properties.Content
Assembly: Void.Minecraft.dll
Represents literal text content in a Minecraft text component.
public record TextContent : IContent, IEquatable<TextContent>Inheritance
Implements
IContent, IEquatable<TextContent>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
TextContent(string)
Represents literal text content in a Minecraft text component.
public TextContent(string Value)Parameters
Value string
The text displayed by the component.
Properties
Type
Gets the text content discriminator.
public string Type { get; }Property Value
Value
The text displayed by the component.
public string Value { get; init; }