Scoreboard.add constructor
Scoreboard.add(
- String name, {
- String type = 'dummy',
- TextComponent? display,
The Scoreboard.add
constructor does exactly the same as Scoreboard but puts the result without checking in the current file.
Implementation
Scoreboard.add(this.name, {this.type = 'dummy', TextComponent? display})
: subcommand = 'addHere' {
if (display != null) type += ' ${display.toJson()!}';
prefixName();
}