HoverEvent
Namespace Mc.Scripting.Text · Kind class (sealed)
public sealed class HoverEventA hover event of a text component.
Methods
Section titled “Methods”| 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. |
ShowEntity
Section titled “ShowEntity”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
ShowItem
Section titled “ShowItem”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
ShowText
Section titled “ShowText”public static HoverEvent ShowText(Component text)Shows a text tooltip.
Parameters
| Name | Type | Description |
|---|---|---|
text |
Component |
Returns HoverEvent