Class HeightConverter
java.lang.Object
com.sk89q.worldedit.command.argument.HeightConverter
- All Implemented Interfaces:
org.enginehub.piston.converter.ArgumentConverter<Integer>
,org.enginehub.piston.converter.Converter<Integer>
,org.enginehub.piston.converter.SuggestionProvider
public class HeightConverter
extends Object
implements org.enginehub.piston.converter.ArgumentConverter<Integer>
Converter for handling default heights as the
currently configured
height.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The value that converts to the default vertical height. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.enginehub.piston.converter.ArgumentConverter
getSuggestions
-
Field Details
-
DEFAULT_VALUE
The value that converts to the default vertical height.- See Also:
-
-
Method Details
-
register
public static void register(org.enginehub.piston.CommandManager commandManager) -
describeAcceptableArguments
public com.sk89q.worldedit.util.formatting.text.Component describeAcceptableArguments()- Specified by:
describeAcceptableArguments
in interfaceorg.enginehub.piston.converter.ArgumentConverter<Integer>
-
convert
public org.enginehub.piston.converter.ConversionResult<Integer> convert(String argument, org.enginehub.piston.inject.InjectedValueAccess context) - Specified by:
convert
in interfaceorg.enginehub.piston.converter.Converter<Integer>
-