TemporaryMoveSpeed

The temporary move speed is used to set a move speed for a single cycle, commonly done when the player has run enabled through the orb, but decides to only walk a single tile instead. Rather than to switch the main mode over to walking, it utilizes the temporary move speed so the primary one will remain as running after this one cycle, as they are far more likely to utilize the move speed described by their run orb.

Parameters

encoders

the array of client-specific encoders for temporary move speed.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
var value: Int

The movement speed of this avatar for a single cycle.

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<TemporaryMoveSpeed>?

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.