Class CodeDownloaderExperiment
java.lang.Object
ua.mcchickenstudio.opencreative.commands.experiments.Experiment
ua.mcchickenstudio.opencreative.commands.experiments.CodeDownloaderExperiment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns description of experiment, that will tell purpose of experiment and describes what it adds.@NotNull StringgetId()Returns id of experiment.@NotNull StringgetName()Returns name of experiment, that will be used for displaying in experiments list.voidhandleCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args) Handles command for experiment.tabCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args) Returns list of command suggestions for experiment.Methods inherited from class Experiment
hashCode, isEnabled, onDisable, onEnable, setEnabled, toStringModifier and TypeMethodDescriptioninthashCode()booleanChecks whether experiment is enabled or not.voidExecutes disable operations for experiment.voidonEnable()Executes enable operations for experiment.voidsetEnabled(boolean enabled) Sets enabled state of experiment.toString()
-
Constructor Details
-
CodeDownloaderExperiment
public CodeDownloaderExperiment()
-
-
Method Details
-
getId
Description copied from class:ExperimentReturns id of experiment.- Specified by:
getIdin classExperiment- Returns:
- short id of experiment that will be used in settings.
It must be lower-snake-cased, for example: "future_update", "code_downloader".
-
getName
Description copied from class:ExperimentReturns name of experiment, that will be used for displaying in experiments list.- Specified by:
getNamein classExperiment- Returns:
- name of experiment.
-
getDescription
Description copied from class:ExperimentReturns description of experiment, that will tell purpose of experiment and describes what it adds.- Specified by:
getDescriptionin classExperiment- 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:ExperimentHandles command for experiment.- Specified by:
handleCommandin classExperiment- Parameters:
sender- sender of command.args- arguments of command.
-
tabCommand
@NotNull public @NotNull List<String> tabCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args) Description copied from class:ExperimentReturns list of command suggestions for experiment.- Specified by:
tabCommandin classExperiment- Parameters:
sender- sender of command.args- arguments of command.- Returns:
- list of command suggestions.
-