public interface IEntitySelectorFactory
GameRegistry.registerEntitySelector(IEntitySelectorFactory, String...)
For an example implementation, see CustomEntitySelectorTest| Modifier and Type | Method and Description |
|---|---|
java.util.List<<any>> |
createPredicates(java.util.Map<java.lang.String,java.lang.String> arguments,
java.lang.String mainSelector,
ICommandSender sender,
Vec3d position)
Called every time a command that contains entity selectors is executed
|
java.util.List<<any>> createPredicates(java.util.Map<java.lang.String,java.lang.String> arguments,
java.lang.String mainSelector,
ICommandSender sender,
Vec3d position)
arguments - A map with all arguments and their valuesmainSelector - The main selector string (e.g. 'a' for all players or 'e' for all entities)sender - The sender of the commandposition - A position either specified in the selector arguments or by the players position. See EntitySelector.getPosFromArguments(Map, Vec3d)Collections.emptyList() but not null.