Chat

The chat extended info block, responsible for any public messages.

Parameters

encoders

the array of client-specific encoders for chat.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

Whether this avatar is using the built-in autotyper mechanic.

Link copied to clipboard

The colour to apply to this chat message.

Link copied to clipboard

The effect to apply to this chat message.

Link copied to clipboard
Link copied to clipboard

The mod icon to render next to the name of the avatar who said this message.

Link copied to clipboard

The colour pattern for specialized chat message colours,

Link copied to clipboard
var text: String?

The text itself to render. This will be compressed using the net.rsprot.compression.HuffmanCodec.

Functions

Link copied to clipboard
open override 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): PrecomputedExtendedInfoEncoder<Chat>?

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.