/** * Creates an filter where an entity must possess one of the specified component types. * * @param type one of the types the entity must possess * @param types one of the types the entity must possess * @return an filter that can be matched against entities */ public static Aspect getAspectForOne(Class<? extends Component> type, Class<? extends Component>... types) { Aspect filter = new Aspect(); filter.one(type, types); return filter; }