Class ShowEntity
Namespace: Void.Minecraft.Components.Text.Events.Actions.Hover
Assembly: Void.Minecraft.dll
Represents a hover action that displays entity information.
public record ShowEntity : IHoverEventAction, IEquatable<ShowEntity>Inheritance
Implements
IHoverEventAction, IEquatable<ShowEntity>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
ShowEntity(Uuid, string?, Component?)
Represents a hover action that displays entity information.
public ShowEntity(Uuid Id, string? Type = null, Component? Name = null)Parameters
Id Uuid
The entity UUID.
Type string?
The optional entity-type resource location.
Name Component?
The optional display-name component.
Properties
ActionName
Gets the show_entity hover-action identifier.
public string ActionName { get; }Property Value
Id
The entity UUID.
public Uuid Id { get; init; }Property Value
Name
The optional display-name component.
public Component? Name { get; init; }Property Value
Type
The optional entity-type resource location.
public string? Type { get; init; }