ActorStream

abstract class ActorStream<I : IActor, T : Actor<I>, S : SimpleStream<T, S>>(dataSource: BackingDataSource<T>) : InteractableStream<T, S> , LocatableOps<T, S> , NameableOps<T, S>

Functions

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

{@inheritDoc}

any
Link copied to clipboard
fun any(): T

Get any entity from the stream

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

{@inheritDoc}

at
Link copied to clipboard
open fun at(l: Locatable): S
contains
Link copied to clipboard
fun contains(vararg t: T): Boolean
fun contains(t: Collection<T>): Boolean

Check if the stream contains any of the provided entities

count
Link copied to clipboard
open override fun count(): Long

{@inheritDoc}

filter
Link copied to clipboard
open override fun filter(predicate: Predicate<in T>): S
open override fun filter(predicate: Predicate<in T>, difficulty: FilterDifficulty): S

{@inheritDoc}

filtered
Link copied to clipboard
open override fun filtered(predicate: (T) -> Boolean): S
open override fun filtered(predicate: (T) -> Boolean, difficulty: FilterDifficulty): S

{@inheritDoc}

findAny
Link copied to clipboard
open override fun findAny(): Optional<T>

{@inheritDoc}

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

{@inheritDoc}

first
Link copied to clipboard
fun first(): T

Get the first entity from the stream

firstOrNull
Link copied to clipboard
fun firstOrNull(): T?

Get the first entity from the stream

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

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): S
interactingIndex
Link copied to clipboard
fun interactingIndex(vararg idxs: Int): S
interactingWithMe
Link copied to clipboard
fun interactingWithMe(): S
isEmpty
Link copied to clipboard
fun isEmpty(): Boolean

Check if the stream is empty or not

isNotEmpty
Link copied to clipboard
fun isNotEmpty(): Boolean

Check if the stream is NOT empty or not

iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<T>
last
Link copied to clipboard
fun last(): T

Get the last entity from the stream

lastOrNull
Link copied to clipboard
fun lastOrNull(): T?

Get the last entity from the stream

list
Link copied to clipboard
fun list(): List<T>
max
Link copied to clipboard
open override fun max(comparator: Comparator<in T>): Optional<T>

{@inheritDoc}

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

{@inheritDoc}

name
Link copied to clipboard
open fun name(vararg names: Pattern?): S
open fun name(vararg names: String?): S
nearest
Link copied to clipboard
open fun nearest(): S
open fun nearest(locatable: Locatable): S
nil
Link copied to clipboard
abstract fun nil(): T

nil value of the entity

noneMatch
Link copied to clipboard
open override fun noneMatch(predicate: Predicate<in T>): Boolean

{@inheritDoc}

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

{@inheritDoc}

spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<T>
viewable
Link copied to clipboard
open fun viewable(): S
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

Properties

backingDataSource
Link copied to clipboard
val backingDataSource: BackingDataSource<T>
nearestTo
Link copied to clipboard
var nearestTo: Locatable?
pendingFilters
Link copied to clipboard
val pendingFilters: MutableList<PendingFilter<T>>
sorters
Link copied to clipboard
var sorters: MutableList<Comparator<in T>>

Inheritors

NpcStream
Link copied to clipboard
PlayerStream
Link copied to clipboard