not method

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

With the not function you can negate specific arguments. It takes in the same options as Entity().

Example:

Say(Entity().not(tags:['mytag'],nbt:{'istrue':1}))
⇒ say @e[tag=!mytag,nbt=!{'istrue':1}]

Implementation

Entity not({
  int? limit,
  List<dynamic>? 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,
  String? predicate,
}) {
  _setArguments(
    limit,
    tags,
    team,
    scores,
    nbt,
    strNbt,
    type,
    area,
    distance,
    level,
    gamemode,
    name,
    isRotated,
    horizontalRotation,
    verticalRotation,
    predicate,
    true,
  );
  return this;
}