All Implemented Interfaces:
ISelectorArgument, Comparable<ISelectorArgument>

@PowerNukkitXOnly @Since("1.19.60-r1") public class Y extends CoordinateArgument
  • Constructor Details

    • Y

      public Y()
  • Method Details

    • getPredicate

      public Predicate<Entity> getPredicate(SelectorType selectorType, CommandSender sender, Location basePos, String... arguments) throws SelectorSyntaxException
      Description copied from interface: ISelectorArgument
      根据给定的参数表返回特定的List<Predicate<Entity>>
      Parameters:
      selectorType - 选择器类型
      sender - 命令发送者
      basePos - 若此参数解析需要用到相对坐标,则应该以此坐标为依据

      若此参数需要修改参照坐标(例如x,y,z参数),则应当在这个参数上修改

      在一条解析链上的参数只会使用一个Location对象

      arguments - 参数列表
      Returns:
      Predicate<Entity>
      Throws:
      SelectorSyntaxException - 当解析出错
    • getKeyName

      public String getKeyName()
      Description copied from interface: ISelectorArgument
      获取此参数的名称
      Returns:
      参数名称