Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Optional bold

bold: boolean = ...

Optional clickEvent

clickEvent: IClickEvent = ...

Optional color

color: string = ...

extra

extra: (string | RawJSON)[] = []

Optional font

font: string = ...

Optional hoverEvent

Optional insertion

insertion: string = ...

Optional italic

italic: boolean = ...

Optional obfuscated

obfuscated: boolean = ...

score

score: IScore = ...

Optional strikethrough

strikethrough: boolean = ...

Optional underlined

underlined: boolean = ...

Accessors

hasClickEvent

  • get hasClickEvent(): boolean
  • Get component click event status

    Returns boolean

    Component click event status

hasColor

  • get hasColor(): boolean

hasFont

  • get hasFont(): boolean

hasHoverEvent

  • get hasHoverEvent(): boolean
  • Get component hover event status

    Returns boolean

    Component click event status

isBold

  • get isBold(): boolean

isItalic

  • get isItalic(): boolean

isObfuscated

  • get isObfuscated(): boolean
  • Get component obfuscated status

    Returns boolean

    Component obfuscated status

isStrikethrough

  • get isStrikethrough(): boolean
  • Get component strikethrough status

    Returns boolean

    Component strikethrough status

isUnderlined

  • get isUnderlined(): boolean
  • Get component underlined status

    Returns boolean

    Component underlined status

Methods

addExtra

addNewLine

addSpace

clearExtra

hasName

  • hasName(): boolean

hasObjective

  • hasObjective(): boolean

hasValue

  • hasValue(): boolean

setBold

setClickEvent

setColor

setFont

setHoverEvent

setInsertion

setItalic

setName

setObfuscated

setObjective

setStrikethrough

  • setStrikethrough(strikethrough?: undefined | boolean): ScoreComponent

setUnderlined

setValue

Protected setup

  • setup(component?: string | BaseComponent | Partial<Pick<BaseComponent, "color" | "font" | "bold" | "italic" | "underlined" | "strikethrough" | "obfuscated" | "insertion" | "clickEvent" | "hoverEvent" | "extra">>): void

toRawString

  • toRawString(): string

toString

  • toString(): string

Legend

  • Constructor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Property
  • Protected method

Generated using TypeDoc