Package org.rspeer.game.query.component
Class ComponentQuery
- java.lang.Object
-
- org.rspeer.game.query.Query<InterfaceComponent,ComponentQuery,ComponentQueryResults>
-
- org.rspeer.game.query.component.ComponentQuery
-
- All Implemented Interfaces:
Cloneable
,Predicate<InterfaceComponent>
,SelfTyped<ComponentQuery>
public class ComponentQuery extends Query<InterfaceComponent,ComponentQuery,ComponentQueryResults>
-
-
Constructor Summary
Constructors Constructor Description ComponentQuery()
ComponentQuery(boolean includeSubComponents)
ComponentQuery(Supplier<List<InterfaceComponent>> provider)
-
Method Summary
-
-
-
Constructor Detail
-
ComponentQuery
public ComponentQuery(Supplier<List<InterfaceComponent>> provider)
-
ComponentQuery
public ComponentQuery(boolean includeSubComponents)
-
ComponentQuery
public ComponentQuery()
-
-
Method Detail
-
self
public ComponentQuery self()
-
getDefaultProvider
public Supplier<List<InterfaceComponent>> getDefaultProvider()
- Specified by:
getDefaultProvider
in classQuery<InterfaceComponent,ComponentQuery,ComponentQueryResults>
-
groups
public ComponentQuery groups(int... groups)
-
groups
public ComponentQuery groups(InterfaceComposite... groups)
-
texts
public ComponentQuery texts(Predicate<String> text)
-
tooltips
public ComponentQuery tooltips(Predicate<String> tooltip)
-
names
public ComponentQuery names(Predicate<String> name)
-
actions
public ComponentQuery actions(Predicate<String> action)
-
actions
public ComponentQuery actions(String... actions)
-
actionContains
public ComponentQuery actionContains(String... actions)
-
widths
public ComponentQuery widths(int... widths)
-
materials
public ComponentQuery materials(int... materials)
-
types
public ComponentQuery types(InterfaceComponent.Type... types)
-
contentTypes
public ComponentQuery contentTypes(int... contentTypes)
-
foregrounds
public ComponentQuery foregrounds(int... foregrounds)
-
models
public ComponentQuery models(int... modelIds)
-
includeSubComponents
public ComponentQuery includeSubComponents()
-
visible
public ComponentQuery visible(boolean visible)
-
shadows
public ComponentQuery shadows(int... shadows)
-
visible
public ComponentQuery visible()
-
configs
public ComponentQuery configs(int... configs)
-
hidden
public ComponentQuery hidden()
-
hidden
public ComponentQuery hidden(boolean hidden)
-
test
public boolean test(InterfaceComponent cmp)
- Specified by:
test
in interfacePredicate<InterfaceComponent>
- Overrides:
test
in classQuery<InterfaceComponent,ComponentQuery,ComponentQueryResults>
-
-