XerrLayoutAPI

Stable layout rendering API exposed by com.hiusers.xerr.api.XerrAPI.

Functions

Link copied to clipboard
abstract fun exists(id: String): Boolean
Link copied to clipboard
abstract fun ids(): Set<String>
Link copied to clipboard
open fun render(player: Player, id: String): ComponentText?
open fun render(player: Player, id: String, variables: Map<String, String>): ComponentText?
abstract fun render(player: Player, id: String, variables: Map<String, String>, applyAnchor: Boolean, renderContext: String): ComponentText?
Link copied to clipboard
open fun renderAsync(player: Player, id: String): CompletableFuture<ComponentText?>
open fun renderAsync(player: Player, id: String, variables: Map<String, String>): CompletableFuture<ComponentText?>
open fun renderAsync(player: Player, id: String, variables: Map<String, String>, renderContext: String): CompletableFuture<ComponentText?>
abstract fun renderAsync(player: Player, id: String, variables: Map<String, String>, renderContext: String, progressRefresh: Int?): CompletableFuture<ComponentText?>
Link copied to clipboard
open fun renderString(player: Player, id: String): String?
open fun renderString(player: Player, id: String, variables: Map<String, String>): String?
abstract fun renderString(player: Player, id: String, variables: Map<String, String>, applyAnchor: Boolean, renderContext: String): String?