HorizontallyCentered

class HorizontallyCentered(baseOffset: Vector2ic = CHEST_OFFSET, baseWidth: Int = CHEST_WIDTH, yOffset: Int = 0) : GuiTextureAlignment

A horizontally centered alignment for gui textures, using baseOffset based on the menu type and yOffset for an additional vertical offset.

Constructors

Link copied to clipboard
constructor(baseOffset: Vector2ic = CHEST_OFFSET, baseWidth: Int = CHEST_WIDTH, yOffset: Int = 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.