Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

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 โ€‹

TellrawPart.constructor

Properties โ€‹

clickEvent? โ€‹

optional clickEvent?: ClickEvent

Defined in: core/frontend/nodes/tellraw_part.ts:24

Inherited from โ€‹

TellrawPart.clickEvent


hoverEvent? โ€‹

optional hoverEvent?: HoverEvent

Defined in: core/frontend/nodes/tellraw_part.ts:25

Inherited from โ€‹

TellrawPart.hoverEvent


key โ€‹

readonly key: string

Defined in: core/frontend/nodes/keybind.ts:5


style โ€‹

readonly style: TextStyle = {}

Defined in: core/frontend/nodes/tellraw_part.ts:23

Accumulated styling; each fluent method writes one field here.

Inherited from โ€‹

TellrawPart.style

Methods โ€‹

bold() โ€‹

bold(value?): this

Defined in: core/frontend/nodes/tellraw_part.ts:33

Parameters โ€‹

value? โ€‹

boolean = true

Returns โ€‹

this

Inherited from โ€‹

TellrawPart.bold


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 โ€‹

TellrawPart.color


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 โ€‹

TellrawPart.font


italic() โ€‹

italic(value?): this

Defined in: core/frontend/nodes/tellraw_part.ts:38

Parameters โ€‹

value? โ€‹

boolean = true

Returns โ€‹

this

Inherited from โ€‹

TellrawPart.italic


obfuscated() โ€‹

obfuscated(value?): this

Defined in: core/frontend/nodes/tellraw_part.ts:53

Parameters โ€‹

value? โ€‹

boolean = true

Returns โ€‹

this

Inherited from โ€‹

TellrawPart.obfuscated


onClick() โ€‹

onClick(event): this

Defined in: core/frontend/nodes/tellraw_part.ts:71

Attach a click action (see the click helper).

Parameters โ€‹

event โ€‹

ClickEvent

Returns โ€‹

this

Inherited from โ€‹

TellrawPart.onClick


onHover() โ€‹

onHover(event): this

Defined in: core/frontend/nodes/tellraw_part.ts:77

Attach a hover tooltip (see the hover helper).

Parameters โ€‹

event โ€‹

HoverEvent

Returns โ€‹

this

Inherited from โ€‹

TellrawPart.onHover


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 โ€‹

TellrawPart.shadowColor


strikethrough() โ€‹

strikethrough(value?): this

Defined in: core/frontend/nodes/tellraw_part.ts:48

Parameters โ€‹

value? โ€‹

boolean = true

Returns โ€‹

this

Inherited from โ€‹

TellrawPart.strikethrough


underlined() โ€‹

underlined(value?): this

Defined in: core/frontend/nodes/tellraw_part.ts:43

Parameters โ€‹

value? โ€‹

boolean = true

Returns โ€‹

this

Inherited from โ€‹

TellrawPart.underlined

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.