TopLeft

class TopLeft(baseOffset: Vector2ic = CHEST_OFFSET, extraOffset: Vector2ic = Vector2i(0, 0)) : GuiTextureAlignment

Aligns the gui texture to the top left corner of the menu, using baseOffset based on the menu type and extraOffset for an additional custom offset.

Constructors

Link copied to clipboard
constructor(baseOffset: Vector2ic = CHEST_OFFSET, extraX: Int = 0, extraY: Int = 0)
constructor(baseOffset: Vector2ic = CHEST_OFFSET, extraOffset: Vector2ic = Vector2i(0, 0))

Functions

Link copied to clipboard
open override fun getOffset(width: Int, height: Int): Vector2ic

Returns the offset based on the width and height of the gui texture.