Skip to content

HoverEvent

Namespace Mc.Scripting.Text · Kind class (sealed)

public sealed class HoverEvent

A hover event of a text component.

Member Description
static HoverEvent ShowEntity(string entityTypeKey, Uuid uuid, Component? name = null) Shows an entity tooltip.
static HoverEvent ShowItem(string itemKey, int count = 1) Shows an item tooltip (item key and count; components are not part of v1).
static HoverEvent ShowText(Component text) Shows a text tooltip.
public static HoverEvent ShowEntity(string entityTypeKey, Uuid uuid, Component? name = null)

Shows an entity tooltip.

Parameters

Name Type Description
entityTypeKey string
uuid Uuid
name Component? = null

Returns HoverEvent

public static HoverEvent ShowItem(string itemKey, int count = 1)

Shows an item tooltip (item key and count; components are not part of v1).

Parameters

Name Type Description
itemKey string
count int = 1

Returns HoverEvent

public static HoverEvent ShowText(Component text)

Shows a text tooltip.

Parameters

Name Type Description
text Component

Returns HoverEvent

Component · Uuid