RegistryDsl

class RegistryDsl(modid: String, action: RegistryDsl.() -> Unit)

Registry DSL class, used to register objects more cleanly.

Author

Oliver-makes-code (Emma)

Parameters

modid

The modid you want to register under.

action

The DSL action.

Constructors

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

Functions

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

Applies a RegistryAction.

Link copied to clipboard
infix fun <T> T.withName(name: String): RegistryObject<T>

Creates a RegistryObject.