Class BlockPosValueConverter

java.lang.Object
net.neoforged.neoforge.gametest.BlockPosValueConverter
All Implemented Interfaces:
joptsimple.ValueConverter<BlockPos>

public class BlockPosValueConverter extends Object implements joptsimple.ValueConverter<BlockPos>
  • Constructor Details

    • BlockPosValueConverter

      public BlockPosValueConverter()
  • Method Details

    • convert

      public BlockPos convert(String value)
      Description copied from interface: joptsimple.ValueConverter
      Converts the given string value into a Java type.
      Specified by:
      convert in interface joptsimple.ValueConverter<BlockPos>
      Parameters:
      value - the string to convert
      Returns:
      the converted value
    • valueType

      public Class<BlockPos> valueType()
      Description copied from interface: joptsimple.ValueConverter
      Gives the class of the type of values this converter converts to.
      Specified by:
      valueType in interface joptsimple.ValueConverter<BlockPos>
      Returns:
      the target class for conversion
    • valuePattern

      public String valuePattern()
      Description copied from interface: joptsimple.ValueConverter
      Gives a string that describes the pattern of the values this converter expects, if any. For example, a date converter can respond with a date format string.
      Specified by:
      valuePattern in interface joptsimple.ValueConverter<BlockPos>
      Returns:
      a value pattern, or null if there's nothing interesting here