Package-level declarations

Types

Link copied to clipboard
class DoubleBuffer<T>(front: T, back: T)
Link copied to clipboard
Link copied to clipboard
class LruCache<K, V>(maxSize: Int) : LinkedHashMap<K, V>
Link copied to clipboard
Link copied to clipboard
class PriorityField<T>(value: T, currentPriority: Priority)

Returns the value of the set operation with the highest priority

Link copied to clipboard

Properties

Link copied to clipboard
val Dispatchers.Minecraft: CoroutineDispatcher
Link copied to clipboard
val MinecraftDispatcher: CoroutineDispatcher

Functions

Link copied to clipboard
infix inline operator fun IntRange.contains(range: IntRange): Boolean
Link copied to clipboard
inline fun <T, C : Collection<T>> C.forEachWithSelf(action: (T, index: Int, self: C) -> Unit)

A JavaScript-styled forEach

Link copied to clipboard
inline operator fun <T> ThreadLocal<T>.getValue(receiver: Any?, property: KProperty<*>): T
Link copied to clipboard
inline fun <K : Any, V : Any> Map<K, V>.immutableCopy(): Map<K, V>
Link copied to clipboard

Check if the class is not the root class.

Link copied to clipboard
inline suspend fun Array<out Job>.joinAll()
Link copied to clipboard
inline fun String.mapString(transform: (Char) -> Char): String

Transform a String to another String with same length by given transform

inline fun <T> Collection<T>.mapString(transform: (T) -> Char): String

Transform a Collection to a String with by given transform

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <K, V> memorizingFunction(map: MutableMap<K, V>, mappingFunction: Function<K, V>): Function<K, V>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> optional(): Optional<T>
inline fun <T : Any> optional(value: T?): Optional<T>
inline fun optional(value: Double): OptionalDouble
inline fun <T : Any> optional(block: () -> T?): Optional<T>
inline fun optional(value: Int): OptionalInt
inline fun optional(value: Long): OptionalLong
Link copied to clipboard
inline fun range(iterable1: DoubleIterable, iterable2: DoubleIterable, operation: (Double, Double) -> Unit)
inline fun range(iterable1: DoubleIterable, iterable2: DoubleIterable, iterable3: DoubleIterable, operation: (Double, Double, Double) -> Unit)
inline fun range(iterable1: IntProgression, iterable2: IntProgression, iterable3: IntProgression, operation: (Int, Int, Int) -> Unit)
Link copied to clipboard
fun <T> MutableList<T>.removeRange(fromInclusive: Int = 0, endExclusive: Int = this.size)
Link copied to clipboard
inline operator fun <T> ThreadLocal<T>.setValue(receiver: Any?, property: KProperty<*>, value: T)
Link copied to clipboard
inline fun <T, K : Comparable<K>> MutableList<T>.sortedInsert(item: T, crossinline selector: (T) -> K?)

Inserts a new element into a sorted list while maintaining the order.

Link copied to clipboard
fun <T> List<T>.subList(fromIndex: Int): List<T>
Link copied to clipboard
fun <K> Object2IntOpenHashMap<K>.sumValues(anotherMap: Object2IntMap<K>): Object2IntMap<K>

Sums the values for matching keys from another map to this map. Modifies the current collection.

Link copied to clipboard

Convert UUID to 16 bytes array

Link copied to clipboard
Link copied to clipboard

Convert UUID to 16 bytes array and then to MD5 hash

Link copied to clipboard
Link copied to clipboard
inline fun <T> Stream<T>.toTypedArray(): Array<T>
Link copied to clipboard
Link copied to clipboard
fun <T> Array<out T>?.unmodifiable(): List<T>
Link copied to clipboard