Package org.rspeer.game.query.component
Class WorldQuery
- java.lang.Object
-
- org.rspeer.game.query.Query<World,WorldQuery,WorldQueryResults>
-
- org.rspeer.game.query.component.WorldQuery
-
- All Implemented Interfaces:
Cloneable,Predicate<World>,SelfTyped<WorldQuery>,Identifiable.Query<WorldQuery>
public class WorldQuery extends Query<World,WorldQuery,WorldQueryResults> implements Identifiable.Query<WorldQuery>
-
-
Constructor Summary
Constructors Constructor Description WorldQuery(Supplier<List<World>> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorldQueryactivity(Predicate<String> activity)WorldQuerycurrent(boolean current)WorldQueryflags(Predicate<EnumSet<World.Flag>> flags)Supplier<List<World>>getDefaultProvider()WorldQueryids(int... ids)WorldQuerylocale(World.Location... location)WorldQueryself()booleantest(World world)
-
-
-
Method Detail
-
getDefaultProvider
public Supplier<List<World>> getDefaultProvider()
- Specified by:
getDefaultProviderin classQuery<World,WorldQuery,WorldQueryResults>
-
flags
public WorldQuery flags(Predicate<EnumSet<World.Flag>> flags)
-
ids
public WorldQuery ids(int... ids)
- Specified by:
idsin interfaceIdentifiable.Query<WorldQuery>
-
locale
public WorldQuery locale(World.Location... location)
-
current
public WorldQuery current(boolean current)
-
activity
public WorldQuery activity(Predicate<String> activity)
-
test
public boolean test(World world)
- Specified by:
testin interfacePredicate<World>- Overrides:
testin classQuery<World,WorldQuery,WorldQueryResults>
-
self
public WorldQuery self()
- Specified by:
selfin interfaceSelfTyped<WorldQuery>
-
-