Appearance
helix / TellrawPart
Abstract Class: TellrawPart โ
Defined in: core/frontend/nodes/tellraw_part.ts:21
Extended by โ
Constructors โ
Constructor โ
new TellrawPart():
TellrawPart
Returns โ
TellrawPart
Properties โ
clickEvent? โ
optionalclickEvent?:ClickEvent
Defined in: core/frontend/nodes/tellraw_part.ts:24
hoverEvent? โ
optionalhoverEvent?:HoverEvent
Defined in: core/frontend/nodes/tellraw_part.ts:25
style โ
readonlystyle:TextStyle={}
Defined in: core/frontend/nodes/tellraw_part.ts:23
Accumulated styling; each fluent method writes one field here.
Methods โ
bold() โ
bold(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:33
Parameters โ
value? โ
boolean = true
Returns โ
this
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
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
italic() โ
italic(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:38
Parameters โ
value? โ
boolean = true
Returns โ
this
obfuscated() โ
obfuscated(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:53
Parameters โ
value? โ
boolean = true
Returns โ
this
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
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
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
strikethrough() โ
strikethrough(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:48
Parameters โ
value? โ
boolean = true
Returns โ
this
underlined() โ
underlined(
value?):this
Defined in: core/frontend/nodes/tellraw_part.ts:43
Parameters โ
value? โ
boolean = true
Returns โ
this