TextComponent.selector constructor

TextComponent.selector(
  1. Entity entity, {
  2. Color? color,
  3. bool? bold,
  4. bool? underlined,
  5. bool? italic,
  6. bool? strikethrough,
  7. bool? obfuscated,
  8. TextClickEvent? clickEvent,
  9. TextHoverEvent? hoverEvent,
  10. String? insertion,
})

Implementation

TextComponent.selector(
  Entity entity, {
  this.color,
  this.bold,
  this.underlined,
  this.italic,
  this.strikethrough,
  this.obfuscated,
  this.clickEvent,
  this.hoverEvent,
  this.insertion,
}) {
  value = {'selector': entity.toString()};
}