Texture

Group
player
Methods
3
Fields
None

Methods

MethodReturnsDescription
getAnimationDirection()numberHow the texture scrolls: 0 not at all, 1 to 4 the four ways it can (1 and 2 up and down, 3 and 4 sideways), from the game cache; fixed for…
getAnimationSpeed()numberHow far the texture scrolls each client cycle, in pixels, from the game cache; fixed for the client's run.
equals(any)booleanWhether other equals this Texture, as == answers it (false for a value of another class).

Returned by

MethodReturnsDescription
TextureProvider.getTextures{ n: number, [number]: Texture? }The client's textures, by id: texture id is at textures[id + 1], nil where the client has no texture at that id, and n holds the leng…

Method details

getAnimationDirection

getAnimationDirection: (Texture) -> number

How the texture scrolls: 0 not at all, 1 to 4 the four ways it can (1 and 2 up and down, 3 and 4 sideways), from the game cache; fixed for the client's run.

getAnimationSpeed

getAnimationSpeed: (Texture) -> number

How far the texture scrolls each client cycle, in pixels, from the game cache; fixed for the client's run.

equals

equals: (Texture, any) -> boolean

Whether other equals this Texture, as == answers it (false for a value of another class).