Package-level declarations

Types

Link copied to clipboard

Interface for triggering interactions for texture replacing

Link copied to clipboard

Interface defining Minecraft registry search functions.

Link copied to clipboard

A resource accessor interface.

Functions

Link copied to clipboard
inline fun <T> getService(): T
fun <T> getService(serviceClass: Class<T>): T

Returns the service registered in registerService or throws an exception, if no service is registered for the requested type.

Link copied to clipboard
inline fun <T> getServiceOrNull(): T?
fun <T> getServiceOrNull(serviceClass: Class<T>): T?

Returns the service registered in registerService or null, if no service is registered for the requested type.

Link copied to clipboard
inline fun <T : Any> registerService(service: T): Boolean
fun <T : Any> registerService(serviceClass: Class<T>, service: T): Boolean

Register a service for a class.