Class SelectorContent
Namespace: Void.Minecraft.Components.Text.Properties.Content
Assembly: Void.Minecraft.dll
Represents a text component whose displayed value is resolved from an entity selector.
public record SelectorContent : IContent, IEquatable<SelectorContent>Inheritance
Implements
IContent, IEquatable<SelectorContent>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
SelectorContent(string, Component?)
Represents a text component whose displayed value is resolved from an entity selector.
public SelectorContent(string Value, Component? Separator = null)Parameters
Value string
The Minecraft entity selector pattern written to the component’s selector field.
Separator Component?
Optional component inserted between multiple resolved selector results; serializers omit it when it is null.
Properties
Separator
Optional component inserted between multiple resolved selector results; serializers omit it when it is null.
public Component? Separator { get; init; }Property Value
Type
Gets the selector content discriminator.
public string Type { get; }Property Value
Value
The Minecraft entity selector pattern written to the component’s selector field.
public string Value { get; init; }