not method
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;
}