Package-level declarations

Types

Link copied to clipboard
class DeprecatedDelegate(val message: String = "This element is deprecated!")
Link copied to clipboard
typealias NULL = Unit

Functions

Link copied to clipboard
Link copied to clipboard
inline fun Vector.advanceInstantly(loc: Location, mod: Float, times: Int, fn: (Location) -> Unit)
Link copied to clipboard
inline fun <V> aggregate(times: Int, crossinline generator: () -> V): List<V>
Link copied to clipboard
inline fun <T> allNull(vararg nullables: T?): Boolean
Link copied to clipboard
fun allOf(vararg conditions: Boolean): Boolean
Link copied to clipboard
fun Vector.along(f: Location, times: Int, fn: (Location) -> Unit)
Link copied to clipboard
inline fun <T> anyNull(vararg nullables: T?): Boolean
Link copied to clipboard
fun anyOf(vararg conditions: Boolean): Boolean
Link copied to clipboard
inline fun <K, V> Iterable<K>.associateWithHashed(producer: (K) -> V): HashMap<K, V>
Link copied to clipboard
inline fun <T> blackBox(value: T): T

Hides from the compiler passed value, allowing to avoid certain constant condition warnings when something is not implemented

Link copied to clipboard
Link copied to clipboard
inline fun <T> Collection<T>.certain(predicate: (T) -> Boolean, operator: (T) -> Unit)
Link copied to clipboard
fun String.containsAny(vararg possibles: String): Boolean
Link copied to clipboard
fun PlayerInventory.containsAtLeast(item: Identifier, amount: Int): Boolean
Link copied to clipboard
fun createFloatingBlock(loc: Location, item: ItemStack): BlockDisplay
Link copied to clipboard
fun <V> MutableCollection<V>.drain(count: Int): List<V>
Link copied to clipboard
fun <T : Any> T.equalsAny(vararg possible: T): Boolean
Link copied to clipboard
inline fun <T> fromJson(str: String): T?
Link copied to clipboard
operator fun <E> List<E>.get(intRange: IntRange): List<E>
Link copied to clipboard
fun Player.getArmorIds(): List<Identifier>
Link copied to clipboard
fun Player.giveOrDrop(item: ItemStack)
Link copied to clipboard
fun <A> identity(): (A) -> A
Link copied to clipboard
inline fun <T> ignoring(ele: T): (Any?) -> T
Link copied to clipboard
inline fun <T> ignoringProducer(crossinline producer: () -> T): (Any?) -> T
Link copied to clipboard
inline fun <T> Collection<T>.insertWithin(dummy: T, demand: Int): Collection<T>
Link copied to clipboard
infix fun Double.insteadOfNaN(other: Double): Double
Link copied to clipboard
fun Vector.joml(): Vector3f
Link copied to clipboard
inline fun <K, V, O> HashMap<K, V>.mapPaired(fn: (Pair<K, V>) -> O): MutableList<O>
Link copied to clipboard
Link copied to clipboard
inline fun <K, V> multimap(): Multimap<K, V>
Link copied to clipboard
fun Transformation.mutate(translation: Vector3f = this.translation, leftRot: Quaternionf = this.leftRotation, scale: Vector3f = this.scale, rightRot: Quaternionf = this.rightRotation): Transformation
Link copied to clipboard
Link copied to clipboard
fun nullFn(): () -> Unit
Link copied to clipboard
inline fun <T> Collection<T>.pad(demand: Int, value: T): MutableCollection<T>
Link copied to clipboard
inline fun <T> Collection<T>.padForward(demand: Int, value: T): MutableCollection<T>
Link copied to clipboard
inline fun <T> Collection<T>.padNullsForward(demand: Int): MutableCollection<T?>
Link copied to clipboard
inline fun <T> producer(ele: T): () -> T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun PlayerInventory.removeAnySlot(item: Identifier, amount: Int)
Link copied to clipboard
fun renderBar(percentage: Float, notches: Int, from: TextColor, to: TextColor = from, background: TextColor = NamedTextColor.GRAY): String
Link copied to clipboard
inline fun <T> T.repeated(n: Int): Array<T>
Link copied to clipboard
inline fun <R> runCatchingReporting(player: Player? = null, block: () -> R): Result<R>
Link copied to clipboard
inline fun <R> runCatchingWithPlayer(player: Player, block: () -> R): Result<R>
Link copied to clipboard
inline fun runNTimes(times: Long, period: Long, noinline finishCallback: () -> Unit = { }, crossinline runnable: (KSpigotRunnable) -> Unit): KSpigotRunnable
Link copied to clipboard
fun <L : PacketListener, P : Packet<L>> Player.sendPacket(packet: P)
Link copied to clipboard
inline fun <T> serializeBytes(data: T): String
Link copied to clipboard
Link copied to clipboard
fun String.stripTags(): @NotNull String
Link copied to clipboard
fun EntityType.summon(location: Location): Entity
Link copied to clipboard
Link copied to clipboard
fun threadNoinline(start: Boolean = true, isDaemon: Boolean = false, contextClassLoader: ClassLoader? = null, name: String? = null, priority: Int = -1, block: Thread.() -> Unit): Thread
Link copied to clipboard
fun ticksToTime(ticks: Long): String
Link copied to clipboard
fun todo(message: String = "Not finished yet!"): Nothing
Link copied to clipboard
Link copied to clipboard
fun <T> toJson(obj: T): String
Link copied to clipboard
inline fun <T : Enum<T>> ClosedRange<T>.toList(values: () -> Array<out T>): List<T>
Link copied to clipboard
inline fun <T> typetoken(): Type
Link copied to clipboard
Link copied to clipboard
inline fun <T> unused(value: T)
Link copied to clipboard
Link copied to clipboard
inline fun walkDataResources(vararg path: String, block: (Path) -> Unit)
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val Inventory.emptySlots: Int
Link copied to clipboard
val GSON: Gson
Link copied to clipboard
val GSON_PRETTY: Gson
Link copied to clipboard