Class ShowItem
Namespace: Void.Minecraft.Components.Text.Events.Actions.Hover
Assembly: Void.Minecraft.dll
Represents a hover event action that displays an item stack.
public record ShowItem : IHoverEventAction, IEquatable<ShowItem>Inheritance
Implements
IHoverEventAction, IEquatable<ShowItem>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
ShowItem(string, int?, NbtCompound?)
Represents a hover event action that displays an item stack.
public ShowItem(string Id, int? Count = null, NbtCompound? ItemComponents = null)Parameters
Id string
The item identifier written to the hover event’s id field.
Count int?
The optional stack size. When null, the hover event omits an explicit count.
ItemComponents NbtCompound?
Optional item component data written to the hover event’s components field. When null, no component compound is associated with the displayed item.
Properties
ActionName
public string ActionName { get; }Property Value
Count
The optional stack size. When null, the hover event omits an explicit count.
public int? Count { get; init; }Property Value
int?
Id
The item identifier written to the hover event’s id field.
public string Id { get; init; }Property Value
ItemComponents
Optional item component data written to the hover event’s components field. When null, no component compound is associated with the displayed item.
public NbtCompound? ItemComponents { get; init; }