Package org.rspeer.game.query.scene
Class PickableQuery
- java.lang.Object
-
- org.rspeer.game.query.Query<T,Q,SceneNodeQueryResults<T>>
-
- org.rspeer.game.query.scene.SceneNodeQuery<Pickable,PickableQuery>
-
- org.rspeer.game.query.scene.PickableQuery
-
- All Implemented Interfaces:
Cloneable
,Predicate<Pickable>
,SelfTyped<PickableQuery>
,SceneNode.Query<SceneNodeQuery<Pickable,PickableQuery>>
public class PickableQuery extends SceneNodeQuery<Pickable,PickableQuery>
-
-
Constructor Summary
Constructors Constructor Description PickableQuery(Supplier<List<Pickable>> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PickableQuery
actions(String... actions)
PickableQuery
amount(int minInclusive)
PickableQuery
amount(int minInclusive, int maxInclusive)
PickableQuery
category(ItemCategory... categories)
Supplier<List<Pickable>>
getDefaultProvider()
PickableQuery
ids(int... ids)
PickableQuery
nameContains(String... names)
PickableQuery
names(String... names)
PickableQuery
nonstackable()
PickableQuery
noted()
PickableQuery
on(Position... positions)
PickableQuery
self()
PickableQuery
stackable()
boolean
test(Pickable item)
PickableQuery
unnoted()
-
Methods inherited from class org.rspeer.game.query.scene.SceneNodeQuery
distanceEvaluator, nonInstanced, positionInteractable, reachable, within, within, within
-
-
-
-
Method Detail
-
nameContains
public PickableQuery nameContains(String... names)
-
actions
public PickableQuery actions(String... actions)
-
stackable
public PickableQuery stackable()
-
nonstackable
public PickableQuery nonstackable()
-
noted
public PickableQuery noted()
-
unnoted
public PickableQuery unnoted()
-
amount
public PickableQuery amount(int minInclusive)
-
amount
public PickableQuery amount(int minInclusive, int maxInclusive)
-
on
public PickableQuery on(Position... positions)
- Specified by:
on
in interfaceSceneNode.Query<SceneNodeQuery<Pickable,PickableQuery>>
- Overrides:
on
in classSceneNodeQuery<Pickable,PickableQuery>
-
names
public PickableQuery names(String... names)
-
ids
public PickableQuery ids(int... ids)
-
category
public PickableQuery category(ItemCategory... categories)
-
getDefaultProvider
public Supplier<List<Pickable>> getDefaultProvider()
- Specified by:
getDefaultProvider
in classQuery<Pickable,PickableQuery,SceneNodeQueryResults<Pickable>>
-
self
public PickableQuery self()
-
test
public boolean test(Pickable item)
- Specified by:
test
in interfacePredicate<Pickable>
- Overrides:
test
in classSceneNodeQuery<Pickable,PickableQuery>
-
-