Class HintArrowQueryResults
- java.lang.Object
-
- com.runemate.game.api.hybrid.queries.results.QueryResults<HintArrow,HintArrowQueryResults>
-
- com.runemate.game.api.hybrid.queries.results.HintArrowQueryResults
-
public class HintArrowQueryResults extends QueryResults<HintArrow,HintArrowQueryResults>
-
-
Constructor Summary
Constructors Constructor Description HintArrowQueryResults(java.util.Collection<? extends HintArrow> results)
HintArrowQueryResults(java.util.Collection<? extends HintArrow> results, java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable HintArrow
furthest()
Gets the furthest entity to the local player.@Nullable HintArrow
furthestFrom(Locatable locatable)
Gets the furthest entity to the given locatable.@Nullable HintArrow
nearest()
Gets the nearest entity to the local player.@Nullable HintArrow
nearestTo(Locatable locatable)
Gets the nearest entity to the given locatable.HintArrowQueryResults
sortByDistance()
Calls sort(Comparator) with a Comparator that will sort the list by distance from the local player (nearest first)HintArrowQueryResults
sortByDistanceFrom(Locatable center)
Calls sort(Comparator) with a Comparator that will sort the list by distance from the local player (nearest first)HintArrowQueryResults
sortByDistanceFrom(Locatable center, Distance.Algorithm algorithm)
-
Methods inherited from class com.runemate.game.api.hybrid.queries.results.QueryResults
add, addAll, asList, asSet, clear, contains, containsAll, first, get, indexOf, isEmpty, iterator, last, lastIndexOf, limit, limit, listIterator, listIterator, random, remove, removeAll, retainAll, reverse, shuffle, size, sort, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
HintArrowQueryResults
public HintArrowQueryResults(java.util.Collection<? extends HintArrow> results)
-
HintArrowQueryResults
public HintArrowQueryResults(java.util.Collection<? extends HintArrow> results, java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> cache)
-
-
Method Detail
-
sortByDistance
public final HintArrowQueryResults sortByDistance()
Calls sort(Comparator) with a Comparator that will sort the list by distance from the local player (nearest first)
-
sortByDistanceFrom
public final HintArrowQueryResults sortByDistanceFrom(Locatable center)
Calls sort(Comparator) with a Comparator that will sort the list by distance from the local player (nearest first)
-
sortByDistanceFrom
public final HintArrowQueryResults sortByDistanceFrom(Locatable center, Distance.Algorithm algorithm)
-
nearest
@Nullable public final @Nullable HintArrow nearest()
Gets the nearest entity to the local player. If two or more entities are tied for the place of nearest then one will be selected according to the active player sense profile.
-
nearestTo
@Nullable public final @Nullable HintArrow nearestTo(Locatable locatable)
Gets the nearest entity to the given locatable. If two or more entities are tied for the place of nearest then one will be selected according to the active player sense profile.
-
furthest
@Nullable public final @Nullable HintArrow furthest()
Gets the furthest entity to the local player. If two or more entities are tied for the place of furthest then one will be selected according to the active player sense profile.
-
-