CachedExtendedInfo

Extended info blocks which get cached by the client, meaning if an avatar goes from low resolution to high resolution, and the client has a cached buffer of them, unless the server writes a new variant (in the case of a de-synchronization), the client will use the old buffer to restore that block.

Parameters

T

the extended info block

E

the encoder for that extended info block

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val encoders: ClientTypeMap<E>

Functions

Link copied to clipboard
abstract fun clear()

Clears this extended info block, making it ready for use by another avatar.

Link copied to clipboard
fun getBuffer(oldSchoolClientType: OldSchoolClientType): ByteBuf?

Gets the latest pre-computed buffer for the given oldSchoolClientType.

Link copied to clipboard
fun getEncoder(oldSchoolClientType: OldSchoolClientType): E?

Gets the encoder for a given oldSchoolClientType.

Link copied to clipboard
fun isPrecomputed(oldSchoolClientType: OldSchoolClientType): Boolean

Checks whether a buffer has been precomputed on the specified client type.

Link copied to clipboard
fun setBuffer(clientTypeId: Int, buffer: ByteBuf)

Sets the client-specific buffer at index clientTypeId.