Package-level declarations

Types

Link copied to clipboard
fun interface ComponentDeserializer : Function1<String, Component>
Link copied to clipboard
class LoadedFileYaml(val file: File, val name: String, val yaml: YamlObject) : LoadedYaml
Link copied to clipboard
class LoadedOtherYaml(val name: String, val yaml: YamlObject) : LoadedYaml
Link copied to clipboard
interface LoadedYaml
Link copied to clipboard
class OverridableSet<K, V>(keyMapper: (V) -> K, mapCreator: () -> MutableMap<K, V> = { HashMap() }) : MutableSet<V>
Link copied to clipboard
fun interface Runner<T> : Function0<T>
Link copied to clipboard
class TickProvider<S, T>(tick: Long, source: (S, Long) -> T) : Function1<S, (Long) -> T>
Link copied to clipboard
class ValueViewer<K, V> : Function1<K, V?>

Properties

Link copied to clipboard
Link copied to clipboard
val CONSOLE: @NotNull Audience
Link copied to clipboard
Link copied to clipboard
val DATA_FOLDER: @NotNull File
Link copied to clipboard
val DEFAULT_KEY: @NotNull Key
Link copied to clipboard
val DEFAULT_TEXT_DECORATION: Map<TextDecoration, TextDecoration.State>
Link copied to clipboard
val EMPTY_COMPONENT: Component
Link copied to clipboard
val GSON: Gson
Link copied to clipboard
const val HUD_ADD_HEIGHT: Int
Link copied to clipboard
const val HUD_DEFAULT_BIT: Int = 13
Link copied to clipboard
const val HUD_MAX_BIT: Int
Link copied to clipboard
val LEGACY_AMPERSAND_SERIALIZER: @NotNull LegacyComponentSerializer
Link copied to clipboard
Link copied to clipboard
const val LEGACY_CENTER_SPACE_CODEPOINT: Int = 1047552
Link copied to clipboard
Link copied to clipboard
val LEGACY_SECTION_SERIALIZER: @NotNull LegacyComponentSerializer
Link copied to clipboard
val LEGACY_SPACE_KEY: @NotNull Key
Link copied to clipboard
const val NAME_SPACE: String
Link copied to clipboard
Link copied to clipboard
val PLUGIN: @NotNull BetterHud
Link copied to clipboard
val SPACE_KEY: @NotNull Key
Link copied to clipboard
const val TEXT_IMAGE_START_CODEPOINT: Int = 786432
Link copied to clipboard
const val TEXT_SPACE_KEY_CODEPOINT: Int = 786432
Link copied to clipboard
val HudPlayer.textures: @NotNull String
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
infix fun PixelComponent.applyColor(color: TextColor?): PixelComponent
infix fun WidthComponent.applyColor(color: TextColor?): WidthComponent
Link copied to clipboard
fun asyncTask(block: () -> Unit): @NotNull HudTask
Link copied to clipboard
fun asyncTaskTimer(delay: Long, period: Long, block: () -> Unit): @NotNull HudTask
Link copied to clipboard
fun buildJsonArray(capacity: Int = 10, block: JsonArray.() -> Unit): JsonArray
Link copied to clipboard
fun buildJsonObject(block: JsonObject.() -> Unit): JsonObject
Link copied to clipboard
fun LoadedImage.circleCut(degree: Double, reversed: Boolean = false): LoadedImage?
Link copied to clipboard
fun createAdventureKey(value: String): @NotNull Key
Link copied to clipboard
fun createAscent(shader: HudShader, y: Int, consumer: (Int) -> Unit)
Link copied to clipboard
fun debug(level: ConfigManager.DebugLevel, vararg message: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun File.forEach(block: (File) -> Unit)
Link copied to clipboard
fun File.forEachAllFolder(block: (File) -> Unit)
Link copied to clipboard
fun File.forEachAllYaml(sender: Audience, block: (File, String, YamlObject) -> Unit)
Link copied to clipboard
fun <T> Collection<T>.forEachAsync(block: (T) -> Unit)
fun <T> List<T>.forEachAsync(block: (T) -> Unit)
fun <T> List<T>.forEachAsync(multiplier: (Int) -> Int, block: (T) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun head(group: HudLayout.Identifier, creator: () -> String): String
Link copied to clipboard
Link copied to clipboard
fun File.ifNotExist(messageCreator: File.() -> String): File
fun File.ifNotExist(message: String): File
Link copied to clipboard
fun <T> T?.ifNull(message: String): T & Any
Link copied to clipboard
Link copied to clipboard
fun info(vararg message: String)
Link copied to clipboard
fun Audience.info(message: String)
fun Audience.info(message: Component)
Link copied to clipboard
fun jsonArrayOf(vararg element: Any): JsonArray
Link copied to clipboard
fun jsonObjectOf(vararg element: Pair<String, Any>): JsonObject
Link copied to clipboard
Link copied to clipboard
fun File.mapAllYaml(sender: Audience): List<LoadedFileYaml>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun parseJson(reader: Reader): JsonElement
fun parseJson(string: String): JsonElement
Link copied to clipboard
operator fun JsonArray.plusAssign(other: JsonElement)
Link copied to clipboard
fun <V : HudConfiguration> MutableMap<String, V>.putSync(name: String, v: () -> V)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <S> runByTick(tick: Long, frameSupplier: () -> Long, supplier: (Long) -> S): Runner<S>
fun <S> runByTick(tick: Long, frameSupplier: () -> Long, supplier: Runner<S>): Runner<S>
Link copied to clipboard
fun <R> runWithExceptionHandling(sender: Audience, message: String, block: () -> R): Result<R>
Link copied to clipboard
fun <T, R> T.runWithExceptionHandling(sender: Audience, message: String, block: T.() -> R): Result<R>
Link copied to clipboard
fun JsonElement.save(file: File)
fun RenderedImage.save(outputStream: OutputStream)
Link copied to clipboard
Link copied to clipboard
fun <T> List<T>.split(splitSize: Int): List<List<T>>
fun Component.split(endWidth: Int, space: Int, charWidth: (Pair<Style, Int>) -> Int?): List<WidthComponent>
Link copied to clipboard
fun File.subFile(name: String): File
Link copied to clipboard
Link copied to clipboard
fun <T> List<List<T>>.sum(): List<T>
Link copied to clipboard
fun task(block: () -> Unit): @NotNull HudTask
fun task(location: LocationWrapper, block: () -> Unit): @NotNull HudTask
Link copied to clipboard
fun taskLater(delay: Long, block: () -> Unit): @NotNull HudTask
Link copied to clipboard
Link copied to clipboard
fun <S, T> tickProvide(source: T): TickProvider<S, T>
fun <S, T> tickProvide(tick: Long, source: (S, Long) -> T): TickProvider<S, T>
Link copied to clipboard
operator fun TextColor.times(other: TextColor): TextColor
Link copied to clipboard
fun String.toBase64Json(): JsonElement
Link copied to clipboard
fun JsonElement.toBase64String(): String
Link copied to clipboard
Link copied to clipboard
fun String.toComponent(): @NotNull Component
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Any.toJsonElement(): JsonElement
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun String.toTextColor(): @Nullable TextColor?
Link copied to clipboard
Link copied to clipboard
fun warn(vararg message: String)
Link copied to clipboard
fun Audience.warn(message: String)
fun Audience.warn(message: Component)
Link copied to clipboard