AvatarSet

inner class AvatarSet : Set<Int>

A Set implementation to provide easy access over all the player avatars observing this NPC. Note that only a single instance per NPC is ever created, meaning this should not be stored for long-term use. The iterator of this set will throw a concurrent modification exception if it is accessed across multiple game cycles.

Furthermore, this set does not preserve iteration order, but it does ensure an ascending order of indices, allowing for potential use of features like Binary Search

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun contains(element: Int): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Int>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in Int>)
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Int>
Link copied to clipboard
Link copied to clipboard
open override fun spliterator(): Spliterator<Int>
Link copied to clipboard
open fun stream(): Stream<Int>
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
open override fun toString(): String