Class Y
java.lang.Object
cn.nukkit.command.selector.args.impl.CoordinateArgument
cn.nukkit.command.selector.args.impl.Y
- All Implemented Interfaces:
ISelectorArgument
,Comparable<ISelectorArgument>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription获取此参数的名称getPredicate
(SelectorType selectorType, CommandSender sender, Location basePos, String... arguments) 根据给定的参数表返回特定的List<Predicate<Entity>>
Methods inherited from class cn.nukkit.command.selector.args.impl.CoordinateArgument
getPriority
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.command.selector.args.ISelectorArgument
compareTo, getDefaultValue, getFilter, isFilter
-
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
Description copied from interface:ISelectorArgument
获取此参数的名称- Returns:
- 参数名称
-