Functions

action
Link copied to clipboard
open fun action(vararg actions: Pattern?): GameObjectStream
open fun action(vararg actions: String?): GameObjectStream
open fun action(actions: Collection<String>): GameObjectStream
allMatch
Link copied to clipboard
open override fun allMatch(predicate: Predicate<in GameObject>): Boolean

{@inheritDoc}

any
Link copied to clipboard
fun any(): GameObject

Get any entity from the stream

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

{@inheritDoc}

at
Link copied to clipboard
open fun at(l: Locatable): GameObjectStream
contains
Link copied to clipboard
fun contains(vararg t: GameObject): Boolean
fun contains(t: Collection<GameObject>): 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 GameObject>): GameObjectStream
open override fun filter(predicate: Predicate<in GameObject>, difficulty: FilterDifficulty): GameObjectStream

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

first
Link copied to clipboard
fun first(): GameObject

Get the first entity from the stream

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

Get the first entity from the stream

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

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): GameObjectStream
id
Link copied to clipboard
open fun id(vararg ids: Int): GameObjectStream
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<GameObject>
last
Link copied to clipboard
fun last(): GameObject

Get the last entity from the stream

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

Get the last entity from the stream

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

{@inheritDoc}

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

{@inheritDoc}

modifiedColor
Link copied to clipboard
fun modifiedColor(vararg ids: Int): GameObjectStream
name
Link copied to clipboard
open fun name(vararg names: Pattern?): GameObjectStream
open fun name(vararg names: String?): GameObjectStream
nearest
Link copied to clipboard
open fun nearest(): GameObjectStream
open fun nearest(locatable: Locatable): GameObjectStream
nil
Link copied to clipboard
open override fun nil(): GameObject

nil value of the entity

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

{@inheritDoc}

originalColor
Link copied to clipboard
fun originalColor(vararg ids: Int): GameObjectStream
reachable
Link copied to clipboard
open fun reachable(): GameObjectStream
reversed
Link copied to clipboard
fun reversed(): List<GameObject>
setNearestTo
Link copied to clipboard
open override fun setNearestTo(nearestTo: Locatable): GameObjectStream
shuffled
Link copied to clipboard
fun shuffled(): List<GameObject>
sorted
Link copied to clipboard
open override fun sorted(comparator: Comparator<in GameObject>): GameObjectStream

{@inheritDoc}

spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<GameObject>
type
Link copied to clipboard
fun type(vararg types: GameObject.Type): GameObjectStream
viewable
Link copied to clipboard
open fun viewable(): GameObjectStream
within
Link copied to clipboard
open fun within(radius: Double): GameObjectStream
open fun within(area: Area): GameObjectStream
open fun within(locatable: Locatable, radius: Double): GameObjectStream

Properties

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