NpcStream

class NpcStream(dataSource: BackingDataSource<Npc>) : ActorStream<INpc, Npc, NpcStream> , ActionableOps<Npc, NpcStream> , IdentifiableOps<Npc, NpcStream>

Functions

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

{@inheritDoc}

any
Link copied to clipboard
fun any(): Npc

Get any entity from the stream

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

first
Link copied to clipboard
fun first(): Npc

Get the first entity from the stream

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

Get the first entity from the stream

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

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): NpcStream
id
Link copied to clipboard
open fun id(vararg ids: Int): NpcStream
interactingIndex
Link copied to clipboard
fun interactingIndex(vararg idxs: Int): NpcStream
interactingWithMe
Link copied to clipboard
fun interactingWithMe(): NpcStream
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<Npc>
last
Link copied to clipboard
fun last(): Npc

Get the last entity from the stream

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

Get the last entity from the stream

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

{@inheritDoc}

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

{@inheritDoc}

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

nil value of the entity

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

{@inheritDoc}

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

{@inheritDoc}

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

Properties

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