Checks whether the state for the specified type is in the specified set.
an StateSet
an StateType
true if type is the state type is in this.
true
type