Package org.quiltmc.qkl.wrapper.minecraft.registry

Types

Link copied to clipboard
data class RegistryAction<T>(val modid: String?, val registry: Registry<T>)

Represents an action with a registry.

Link copied to clipboard
class RegistryDsl(modid: String, action: RegistryDsl.() -> Unit)

Registry DSL class, used to register objects more cleanly.

Link copied to clipboard
data class RegistryObject<T>(    val modid: String,     val name: String,     val t: T)

A RegistryObject with a name parameter, registers under your modid.

Functions

Link copied to clipboard
operator fun <T> Registry<T>.invoke(action: RegistryAction<T>.() -> Unit)
operator fun <T> Registry<T>.invoke(modid: String, action: RegistryAction<T>.() -> Unit)

Applies a RegistryAction.

Link copied to clipboard
infix fun <T> T.withId(id: Identifier): RegistryObject<T>

Creates a RegistryObject.