Package com.plotsquared.core.setup
Class SettingsNodeStep
java.lang.Object
com.plotsquared.core.setup.SettingsNodeStep
- All Implemented Interfaces:
SetupStep
A SettingsNodeStep is a step wrapping a
ConfigurationNode
.-
Constructor Summary
ConstructorDescriptionSettingsNodeStep(ConfigurationNode configurationNode, int id, SettingsNodesWrapper wrapper)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
announce(PlotPlayer<?> plotPlayer)
Announces this step to the player.createSuggestions(PlotPlayer<?> plotPlayer, String argument)
Creates a collection of suggestions for the current input.@Nullable String
int
getId()
@NonNull Collection<String>
handleInput(PlotPlayer<?> plotPlayer, PlotAreaBuilder builder, String argument)
Handles the input for this setup step.
-
Constructor Details
-
SettingsNodeStep
-
-
Method Details
-
handleInput
Description copied from interface:SetupStep
Handles the input for this setup step.- Specified by:
handleInput
in interfaceSetupStep
- Parameters:
plotPlayer
- the plot player executing the commandbuilder
- the plot area builder to work onargument
- the argument given as input- Returns:
- the next step if input was valid, this setup step otherwise
-
getSuggestions
- Specified by:
getSuggestions
in interfaceSetupStep
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceSetupStep
-
announce
Description copied from interface:SetupStep
Announces this step to the player. -
createSuggestions
Description copied from interface:SetupStep
Creates a collection of suggestions for the current input.- Specified by:
createSuggestions
in interfaceSetupStep
- Parameters:
plotPlayer
- the player to receive the suggestions.argument
- the argument already typed.- Returns:
- a collection of suggestions.
-
getConfigurationNode
-
getId
public int getId()
-