TextComponent.selector constructor
TextComponent.selector(
- Entity entity, {
- Color? color,
- bool? bold,
- bool? underlined,
- bool? italic,
- bool? strikethrough,
- bool? obfuscated,
- TextClickEvent? clickEvent,
- TextHoverEvent? hoverEvent,
- 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()};
}