Npc Info Supplier
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
the exception handler for NPC avatars, catching any exceptions that happen during pre-computations of NPC avatar blocks.
Link copied to clipboard
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
the worker behind the NPC info protocol, responsible for executing the underlying tasks, either on a single thread or a thread pool.