Appearance
helix / Keybind
Class: Keybind โ
Defined in: core/frontend/nodes/keybind.ts:4
A {"keybind": key} span: the key the player has bound, e.g. key.jump.
Extends โ
Constructors โ
Constructor โ
new Keybind(
key):Keybind
Defined in: core/frontend/nodes/keybind.ts:5
Parameters โ
key โ
string
Returns โ
Keybind
Overrides โ
Properties โ
clickEvent? โ
optionalclickEvent?:ClickEvent
Defined in: core/frontend/nodes/tellraw_part.ts:24
Inherited from โ
hoverEvent? โ
optionalhoverEvent?:HoverEvent
Defined in: core/frontend/nodes/tellraw_part.ts:25
Inherited from โ
key โ
readonlykey:string
Defined in: core/frontend/nodes/keybind.ts:5
style โ
readonlystyle:TextStyle={}
Defined in: core/frontend/nodes/tellraw_part.ts:23
Accumulated styling; each fluent method writes one field here.
Inherited from โ
Methods โ
bold() โ
bold(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:33
Parameters โ
value? โ
boolean = true
Returns โ
this
Inherited from โ
color() โ
color(
color):this
Defined in: core/frontend/nodes/tellraw_part.ts:28
Colours this span. Prefer Color.GOLD; #RRGGBB also works.
Parameters โ
color โ
Color | `#${string}`
Returns โ
this
Inherited from โ
font() โ
font(
id):this
Defined in: core/frontend/nodes/tellraw_part.ts:59
Renders this span in another font, e.g. minecraft:illageralt.
Parameters โ
id โ
string
Returns โ
this
Inherited from โ
italic() โ
italic(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:38
Parameters โ
value? โ
boolean = true
Returns โ
this
Inherited from โ
obfuscated() โ
obfuscated(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:53
Parameters โ
value? โ
boolean = true
Returns โ
this
Inherited from โ
onClick() โ
onClick(
event):this
Defined in: core/frontend/nodes/tellraw_part.ts:71
Attach a click action (see the click helper).
Parameters โ
event โ
Returns โ
this
Inherited from โ
onHover() โ
onHover(
event):this
Defined in: core/frontend/nodes/tellraw_part.ts:77
Attach a hover tooltip (see the hover helper).
Parameters โ
event โ
Returns โ
this
Inherited from โ
shadowColor() โ
shadowColor(
argb):this
Defined in: core/frontend/nodes/tellraw_part.ts:65
Sets the drop shadow's colour as packed ARGB, e.g. 0x80000000. 0 hides it (1.21.4+).
Parameters โ
argb โ
number
Returns โ
this
Inherited from โ
strikethrough() โ
strikethrough(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:48
Parameters โ
value? โ
boolean = true
Returns โ
this
Inherited from โ
underlined() โ
underlined(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:43
Parameters โ
value? โ
boolean = true
Returns โ
this