Class WandersExperiment

java.lang.Object
ua.mcchickenstudio.opencreative.commands.experiments.Experiment
ua.mcchickenstudio.opencreative.commands.experiments.WandersExperiment

public final class WandersExperiment extends Experiment
  • Constructor Details

    • WandersExperiment

      public WandersExperiment()
  • Method Details

    • getId

      @NotNull public @NotNull String getId()
      Description copied from class: Experiment
      Returns id of experiment.
      Specified by:
      getId in class Experiment
      Returns:
      short id of experiment that will be used in settings.

      It must be lower-snake-cased, for example: "future_update", "code_downloader".

    • getName

      @NotNull public @NotNull String getName()
      Description copied from class: Experiment
      Returns name of experiment, that will be used for displaying in experiments list.
      Specified by:
      getName in class Experiment
      Returns:
      name of experiment.
    • getDescription

      @NotNull public @NotNull String getDescription()
      Description copied from class: Experiment
      Returns description of experiment, that will tell purpose of experiment and describes what it adds.
      Specified by:
      getDescription in class Experiment
      Returns:
      description of content in experiment.
    • handleCommand

      public void handleCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args)
      Description copied from class: Experiment
      Handles command for experiment.
      Specified by:
      handleCommand in class Experiment
      Parameters:
      sender - sender of command.
      args - arguments of command.
    • tabCommand

      @Nullable public @Nullable List<String> tabCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args)
      Description copied from class: Experiment
      Returns list of command suggestions for experiment.
      Specified by:
      tabCommand in class Experiment
      Parameters:
      sender - sender of command.
      args - arguments of command.
      Returns:
      list of command suggestions.