DecoratedOffset

class DecoratedOffset(val decorated: Decorated, val offsetX: Int = 0, val offsetY: Int)

A decorated wrapped with rendering position offsets. This is used in several places for the modder to define positional offsets for rendering their decoration in the proper place

Author

fzzyhmstrs

Since

0.6.0

Parameters

decorated
offsetX

horizontal offset in pixels to render the decorated

offsetY

vertical offset in pixels to render this decorated

Constructors

Link copied to clipboard
constructor(decorated: Decorated, offsetX: Int = 0, offsetY: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val offsetX: Int = 0
Link copied to clipboard