Class TestificationExperiment
java.lang.Object
ua.mcchickenstudio.opencreative.commands.experiments.Experiment
ua.mcchickenstudio.opencreative.commands.experiments.TestificationExperiment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic class -
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.voidExecutes disable operations 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, onEnable, setEnabled, toString
-
Constructor Details
-
TestificationExperiment
public TestificationExperiment()
-
-
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
@Nullable public @Nullable 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.
-
onDisable
public void onDisable()Description copied from class:ExperimentExecutes disable operations for experiment.- Overrides:
onDisablein classExperiment
-