Module net.botwithus.rs3
Class ItemQuery<T extends ItemQuery<T>>
java.lang.Object
net.botwithus.rs3.game.queries.builders.ItemQuery<T>
- All Implemented Interfaces:
BiPredicate<MemoryLayoutPREVIEW,
,MemorySegmentPREVIEW> QueryBuilderPREVIEW
- Direct Known Subclasses:
GroundItemQuery
,InventoryItemQuery
public abstract sealed class ItemQuery<T extends ItemQuery<T>>
extends Object
implements QueryBuilderPREVIEW
permits GroundItemQuery, InventoryItemQuery
ItemQuery
relies on preview features of the Java platform:
ItemQuery
refers to one or more preview APIs:MemoryLayout
,MemorySegment
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Field Summary
Fields inherited from interface net.botwithus.rs3.game.queries.builders.QueryBuilderPREVIEW
DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionand
(@NotNull BiPredicate<? super MemoryLayoutPREVIEW, ? super MemorySegmentPREVIEW> other) categories
(int... cats) category
(int category) cost
(long price) equipmentSlot
(byte equipmentSlot) grandExchangeBuyLimit
(int geBuyLimit) ids
(int... itemIds) isStackable
(boolean isStackable) <T extends QueryBuilderPREVIEW>
Tmark()
membersOnly
(boolean members) name
(String name, BiFunction<String, CharSequence, Boolean> spred) negate()
neverStacks
(boolean neverStackable) option
(String option, BiFunction<String, CharSequence, Boolean> spred) or
(@NotNull BiPredicate<? super MemoryLayoutPREVIEW, ? super MemorySegmentPREVIEW> other) <T extends QueryBuilderPREVIEW>
Treset()
boolean
test
(MemoryLayoutPREVIEW layout, MemorySegmentPREVIEW segment)
-
Constructor Details
-
ItemQuery
public ItemQuery()
-
-
Method Details
-
name
-
ids
-
name
-
name
-
name
-
option
-
option
-
option
-
option
-
option
-
isStackable
-
cost
-
equipmentSlot
-
membersOnly
-
name
-
name
-
grandExchangeBuyLimit
-
category
-
categories
-
neverStacks
-
and
@NotNull public T and(@NotNull @NotNull BiPredicate<? super MemoryLayoutPREVIEW, ? super MemorySegmentPREVIEW> other) - Specified by:
and
in interfaceBiPredicate<MemoryLayoutPREVIEW,
MemorySegmentPREVIEW>
-
negate
- Specified by:
negate
in interfaceBiPredicate<MemoryLayoutPREVIEW,
MemorySegmentPREVIEW>
-
or
@NotNull public T or(@NotNull @NotNull BiPredicate<? super MemoryLayoutPREVIEW, ? super MemorySegmentPREVIEW> other) - Specified by:
or
in interfaceBiPredicate<MemoryLayoutPREVIEW,
MemorySegmentPREVIEW>
-
reset
- Specified by:
reset
in interfaceQueryBuilderPREVIEW
-
mark
- Specified by:
mark
in interfaceQueryBuilderPREVIEW
-
test
- Specified by:
test
in interfaceBiPredicate<MemoryLayoutPREVIEW,
MemorySegmentPREVIEW>
-
ItemQuery
when preview features are enabled.