Entity.Marker constructor

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

Implementation

Entity.Marker({
  Range? distance,
  List<dynamic>? tags,
  Team? team,
  String? strNbt,
  Map<String, dynamic>? nbt,
  Map<String, dynamic>? data,
  List<Score>? scores,
  Range? level,
  Gamemode? gamemode,
  Area? area,
  String? name,
  Rotation? isRotated,
  Range? horizontalRotation,
  Range? verticalRotation,
  String? predicate,
}) : selector = 'e' {
  _setArguments(
    null,
    tags,
    team,
    scores,
    nbt != null || data != null
        ? {
            ...nbt ?? {},
            if (data != null) ...{'data': data}
          }
        : null,
    strNbt,
    Entities.marker,
    area,
    distance,
    level,
    gamemode,
    name,
    isRotated,
    horizontalRotation,
    verticalRotation,
    predicate,
    false,
  );
}