Class Interactivity
Namespace: Void.Minecraft.Components.Text.Properties
Assembly: Void.Minecraft.dll
Describes optional interactive behavior attached to a text component.
public record Interactivity : IEquatable<Interactivity>Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Interactivity(string?, ClickEvent?, HoverEvent?)
Describes optional interactive behavior attached to a text component.
public Interactivity(string? Insertion = null, ClickEvent? ClickEvent = null, HoverEvent? HoverEvent = null)Parameters
Insertion string?
The text inserted into chat on shift-click, or null when absent.
ClickEvent ClickEvent?
The action invoked when the component is clicked, or null.
HoverEvent HoverEvent?
The action displayed when the component is hovered, or null.
Properties
ClickEvent
The action invoked when the component is clicked, or null.
public ClickEvent? ClickEvent { get; init; }Property Value
Default
Gets interactivity with no insertion, click event, or hover event.
public static Interactivity Default { get; }Property Value
HoverEvent
The action displayed when the component is hovered, or null.
public HoverEvent? HoverEvent { get; init; }Property Value
Insertion
The text inserted into chat on shift-click, or null when absent.
public string? Insertion { get; init; }