TextHoverEvent.text constructor

TextHoverEvent.text(
  1. List<TextComponent> texts
)

Accepts a new List of TextComponents to display

Implementation

TextHoverEvent.text(List<TextComponent> texts)
    : action = 'show_text',
      // ToDo: catch if score, selector or event listener
      value = texts.map((item) => item.toMap()).toList();