@jsprismarine/prismarine
Version:
Dedicated Minecraft Bedrock Edition server written in TypeScript
30 lines • 899 B
TypeScript
import { Entity } from '../entity/Entity';
/**
* Parse target selector argument.
*
* @remarks
* A target selector is made up of 3 parts:
*
* - First there's the `@` (at symbol) part,
* notifying us that this is in fact a target selector
*
* - Secondly there's the target selector type (`a`, `e`, `p`, `r`, `s`),
* this specifies what kind of entities we should query for
* and in what way.
*
* - Thirdly there's the arguments,
* they are split up in a comma-separated list in the
* argument=value format.
*
* This results in an input similar to:
* `@e[type=player,gamemode=creative,limit=3]`
*
* @returns The entities matching the target query
*/
declare const ParseTargetSelector: ({ input, entities, source }: {
input: string;
entities: Entity[];
source: Entity;
}) => Entity[];
export default ParseTargetSelector;
//# sourceMappingURL=ParseTargetSelector.d.ts.map