Scoreboard.click constructor

Scoreboard.click(
  1. String name, {
  2. TextComponent? display,
  3. bool addIntoLoad = true,
  4. bool removeOld = false,
})

The Scoreboard.click constructor adds a carrot on a stick click event objective

Implementation

factory Scoreboard.click(
  String name, {
  TextComponent? display,
  bool addIntoLoad = true,
  bool removeOld = false,
}) =>
    Scoreboard(
      name,
      type: 'minecraft.used:minecraft.carrot_on_a_stick',
      display: display,
      addIntoLoad: addIntoLoad,
    );