Class ClickEvent
Namespace: Void.Minecraft.Components.Text.Events
Assembly: Void.Minecraft.dll
Wraps a click action for a text component.
public record ClickEvent : IEvent, IEquatable<ClickEvent>Inheritance
Implements
IEvent, IEquatable<ClickEvent>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
ClickEvent(IClickEventAction)
Wraps a click action for a text component.
public ClickEvent(IClickEventAction Content)Parameters
Content IClickEventAction
The click-action payload.
Properties
ActionName
Gets the action identifier supplied by
public string ActionName { get; }Property Value
Content
The click-action payload.
public IClickEventAction Content { get; init; }