/** Returns whether a specific type is in the set of types. */ public boolean hasType(int type) { return types.contains(type); }