Entity.Random constructor

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

creates an entity with @r

Implementation

Entity.Random({
  EntityType? type,
  Range? distance,
  List<dynamic>? tags,
  Team? team,
  String? strNbt,
  Map<String, dynamic>? nbt,
  int? limit,
  List<Score>? scores,
  Range? level,
  Gamemode? gamemode,
  Area? area,
  String? name,
  Rotation? isRotated,
  Range? horizontalRotation,
  Range? verticalRotation,
  String? predicate,
}) : selector = 'r' {
  _setArguments(
    limit,
    tags,
    team,
    scores,
    nbt,
    strNbt,
    type,
    area,
    distance,
    level,
    gamemode,
    name,
    isRotated,
    horizontalRotation,
    verticalRotation,
    predicate,
    false,
  );
}