NpcInfoSupplier

class NpcInfoSupplier @JvmOverloads constructor(val npcAvatarExceptionHandler: NpcAvatarExceptionHandler = NpcAvatarExceptionHandler { index, exception -> logger.error(exception) { "Exception in processing npc avatar for npc $index" } }, val npcExtendedInfoFilter: ExtendedInfoFilter = DefaultExtendedInfoFilter(), val npcInfoProtocolWorker: ProtocolWorker = DefaultProtocolWorker())

The supplier for NPC info protocol, allowing the construction of the protocol and its correct use.

Constructors

Link copied to clipboard
constructor(npcAvatarExceptionHandler: NpcAvatarExceptionHandler = NpcAvatarExceptionHandler { index, exception -> logger.error(exception) { "Exception in processing npc avatar for npc $index" } }, npcExtendedInfoFilter: ExtendedInfoFilter = DefaultExtendedInfoFilter(), npcInfoProtocolWorker: ProtocolWorker = DefaultProtocolWorker())

Properties

Link copied to clipboard
val npcAvatarExceptionHandler: NpcAvatarExceptionHandler

the exception handler for NPC avatars, catching any exceptions that happen during pre-computations of NPC avatar blocks.

Link copied to clipboard
val npcExtendedInfoFilter: ExtendedInfoFilter

the filter for NPC extended info blocks, responsible for ensuring that the NPC info packet never exceeds the 40 kilobyte limit.

Link copied to clipboard
val npcInfoProtocolWorker: ProtocolWorker

the worker behind the NPC info protocol, responsible for executing the underlying tasks, either on a single thread or a thread pool.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String