containsTag

public boolean containsTag(String name, TagType type)

Return

true if any of the tags in the compound have a name and tag- type matching those provided. Otherwise false.

Parameters

name

The name of the NBT tag whose presence and type should be checked for. Dot-notation is supported for checking nested tags.

Throws

If the supplied name or type are null.