GuiTextureAlignment

Generates offsets for gui textures.

Inheritors

Types

Link copied to clipboard

The default (top-left) alignment for anvil gui textures.

Link copied to clipboard

The default (top-left) alignment for chest gui textures.

Link copied to clipboard

A horizontally centered alignment for chest gui textures.

Link copied to clipboard
class Custom(offset: Vector2ic) : GuiTextureAlignment

A custom alignment with a fixed offset.

Functions

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

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