Entity constructor
Entity({
- String selector = 'e',
- int? limit,
- List? tags,
- Team? team,
- List<
Score> ? scores, - Map<
String, dynamic> ? nbt, - String? strNbt,
- EntityType? type,
- String? predicate,
- Area? area,
- Range? distance,
- Range? level,
- Gamemode? gamemode,
- String? name,
- Rotation? isRotated,
- Range? horizontalRotation,
- Range? verticalRotation,
- String? playerName,
Entity is an util class to convert an argument list into the Minecraft Entity format(@p...)
Implementation
Entity({
this.selector = 'e',
int? limit,
List<dynamic>? tags,
Team? team,
List<Score>? scores,
Map<String, dynamic>? nbt,
String? strNbt,
EntityType? type,
String? predicate,
Area? area,
Range? distance,
Range? level,
Gamemode? gamemode,
String? name,
Rotation? isRotated,
Range? horizontalRotation,
Range? verticalRotation,
this.playerName,
}) {
_setArguments(
limit,
tags,
team,
scores,
nbt,
strNbt,
type,
area,
distance,
level,
gamemode,
name,
isRotated,
horizontalRotation,
verticalRotation,
predicate,
false,
);
}