Class IPStringNode

All Implemented Interfaces:
IParamNode<String>

@PowerNukkitXOnly @Since("1.19.60-r1") public class IPStringNode extends StringNode
验证IP地址并解析为String

不会默认使用,需要手动指定

  • Constructor Details

    • IPStringNode

      public IPStringNode()
  • Method Details

    • fill

      public void fill(String arg)
      Description copied from interface: IParamNode
      负责填充该参数节点,覆写该方法需要实现对接受参数arg的验证以及解析成为对应类型T的结果
      当验证失败或者解析失败,请调用IParamNode.error(String)方法标记错误.形如this.error()
      Specified by:
      fill in interface IParamNode<String>
      Overrides:
      fill in class StringNode
      Parameters:
      arg - the arg