subFilter

public NBTFilter subFilter(FilteredTag base, int depth)

Creates a new filter that contains all tags in the current filter that extend the base tag up to the provided depth. The returned filter will always have the same mode as the current filter.