PlayerStream

class PlayerStream(dataSource: BackingDataSource<Player>) : ActorStream<IPlayer, Player, PlayerStream>

Functions

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

{@inheritDoc}

any
Link copied to clipboard
fun any(): Player

Get any entity from the stream

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

first
Link copied to clipboard
fun first(): Player

Get the first entity from the stream

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

Get the first entity from the stream

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

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): PlayerStream
interactingIndex
Link copied to clipboard
fun interactingIndex(vararg idxs: Int): PlayerStream
interactingWithMe
Link copied to clipboard
fun interactingWithMe(): PlayerStream
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<Player>
last
Link copied to clipboard
fun last(): Player

Get the last entity from the stream

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

Get the last entity from the stream

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

{@inheritDoc}

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

{@inheritDoc}

name
Link copied to clipboard
open fun name(vararg names: Pattern?): PlayerStream
open fun name(vararg names: String?): PlayerStream
nearest
Link copied to clipboard
open fun nearest(): PlayerStream
open fun nearest(locatable: Locatable): PlayerStream
nil
Link copied to clipboard
open override fun nil(): Player

nil value of the entity

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

{@inheritDoc}

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

{@inheritDoc}

spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<Player>
viewable
Link copied to clipboard
open fun viewable(): PlayerStream
within
Link copied to clipboard
open fun within(radius: Double): PlayerStream
open fun within(area: Area): PlayerStream
open fun within(locatable: Locatable, radius: Double): PlayerStream

Properties

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