Skip to content

API reference / @jsprismarine/protocol / SkinAnimation

Class: SkinAnimation ​

Defined in: protocol/src/bedrock/wire/structures/skin/SkinAnimation.ts:4

One animated image included in a serialized player skin.

Constructors ​

Constructor ​

new SkinAnimation(__namedParameters): SkinAnimation

Defined in: protocol/src/bedrock/wire/structures/skin/SkinAnimation.ts:10

Parameters ​

__namedParameters ​
expression ​

number

frames ​

number

image ​

SkinImage

type ​

number

Returns ​

SkinAnimation

Methods ​

getExpression() ​

getExpression(): number

Defined in: protocol/src/bedrock/wire/structures/skin/SkinAnimation.ts:43

Returns the animation expression selector.

Returns ​

number


getFrames() ​

getFrames(): number

Defined in: protocol/src/bedrock/wire/structures/skin/SkinAnimation.ts:33

Returns the animation's frame count.

Returns ​

number


getImage() ​

getImage(): SkinImage

Defined in: protocol/src/bedrock/wire/structures/skin/SkinAnimation.ts:28

Returns the image frames for this animation.

Returns ​

SkinImage


getType() ​

getType(): number

Defined in: protocol/src/bedrock/wire/structures/skin/SkinAnimation.ts:38

Returns the protocol animation type.

Returns ​

number