Package-level declarations

Types

Link copied to clipboard
object AsyncCoroutineDispatcher : CoroutineDispatcher
Link copied to clipboard

Thanks to MitchGB for the great tutorial on how to create custom GUIs! https://www.spigotmc.org/threads/custom-inventory-uis-updated.635897/ https://github.com/MitchGB/CustomInventoryUI/tree/main

Link copied to clipboard
Link copied to clipboard
class FileConfig(fileName: String) : YamlConfiguration

Represents a configuration file for storing settings in YAML format.

Link copied to clipboard
object MinecraftCoroutineDispatcher : CoroutineDispatcher
Link copied to clipboard
Link copied to clipboard
data class SoundEffect(val sound: Sound, val volume: Float = 0.4f, val pitch: Float = 1.0f)

Properties

Link copied to clipboard
val Dispatchers.async: CoroutineContext
Link copied to clipboard
Link copied to clipboard
val Dispatchers.mc: CoroutineContext

Functions

Link copied to clipboard
suspend fun <T> mcasync(coroutine: suspend () -> T): T

mcasync guarantees execution away from the server thread. True blocking is OK, mcasync uses an Unbound thread-pool, so it's not an option for CPU bound tasks.

Link copied to clipboard
fun <T> mcasyncBlocking(coroutine: suspend () -> T)
Link copied to clipboard
fun <T> mcroutine(coroutine: suspend () -> T)

mcroutine guarantees execution on the server thread. True blocking is illegal, see mcasync for options.

Link copied to clipboard
fun parsePlaceholders(text: String, player: Player): String