LocatableOps

interface LocatableOps<T : Locatable, S : SimpleStream<T, S>> : WrappedStream<T, S>

Functions

allMatch
Link copied to clipboard
abstract fun allMatch(predicate: Predicate<in T>): Boolean

{@inheritDoc}

anyMatch
Link copied to clipboard
abstract fun anyMatch(predicate: Predicate<in T>): Boolean

{@inheritDoc}

at
Link copied to clipboard
open fun at(l: Locatable): S
count
Link copied to clipboard
abstract fun count(): Long

{@inheritDoc}

filter
Link copied to clipboard
abstract fun filter(predicate: Predicate<in T>): S
abstract fun filter(predicate: Predicate<in T>, difficulty: FilterDifficulty): S
filtered
Link copied to clipboard
abstract fun filtered(predicate: (T) -> Boolean): S
abstract fun filtered(predicate: (T) -> Boolean, difficulty: FilterDifficulty): S
findAny
Link copied to clipboard
abstract fun findAny(): Optional<T>

{@inheritDoc}

findFirst
Link copied to clipboard
abstract fun findFirst(): Optional<T>

{@inheritDoc}

forEach
Link copied to clipboard
abstract fun forEach(action: Consumer<in T>)

{@inheritDoc}

max
Link copied to clipboard
abstract fun max(comparator: Comparator<in T>): Optional<T>

{@inheritDoc}

min
Link copied to clipboard
abstract fun min(comparator: Comparator<in T>): Optional<T>

{@inheritDoc}

nearest
Link copied to clipboard
open fun nearest(): S
open fun nearest(locatable: Locatable): S
noneMatch
Link copied to clipboard
abstract fun noneMatch(predicate: Predicate<in T>): Boolean

{@inheritDoc}

reachable
Link copied to clipboard
open fun reachable(): S
setNearestTo
Link copied to clipboard
abstract fun setNearestTo(nearestTo: Locatable): S
sorted
Link copied to clipboard
abstract fun sorted(comparator: Comparator<in T>): S

{@inheritDoc}

within
Link copied to clipboard
open fun within(radius: Double): S
open fun within(area: Area): S
open fun within(locatable: Locatable, radius: Double): S

Inheritors

LocatableStream
Link copied to clipboard
ProjectileStream
Link copied to clipboard
ActorStream
Link copied to clipboard
GameObjectStream
Link copied to clipboard
GroundItemStream
Link copied to clipboard