contains Key
Same as containsTag(...), but true
will be returned if any tag in the compound uses the key
, regardless of the tag's type.
Parameters
key
The string name of the NBT tag whose presence should be checked for. Dot-notation is supported for checking nested tags.
Throws
If the supplied key
is null
.