BetterHud

interface BetterHud

Represents the main class of BetterHud.

Properties

Link copied to clipboard
val ADVENTURE_VERSION: String = "4.24.0"
Adventure api version.
Link copied to clipboard
val BSTATS_ID_BUKKIT: Int = 21287
BStats id for Bukkit
Link copied to clipboard
val BSTATS_ID_VELOCITY: Int = 23460
BStats id for Velocity
Link copied to clipboard
val DEFAULT_NAMESPACE: String = "betterhud"
Default namespace.
Link copied to clipboard
Examination version.
Link copied to clipboard
val PLATFORM_VERSION: String = "4.4.1"
Adventure platform version.

Functions

Link copied to clipboard
abstract fun addReloadEndTask(@NotNull runnable: @NotNull Consumer<ReloadState>)
Adds some task when reload is ended.
Link copied to clipboard
abstract fun addReloadStartTask(@NotNull runnable: @NotNull Runnable)
Adds some task when reload is started.
Link copied to clipboard
@NotNull
abstract fun bootstrap(): @NotNull BetterHudBootstrap
Gets a bootstrap.
Link copied to clipboard
@NotNull
abstract fun getCompassManager(): @NotNull CompassManager
Gets compass manager.
Link copied to clipboard
@NotNull
abstract fun getConfigManager(): @NotNull ConfigManager
Gets config manager.
Link copied to clipboard
@NotNull
abstract fun getDatabaseManager(): @NotNull DatabaseManager
Gets database manager.
Link copied to clipboard
@NotNull
abstract fun getDefaultKey(): @NotNull Key
Returns default font key.
Link copied to clipboard
@NotNull
abstract fun getEncodedNamespace(): @NotNull String
Returns encoded namespace.
Link copied to clipboard
@NotNull
abstract fun getHudManager(): @NotNull HudManager
Gets hud manager.
Link copied to clipboard
@NotNull
open fun getInstance(): @NotNull BetterHud
Supports legacy api.
Link copied to clipboard
@NotNull
abstract fun getListenerManager(): @NotNull ListenerManager
Gets listener manager.
Link copied to clipboard
@NotNull
abstract fun getPlaceholderManager(): @NotNull PlaceholderManager
Gets placeholder manager.
Link copied to clipboard
@NotNull
abstract fun getPlayerManager(): @NotNull PlayerManager
Gets player manager.
Link copied to clipboard
@NotNull
abstract fun getPopupManager(): @NotNull PopupManager
Gets popup manager.
Link copied to clipboard
@NotNull
abstract fun getShaderManager(): @NotNull ShaderManager
Gets shader manager.
Link copied to clipboard
@NotNull
abstract fun getTextManager(): @NotNull TextManager
Gets text manager.
Link copied to clipboard
@NotNull
abstract fun getTriggerManager(): @NotNull TriggerManager
Gets trigger manager.
Link copied to clipboard
abstract fun getWidth(codepoint: Int): Int
Gets the width of default font's char
Link copied to clipboard
abstract fun isDevVersion(): Boolean
Checks whether this build is a dev version.
Link copied to clipboard
abstract fun isMergeBossBar(): Boolean
Returns whether this plugin merges the first bossbar.
Link copied to clipboard
abstract fun isOnReload(): Boolean
Returns this plugin is currently on reload.
Link copied to clipboard
abstract fun loadAssets(@NotNull prefix: @NotNull String, @NotNull dir: @NotNull File)
abstract fun loadAssets(@NotNull prefix: @NotNull String, @NotNull consumer: @NotNull BiConsumer<String, InputStream>)
Loads plugin's resource to some directory
Link copied to clipboard
@NotNull
open fun reload(@NotNull args: Array<@NotNull ReloadFlagType>): @NotNull ReloadState
@NotNull
abstract fun reload(@NotNull info: @NotNull ReloadInfo): @NotNull ReloadState
@NotNull
open fun reload(@NotNull sender: @NotNull BetterCommandSource, @NotNull args: Array<@NotNull ReloadFlagType>): @NotNull ReloadState
Executes reload.
Link copied to clipboard
@Nullable
abstract fun translate(@NotNull locale: @NotNull String, @NotNull key: @NotNull String): @Nullable String
Get a translated result of a key.