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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The value that converts to the default vertical height.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.enginehub.piston.converter.ConversionResult<Integer>
    convert(String argument, org.enginehub.piston.inject.InjectedValueAccess context)
     
    com.sk89q.worldedit.util.formatting.text.Component
     
    static void
    register(org.enginehub.piston.CommandManager commandManager)
     

    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

      public static final String 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 interface org.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 interface org.enginehub.piston.converter.Converter<Integer>