InteractableStream

abstract class InteractableStream<T : Interactable, S : SimpleStream<T, S>>(dataSource: BackingDataSource<T>) : SimpleStream<T, S> , ViewableOps<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}

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
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}

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}

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

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

ItemStream
Link copied to clipboard
ActorStream
Link copied to clipboard
GameObjectStream
Link copied to clipboard
GroundItemStream
Link copied to clipboard
ComponentStream
Link copied to clipboard