AvatarExtendedInfoWriter

abstract class AvatarExtendedInfoWriter<E, B>(val oldSchoolClientType: OldSchoolClientType, val encoders: E)

A base class for client-specific extended info writers.

Parameters

oldSchoolClientType

the client for which the encoders are created.

encoders

the set of extended info encoders for the given oldSchoolClientType.

Constructors

Link copied to clipboard
constructor(oldSchoolClientType: OldSchoolClientType, encoders: E)

Properties

Link copied to clipboard
val encoders: E
Link copied to clipboard
val oldSchoolClientType: OldSchoolClientType

Functions

Link copied to clipboard
abstract fun pExtendedInfo(buffer: JagByteBuf, localIndex: Int, observerIndex: Int, flag: Int, blocks: B)

Main function to write all the extended info blocks over. The extended info blocks must be in the exact order as they are read within the client, and this function is responsible for converting library-specific-constants to client-specific-flags.