Selector class

Constructors

Selector({String selector = 'e', int? limit, List? tags, Team? team, List<Score>? scores, Map<String, dynamic>? nbt, String? strNbt, EntityType? type, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, Sort? sorting, String? playerName, String? predicate})
Create entity selector (default selector: @e)
Selector.All({int? limit, List? tags, Team? team, List<Score>? scores, Map<String, dynamic>? nbt, String? strNbt, EntityType? type, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, Sort? sorting, String? playerName, String? predicate})
Create entity selector @a
Selector.clone(Selector s)
Copy a selector
Selector.parse(String selector)
Parse a Selector, for example:
Selector.Player({int? limit, List? tags, Team? team, List<Score>? scores, Map<String, dynamic>? nbt, String? strNbt, EntityType? type, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, Sort? sorting, String? playerName, String? predicate})
Create entity selector @p
Selector.Random({int? limit, List? tags, Team? team, List<Score>? scores, Map<String, dynamic>? nbt, String? strNbt, EntityType? type, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, Sort? sorting, String? playerName, String? predicate})
Create entity selector @r
Selector.Selected({int? limit, List? tags, Team? team, List<Score>? scores, Map<String, dynamic>? nbt, String? strNbt, EntityType? type, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, Sort? sorting, String? playerName, String? predicate})
Create entity selector @s

Properties

area Area?
getter/setter pair
distance Range?
getter/setter pair
gamemode Gamemode?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
horizontalRotation Range?
getter/setter pair
isRotated Rotation?
getter/setter pair
level Range?
getter/setter pair
limit int?
getter/setter pair
name String?
getter/setter pair
nbt Map<String, dynamic>?
getter/setter pair
playerName String?
getter/setter pair
predicate String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scores List<Score>?
getter/setter pair
selector String
getter/setter pair
sorting Sort?
getter/setter pair
strNbt String?
getter/setter pair
tags List?
getter/setter pair
team Team?
getter/setter pair
type EntityType?
getter/setter pair
verticalRotation Range?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sort(Sort s) Selector
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited