Entity constructor

Entity({
  1. String selector = 'e',
  2. int? limit,
  3. List? tags,
  4. Team? team,
  5. List<Score>? scores,
  6. Map<String, dynamic>? nbt,
  7. String? strNbt,
  8. EntityType? type,
  9. String? predicate,
  10. Area? area,
  11. Range? distance,
  12. Range? level,
  13. Gamemode? gamemode,
  14. String? name,
  15. Rotation? isRotated,
  16. Range? horizontalRotation,
  17. Range? verticalRotation,
  18. 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,
  );
}