All Implemented Interfaces:
ISelectorArgument, Comparable<ISelectorArgument>

@PowerNukkitXOnly @Since("1.19.60-r1") public class Tag extends CachedSimpleSelectorArgument
  • Constructor Details

    • Tag

      public Tag()
  • Method Details

    • cache

      protected Predicate<Entity> cache(SelectorType selectorType, CommandSender sender, Location basePos, String... arguments)
      Description copied from class: CachedSimpleSelectorArgument
      当未在缓存中找到解析结果时,则调用此方法对参数进行解析
      Specified by:
      cache in class CachedSimpleSelectorArgument
    • getKeyName

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

      public int getPriority()
      Description copied from interface: ISelectorArgument
      解析优先级定义了各个参数的解析顺序

      优先级越高(数字越小)的参数,其越先被解析,且其解析结果将会影响下个参数的解析

      Returns:
      此参数的解析优先级