Module net.botwithus.rs3
Class EntityQueryBuilder<T extends EntityQueryBuilder<T>>
java.lang.Object
net.botwithus.rs3.game.queries.builders.EntityQueryBuilder<T>
- All Implemented Interfaces:
BiPredicate<MemoryLayoutPREVIEW,
,MemorySegmentPREVIEW> QueryBuilderPREVIEW
- Direct Known Subclasses:
HintArrowQuery
,PathingEntityQuery
,SceneObjectQuery
,SpotAnimationQuery
public abstract sealed class EntityQueryBuilder<T extends EntityQueryBuilder<T>>
extends Object
implements QueryBuilderPREVIEW
permits PathingEntityQuery<T>, SpotAnimationQuery, HintArrowQuery, SceneObjectQuery
EntityQueryBuilder
relies on preview features of the Java platform:
EntityQueryBuilder
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
-
Method Summary
Modifier and TypeMethodDescriptionand
(@NotNull BiPredicate<? super MemoryLayoutPREVIEW, ? super MemorySegmentPREVIEW> other) <T extends QueryBuilderPREVIEW>
Tmark()
Mark the current state of the querynegate()
off
(Coordinate coordinate) on
(Coordinate coordinate) or
(@NotNull BiPredicate<? super MemoryLayoutPREVIEW, ? super MemorySegmentPREVIEW> other) reset()
Reset the query to its marked state or if no mark is present to the default stateboolean
test
(MemoryLayoutPREVIEW memoryLayout, MemorySegmentPREVIEW segment)
-
Method Details
-
on
-
off
-
inside
-
outside
-
isReachable
-
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
Reset the query to its marked state or if no mark is present to the default state- Specified by:
reset
in interfaceQueryBuilderPREVIEW
- Returns:
- the current query
-
mark
Mark the current state of the query- Specified by:
mark
in interfaceQueryBuilderPREVIEW
- Returns:
- the current query
-
test
- Specified by:
test
in interfaceBiPredicate<MemoryLayoutPREVIEW,
MemorySegmentPREVIEW>
-
EntityQueryBuilder
when preview features are enabled.