SidebarRenderer

object SidebarRenderer : Listener(source)

A renderer for a sidebar

Functions

Link copied to clipboard
fun dequeue(player: Player, key: UUID)

Dequeues a component with the key ID from the render queue

Link copied to clipboard
fun enqueue(player: Player, component: RenderComponent, priority: RenderPriority): UUID

Enqueues a component to the rendering queue

Link copied to clipboard
fun init()

Initializes a sidebar renderer.

Link copied to clipboard
fun onJoin(e: PlayerJoinEvent)
Link copied to clipboard
fun onLeave(e: PlayerQuitEvent)
Link copied to clipboard
fun tick()

Performs a single render tick, rendering all components currently in queue