Package-level declarations

Types

Link copied to clipboard
fun interface ByEnum<T>
Link copied to clipboard
fun interface ById
Link copied to clipboard
@ApiStatus.NonExtendable
interface ItemStackFactory
Link copied to clipboard
interface LocationFactory
Link copied to clipboard
typealias Object2MultiObjectsMap<K, V> = Object2ObjectMap<K, ObjectSet<V>>
Link copied to clipboard
@ApiStatus.NonExtendable
interface ParticleFactory
Link copied to clipboard

A utility class for matching type parameters of generic types at runtime.

Link copied to clipboard
fun interface ToByteFunction<T>

Properties

Link copied to clipboard
Link copied to clipboard

A lazily-initialized instance of SecureRandom providing a secure source of randomness.

Link copied to clipboard
val unsafe: Unsafe

Functions

Link copied to clipboard
fun <K, V> Object2MultiObjectsMap<K, V>.add(key: K, value: V)
Link copied to clipboard
fun <T> byByteIdMap(values: Array<T>, idMapper: (T) -> Byte): Byte2ObjectMap<T>
Link copied to clipboard
inline fun <T : Enum<T>> byEnumMap(valueMapper: (T) -> Any): Object2ObjectMap<T, Any>
Link copied to clipboard
fun <T : Enum<T>> byIdMap(enumClass: Class<T>, idMapper: ToIntFunction<T>): Int2ObjectMap<T>
fun <T> byIdMap(idMapper: ToIntFunction<T>, values: Array<T>): Int2ObjectMap<T>
fun <T> byIdMap(idMapper: (T) -> Int, values: Array<T>): Int2ObjectMap<T>
Link copied to clipboard
fun <T : Enum<T>> byStringIdMap(enumClass: Class<T>, idMapper: (T) -> String): Object2ObjectMap<String, T>
Link copied to clipboard
fun checkCallerClass(expected: Class<*>)

Checks if the immediate caller class matches the expected class.

Link copied to clipboard

Verifies that the current method is instantiated by java.util.ServiceLoader.

Link copied to clipboard
Link copied to clipboard
infix fun Location.distance(location: Location): Double
Link copied to clipboard
infix fun Location.distanceSquared(location: Location): Double
Link copied to clipboard
fun doubleListOf(): @Unmodifiable DoubleList
fun doubleListOf(vararg elements: Double): @UnmodifiableView DoubleList
Link copied to clipboard
fun emptyDoubleList(): @Unmodifiable DoubleList
Link copied to clipboard
fun <V> emptyInt2ObjectMap(): @Unmodifiable Int2ObjectMap<V>
Link copied to clipboard
fun emptyIntSet(): @Unmodifiable IntSet
Link copied to clipboard
fun emptyLong2LongMap(): @Unmodifiable Long2LongMap
Link copied to clipboard
fun <V> emptyLong2ObjectMap(): @Unmodifiable Long2ObjectMap<V>
Link copied to clipboard
fun emptyLongSet(): @Unmodifiable LongSet
Link copied to clipboard
fun <K> emptyObject2IntMap(): @Unmodifiable Object2IntMap<K>
Link copied to clipboard
Link copied to clipboard
fun <K, V> emptyObject2ObjectMap(): @Unmodifiable Object2ObjectMap<K, V>
Link copied to clipboard
fun <T> emptyObjectList(): @Unmodifiable ObjectList<T>
Link copied to clipboard
fun <T> emptyObjectSet(): @Unmodifiable ObjectSet<T>
Link copied to clipboard
Link copied to clipboard
fun DoubleArrayList.freeze(): @UnmodifiableView DoubleList
fun <V> Int2ObjectMap<V>.freeze(): @UnmodifiableView Int2ObjectMap<V>
fun IntSet.freeze(): @UnmodifiableView IntSet
fun Long2LongOpenHashMap.freeze(): @UnmodifiableView Long2LongMap
fun <V> Long2ObjectOpenHashMap<V>.freeze(): @UnmodifiableView Long2ObjectMap<V>
fun LongSet.freeze(): @UnmodifiableView LongSet
fun <K> Object2IntOpenHashMap<K>.freeze(): @UnmodifiableView Object2IntMap<K>
fun <K, V> Object2ObjectOpenHashMap<K, V>.freeze(): @UnmodifiableView Object2ObjectMap<K, V>
fun <T> ObjectArrayList<T>.freeze(): @UnmodifiableView ObjectList<T>
fun <T> ObjectSet<T>.freeze(): @UnmodifiableView ObjectSet<T>
Link copied to clipboard

Retrieves the class of the method's immediate caller.

fun getCallerClass(depth: Int): Class<*>?

Retrieves the class of a caller at a specific depth in the call stack.

Link copied to clipboard
fun <V> int2ObjectMapOf(): @Unmodifiable Int2ObjectMap<V>
fun <V> int2ObjectMapOf(vararg pairs: Pair<Int, V>): @UnmodifiableView Int2ObjectMap<V>
Link copied to clipboard
fun intSetOf(): @Unmodifiable IntSet
fun intSetOf(vararg elements: Int): @UnmodifiableView IntSet
Link copied to clipboard
inline fun logger(): FluentLogger

Provides a FluentLogger instance associated with the enclosing class.

Link copied to clipboard
inline fun <API : LoggingApi<API>> LoggingApi<API>.logIf(condition: () -> Boolean, logOperation: LoggingApi<API>.() -> Unit)

Executes the provided logging operation if the specified condition evaluates to true.

Link copied to clipboard
fun long2LongMapOf(): @Unmodifiable Long2LongMap
fun long2LongMapOf(vararg pairs: Pair<Long, Long>): @UnmodifiableView Long2LongMap
Link copied to clipboard
fun <V> long2ObjectMapOf(): @Unmodifiable Long2ObjectMap<V>
fun <V> long2ObjectMapOf(vararg pairs: Pair<Long, V>): @UnmodifiableView Long2ObjectMap<V>
Link copied to clipboard
fun longSetOf(): @Unmodifiable LongSet
fun longSetOf(vararg elements: Long): @UnmodifiableView LongSet
Link copied to clipboard
fun mutableDoubleListOf(): DoubleArrayList
fun mutableDoubleListOf(vararg elements: Double): DoubleArrayList
fun mutableDoubleListOf(capacity: Int): DoubleArrayList
Link copied to clipboard
fun <V> mutableInt2ObjectMapOf(): Int2ObjectOpenHashMap<V>
fun <V> mutableInt2ObjectMapOf(vararg pairs: Pair<Int, V>): Int2ObjectOpenHashMap<V>
Link copied to clipboard
fun mutableIntSetOf(): IntOpenHashSet
fun mutableIntSetOf(vararg elements: Int): IntOpenHashSet
Link copied to clipboard
fun mutableLong2LongMapOf(): Long2LongOpenHashMap
fun mutableLong2LongMapOf(vararg pairs: Pair<Long, Long>): Long2LongOpenHashMap
Link copied to clipboard
fun <V> mutableLong2ObjectMapOf(): Long2ObjectOpenHashMap<V>
fun <V> mutableLong2ObjectMapOf(vararg pairs: Pair<Long, V>): Long2ObjectOpenHashMap<V>
Link copied to clipboard
fun mutableLongSetOf(): LongOpenHashSet
fun mutableLongSetOf(vararg elements: Long): LongOpenHashSet
Link copied to clipboard
fun <K> mutableObject2IntMapOf(): Object2IntOpenHashMap<K>
fun <K> mutableObject2IntMapOf(vararg pairs: Pair<K, Int>): Object2IntOpenHashMap<K>
Link copied to clipboard
fun <K, V> mutableObject2MultiObjectsMapOf(): Object2ObjectOpenHashMap<K, ObjectSet<V>>
fun <K, V> mutableObject2MultiObjectsMapOf(vararg pairs: Pair<K, ObjectSet<V>>): Object2ObjectOpenHashMap<K, ObjectSet<V>>
Link copied to clipboard
fun <K, V> mutableObject2ObjectMapOf(): Object2ObjectOpenHashMap<K, V>
fun <K, V> mutableObject2ObjectMapOf(vararg pairs: Pair<K, V>): Object2ObjectOpenHashMap<K, V>
fun <K, V> mutableObject2ObjectMapOf(capacity: Int): Object2ObjectOpenHashMap<K, V>
Link copied to clipboard
fun <T> mutableObjectListOf(): ObjectArrayList<T>
fun <T> mutableObjectListOf(vararg elements: T): ObjectArrayList<T>
fun <T> mutableObjectListOf(capacity: Int): ObjectArrayList<T>
fun <T> mutableObjectListOf(iterable: Iterable<T>): ObjectArrayList<T>
Link copied to clipboard
fun <T> mutableObjectSetOf(): ObjectOpenHashSet<T>
fun <T> mutableObjectSetOf(vararg elements: T): ObjectOpenHashSet<T>
fun <T> mutableObjectSetOf(capacity: Int): ObjectOpenHashSet<T>
fun <T> mutableObjectSetOf(iterable: Iterable<T>): ObjectOpenHashSet<T>
Link copied to clipboard
fun <K> object2IntMapOf(): @Unmodifiable Object2IntMap<K>
fun <K> object2IntMapOf(vararg pairs: Pair<K, Int>): @UnmodifiableView Object2IntMap<K>
Link copied to clipboard
fun <K, V> object2MultiObjectsMapOf(): @Unmodifiable Object2ObjectMap<K, ObjectSet<V>>
fun <K, V> object2MultiObjectsMapOf(vararg pairs: Pair<K, ObjectSet<V>>): @UnmodifiableView Object2ObjectMap<K, ObjectSet<V>>
Link copied to clipboard
fun <K, V> object2ObjectMapOf(): @Unmodifiable Object2ObjectMap<K, V>
fun <K, V> object2ObjectMapOf(vararg pairs: Pair<K, V>): @UnmodifiableView Object2ObjectMap<K, V>
Link copied to clipboard
fun <T> objectListOf(): @Unmodifiable ObjectList<T>
fun <T> objectListOf(vararg elements: T): @UnmodifiableView ObjectList<T>
Link copied to clipboard
fun <T> objectSetOf(): @Unmodifiable ObjectSet<T>
fun <T> objectSetOf(vararg elements: T): ObjectSet<out T>
fun <T> objectSetOf(collection: Iterable<T>): @UnmodifiableView ObjectSet<T>
Link copied to clipboard
inline fun <T> requiredService(): T

Retrieves a required service of the specified type using Services.serviceWithFallback. If the service is not available, it throws an Error.

Link copied to clipboard
fun setFinalField(field: Field, instance: Any, value: Any?)
fun setFinalField(field: Field, instance: Any, value: Boolean)
fun setFinalField(field: Field, instance: Any, value: Byte)
fun setFinalField(field: Field, instance: Any, value: Char)
fun setFinalField(field: Field, instance: Any, value: Double)
fun setFinalField(field: Field, instance: Any, value: Float)
fun setFinalField(field: Field, instance: Any, value: Int)
fun setFinalField(field: Field, instance: Any, value: Long)
fun setFinalField(field: Field, instance: Any, value: Short)
Link copied to clipboard
fun setStaticFinalField(field: Field, value: Any?)
fun setStaticFinalField(field: Field, value: Boolean)
fun setStaticFinalField(field: Field, value: Byte)
fun setStaticFinalField(field: Field, value: Char)
fun setStaticFinalField(field: Field, value: Double)
fun setStaticFinalField(field: Field, value: Float)
fun setStaticFinalField(field: Field, value: Int)
fun setStaticFinalField(field: Field, value: Long)
fun setStaticFinalField(field: Field, value: Short)
Link copied to clipboard
fun DoubleArrayList.synchronize(): DoubleList
fun <V> Int2ObjectMap<V>.synchronize(): Int2ObjectMap<V>
fun IntSet.synchronize(): IntSet
fun Long2LongOpenHashMap.synchronize(): Long2LongMap
fun <V> Long2ObjectOpenHashMap<V>.synchronize(): Long2ObjectMap<V>
fun LongSet.synchronize(): LongSet
fun <K> Object2IntOpenHashMap<K>.synchronize(): Object2IntMap<K>
fun <K, V> Object2ObjectOpenHashMap<K, V>.synchronize(): Object2ObjectMap<K, V>
fun <T> ObjectArrayList<T>.synchronize(): ObjectList<T>
fun <T> ObjectSet<T>.synchronize(): ObjectSet<T>
Link copied to clipboard
fun Sequence<Double>.toDoubleList(): @UnmodifiableView DoubleList
Link copied to clipboard
Link copied to clipboard
fun Sequence<Int>.toIntSet(): @UnmodifiableView IntSet
Link copied to clipboard
fun Sequence<Long>.toLongSet(): @UnmodifiableView LongSet
Link copied to clipboard
fun Sequence<Double>.toMutableDoubleList(): DoubleArrayList
Link copied to clipboard
fun Sequence<Int>.toMutableIntSet(): IntOpenHashSet
Link copied to clipboard
fun Sequence<Long>.toMutableLongSet(): LongOpenHashSet
Link copied to clipboard
fun <T> Sequence<T>.toMutableObjectList(): ObjectArrayList<T>
Link copied to clipboard
fun <T> Sequence<T>.toMutableObjectSet(): ObjectOpenHashSet<T>
Link copied to clipboard
fun <T> Collection<T>.toObjectList(): ObjectList<T>
fun <T> Iterable<T>.toObjectList(): ObjectList<T>
fun <T> Sequence<T>.toObjectList(): @UnmodifiableView ObjectList<T>
Link copied to clipboard
fun <T> Array<out T>.toObjectSet(): ObjectSet<out T>
fun <T> Iterable<T>.toObjectSet(): ObjectSet<T>
fun <T> Sequence<T>.toObjectSet(): @UnmodifiableView ObjectSet<T>