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 WorldQuery
current(boolean current)
WorldQuery
flags(Predicate<EnumSet<World.Flag>> flags)
Supplier<List<World>>
getDefaultProvider()
WorldQuery
ids(int... ids)
WorldQuery
locale(World.Location... location)
WorldQuery
self()
boolean
test(World world)
-
-
-
Method Detail
-
getDefaultProvider
public Supplier<List<World>> getDefaultProvider()
- Specified by:
getDefaultProvider
in classQuery<World,WorldQuery,WorldQueryResults>
-
flags
public WorldQuery flags(Predicate<EnumSet<World.Flag>> flags)
-
ids
public WorldQuery ids(int... ids)
- Specified by:
ids
in interfaceIdentifiable.Query<WorldQuery>
-
locale
public WorldQuery locale(World.Location... location)
-
current
public WorldQuery current(boolean current)
-
test
public boolean test(World world)
- Specified by:
test
in interfacePredicate<World>
- Overrides:
test
in classQuery<World,WorldQuery,WorldQueryResults>
-
self
public WorldQuery self()
- Specified by:
self
in interfaceSelfTyped<WorldQuery>
-
-